Skip to content

ci: run the test suite on Linux only - #597

Merged
brettheap merged 1 commit into
mainfrom
ci/linux-only-tests-20261015
Oct 15, 2026
Merged

brettheap merged 1 commit into
mainfrom
ci/linux-only-tests-20261015

Conversation

@brettheap

@brettheap brettheap commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

What this removes

The tests-windows (windows-latest) and tests-macos (macos-latest) jobs from .github/workflows/tests.yml. The tests (ubuntu-latest) job, its triggers (push to main, pull_request, workflow_dispatch), its concurrency block and its actionlint steps are unchanged. The header comment is rewritten to say the suite runs on Linux only, on every trigger, and cites the decision.

Documentation that described the matrix is updated to match:

  • README.md no longer says CI runs the whole suite on macos-latest; the sentence keeps bash 3.2 compatibility as a stated goal and says CI runs on Linux only.
  • docs/handbook.html carries the same sentence in its macOS panel. This repository has no generator for the handbook: it is a hand-written reading of the README, and test_the_handbook_follows_the_readmes_outline documents amending the section by hand and moving its markers. The one sentence is amended, and the seven markers that read the README section "Starting a project in a new organisation" move to its new blob. Only the macOS panel's sentence changed; the other six sections say nothing about which runners CI uses.
  • docs/release-notes/v1.0.0.md (a historical record) and the test docstrings and comments that mention the two jobs as history are left alone. No test asserts on the workflow's contents.

Why

Brett Heap decided on 2026-10-15 to drop the macOS and Windows test jobs across the estate. Wall-clock time, not dollars, is the cost. Measured for this repository, 1 to 15 October 2026:

Runner Runner-minutes Per pull-request run
Windows 34,233 116 to 155 min
macOS 20,863 69 to 71 min
Linux 12,795 34 to 36 min

What is lost

Real Windows filesystem semantics are no longer exercised (the 46 Windows-path tests in tests/test_windows_paths.py still run, and pass, on Linux). Also gone with the macOS job is its /bin/bash -n parse of setup.sh and openRepoShape under bash 3.2, so the README's bash 3.2 sentence is now a goal rather than a checked claim.

Verification

Run in the worktree at the head of this branch, cut from origin/main at fb786c11 (main has since advanced one commit, 26c16009, which touches none of these three files; a merge-tree of the two is clean).

  • yaml.safe_load of .github/workflows/tests.yml parses; jobs = ['tests'], triggers = push, pull_request, workflow_dispatch.
  • actionlint 1.7.12, fetched and sha256-verified exactly as the workflow's own install step does, run with the workflow's own command (tests.yml plus the two templates' validate.yml): no findings, exit 0.
  • Full suite, pytest tests -q -n 4: 8911 passed, 37 skipped in 14 min 29 s. A clean run of main at 2e6c6fa earlier today gave 8,888 passed, 37 skipped. The extra 23 are not from this branch, which changes no test file: pytest --collect-only finds 8,925 tests at 2e6c6fa and 8,948 here, the same 23, added by the two commits between them. No failures.
  • git diff --check: clean.
  • test_the_handbook_follows_the_readmes_outline fails with the README edit and the old markers (it names the moved section) and passes with the new ones.

Not merged, no auto-merge, no reviewers requested.

🤖 Generated with Claude Code

Summary by Sourcery

Run the test suite on Linux only and update documentation to reflect the reduced platform coverage.

Enhancements:

  • Limit the GitHub Actions test suite to the Linux runner while preserving its existing triggers and validation steps.
  • Update the README and handbook to clarify that bash 3.2 compatibility is a project goal rather than a CI-verified claim.

CI:

  • Remove the Windows and macOS test jobs from the CI workflow.

Documentation:

  • Align the macOS setup documentation and handbook references with Linux-only CI execution.

Remove the tests-windows and tests-macos jobs from .github/workflows/tests.yml,
leaving the ubuntu tests job, its triggers, its concurrency block and its
actionlint steps unchanged. The header comment now says the suite runs on Linux
only, on every trigger, and cites Brett Heap's 2026-10-15 decision, taken for
the whole estate. The /bin/bash -n parse of setup.sh and openRepoShape went
with the macOS job.

README.md no longer says CI runs the suite on macos-latest; the bash 3.2
sentence stays as the goal it is. docs/handbook.html has no generator in this
repository (the footer and test_the_handbook_follows_the_readmes_outline
document hand-amending a section and moving its markers), so the one sentence
in its macOS panel is amended by hand to match, and the seven markers that
read README.md section 'Starting a project in a new organisation' move to the
new blob acdf65726ad6433d1d70386eb17f21b015673da0. Only the macOS panel's
sentence changed; the other six sections that carry that marker say nothing
about which runners CI uses, so moving their markers is the honest case the
test's docstring describes.

docs/release-notes/v1.0.0.md is a historical record and is not edited.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Oct 15, 2026

Copy link
Copy Markdown

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 1 day and 5 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Oct 15, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

The PR removes the Windows and macOS GitHub Actions jobs, leaving the existing Linux test and validation path unchanged, and updates the README and hand-written handbook to accurately describe Linux-only CI and unverified bash 3.2 compatibility.

File-Level Changes

Change Details Files
Restrict the GitHub Actions test workflow to the existing Linux job while preserving its triggers, concurrency, test execution, and actionlint validation.
  • Remove the Windows and macOS jobs and their platform-specific setup, test, and bash parsing steps.
  • Rewrite the workflow header to document the Linux-only policy and its rationale.
.github/workflows/tests.yml
Update user-facing documentation to distinguish bash 3.2 compatibility as a project goal from CI coverage, which now runs only on Linux.
  • Replace the macOS CI and bash parsing claim with the Linux-only qualification in the README.
  • Mirror the sentence in the handbook's macOS panel.
  • Move all handbook section markers to the updated README content blob.
README.md
docs/handbook.html

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sonarqubecloud

Copy link
Copy Markdown

@brettheap
brettheap merged commit 654c476 into main Oct 15, 2026
3 checks passed
@brettheap
brettheap deleted the ci/linux-only-tests-20261015 branch October 15, 2026 16:54
brettheap pushed a commit that referenced this pull request Oct 15, 2026
Brings in #597 (654c476, CI on Linux only), with #565 and #555 before it.
Three conflicts:
	.github/workflows/tests.yml: main's file whole. #587's
	  `/bin/bash -n install.sh` and its comment lived in the macOS job #597
	  removed; no bash 3.2 step is added anywhere, as #597 decided, and this
	  pull request no longer touches tests.yml.
	README.md: the macOS sentence keeps #587's `install.sh` in the list and
	  takes #597's wording: "`setup.sh`, `install.sh` and the `openRepoShape`
	  command are written to use no syntax newer than that, though CI runs on
	  Linux only and no run of it checks them against bash 3.2", with "all
	  three entry points" after it. Four lines, as both sides had: README.md
	  stays 1449 lines, its cap with tests/readme-cap.d/564.txt (+22).
	docs/handbook.html: the macOS panel's sentence says what the merged
	  README says. The seven markers that read README.md § Starting a
	  project in a new organisation (masthead, start, partway, ci, legs,
	  doublepin, park) move to a0e0f23c306cebdf627d90225e33c277f05de64b, as
	  the hygiene check printed; the macOS sentence is the only part of that
	  section the merge changed, and no other part of the seven speaks of
	  CI's runners or bash 3.2. The footer is the same on both sides.
test_install_sh.py's pin check still holds: the Linux job installs
git-filter-repo==2.47.0, install.sh's pin. The tests' dated history that
names the macOS job stays, as #597 left it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 15, 2026
… the one job tests.yml has run on every trigger since #597, so main's push run counts and the first release is not refused for jobs that no longer exist (#563)

RV599 round 2, MUST 2: since #597 (654c476) tests.yml holds `tests`
alone, and the gate still asked for tests-macos and tests-windows, so it
refused every commit, 654c476 itself included ("`tests-macos` has not
run"). The gate now names `("tests",)`; it still never takes the set
from what a run holds, so a job gone missing is a refusal. The step is
"the commit carries a passing tests job", its refusal says to dispatch
tests.yml at the commit, and the header's step 1 says main's push run
passes `tests` and a release/v<X.Y> branch needs a dispatch.

Read-only on live data: 654c476 passes (its push run), 006caf4 (a
pull_request run alone) refuses, bfed143 and 26c1600 pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 15, 2026
…f the tests gate name the dispatch that answers it, a branch at the release commit first, since main's push run may have been cancelled (#563)

RV599 round 3, SHOULD 7: 11 of the last 20 tests.yml push runs on main
were cancelled by the next landing, so "the push run that landed it"
often does not hold, and main's 2bf8fd4 is refused with "ended
cancelled". Step 1 now says that push run counts when it finished
green. Otherwise, and always on a release/v<X.Y> branch: before tagging,
dispatch tests.yml on a branch that points at the release commit (a
release branch serves while still at it) and wait. `--ref main` tests
main's current head, not an older commit. If the tag is already pushed
and the gate refused it, dispatch on the tag and re-run the release run.
The branch route leads because it is the proven one; a tag dispatch
running at the tag's commit is documented but not yet seen here. The
"has not run" and "ended <conclusion>" refusals name the same commands.
Live: 2bf8fd4 still refuses, now naming them.

Nit: tests.yml "runs `tests` on every trigger" since #597; it does not
hold one job, because #590's `package` job stays.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 15, 2026
…lean merge after #555 and #597

A merge of main 3f768a6. The brief named
654c476 (#597); main has since moved one commit, to siblings.py and
family.py, which touches AGENTS.md among this branch's files.

No hand resolution: git auto-merged AGENTS.md, adopt-project.py,
shape-doctor.py, tests/test_doctor_next_is_a_command.py and
tests/test_shape_doctor.py, and no path was conflicted, although #555
(2bf8fd4) rewrote shape-doctor.py and both of those tests.

- The merge's tree, 6ad6724, is the tree
  `git merge-tree --write-tree b640d34 origin/main` prints.
- This branch's own changed lines against main are the same 1,289 `+`/`-`
  lines they were against its base 2247dbf, in the same 8 files.
- #555's `placement_policy` refusal (no NEXT, its remedy in the `why`) is
  as main has it; this branch's moved NEXT in `check_placement` stays a
  command, the doctor again, as `unreadable_next`'s is.
- AGENTS.md stays at 490 of its 490 lines.

Lane: openreposhape-1 (openRepoShape-1)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 15, 2026
…mit, so the next landing no longer cancels it, and every landing gets its own Linux result (#592) (#593)

A push to main has no pull request number, so every push run on main
shared the group `tests-refs/heads/main`, and `cancel-in-progress: true`
made each landing cancel the run on the main before it. From #561
(7d9bec9) to #580 (dd3f23a) on 2026-10-15 every push run on main ended
`cancelled`, and nine PRs landed with no Linux run over their
combination.

- The `concurrency:` group's fallback changes from `github.ref` to
  `github.sha`, and the group now names the event:
  `${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.sha }}`.
- A pull-request run is still grouped per PR, and a new push to a PR
  still cancels its older run.
- A `push` run on main is grouped by its own commit, so no later landing
  cancels it, and each landing keeps its own Linux result.
- `github.event_name` keeps a push run and a dispatch apart: a dispatch
  on main never cancels that commit's push run, and a second dispatch on
  the same commit still replaces the first.
- A comment above the block says why and cites #592. The header comment,
  which #597 rewrote for Linux-only CI, is unchanged.
- `tests/test_workflow_concurrency.py` reads `tests.yml` as text and pins
  the group expression, refuses both earlier spellings, pins
  `cancel-in-progress: true`, and fails if a job sets a `concurrency:` of
  its own.

Lane: openreposhape-3 (openRepoShape-3)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 15, 2026
…arkers of docs/handbook.html set to the merged README.md's section blob, the only conflict

Merges main 70331aa, which holds #597
(Linux-only CI) and lane 4's #586 (shape-doctor.py, #547), so that #588
(#532) lands on a head whose merge base is a main that has touched none of
its files since (ruling 27). README.md, shape-doctor.py, update-shape.py and
tests/test_family_printed_quoting.py auto-merged; docs/handbook.html is the
one conflict.

The conflict is seven one-line hunks, each the marker at the top of a
section that reads README.md § Starting a project in a new organisation.
Main's side carried blob acdf65726ad6433d1d70386eb17f21b015673da0 and
#588's side blob 20dfa48fe4008a2ebf77a4cf1aee232714072f27. Neither names the
merged README.md's section, which now holds both changes, so all seven are
set to 95f06438cf8088e29bba6f56991898f304405f3b: `readme_fingerprint` of
that segment, imported from tests/test_repo_hygiene.py and applied to the
`readme_segments` cut of the merged README.md. The same call over main's
README.md and over #588's reproduces acdf657... and 20dfa48..., so it is the
function the page's check reads. Every other line of the page is as git
merged it, and the page was written as bytes.

Lane: openreposhape-4 (openRepoShape-4)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 15, 2026
Main moved while this merge was being made: a61cf47 (#589) at the
coordinator's request, then 70331aa (#586, shape-doctor.py only) and
2989b4c (#573: family.py, scaffold-project.py, docs/cli.md's scaffold and
family sections, their tests). This merges 2989b4c, the tip at merge
time. 10 commits since 2e6c6fa: 8890f57, fb786c1 (#581), 26c1600,
2bf8fd4, 654c476 (#597), 3f768a6, 024ea55, a61cf47 (#589),
70331aa (#586), 2989b4c (#573).

One conflict, adopt-project.py, the end of `_entry_findings`' return:

  HEAD (#520) added `names_remediation` to the remediation list, so a
  misnamed `adopt_branch:` or `tracking_branch:` prints its remedy;
  main (#589, #449) added `pin_notes` to the notes, so a pin whose digest
  `check` could not recompute is said once at the end.

  Resolved by keeping both, each where its side put it:

            + names_remediation + tracking_remediation + moved_remediation
            + field_remediation,
            pin_notes + notes)

  The two edits touch different elements of the returned tuple, so
  neither changes what the other means: #589's
  `digest_findings, pin_notes = _pin_digest_findings(plan)` and its
  docstring paragraph auto-merged beside #520's `_branch_name_findings`
  call and paragraph.

docs/cli.md auto-merged (#573 changed the scaffold and family sections,
this branch the adopt section); `scripts/render-cli-reference.py --check`
passes on the merge.

Against the new main, each of this branch's six files (adopt-project.py,
docs/cli.md, tests/test_adopt_branch_names.py,
tests/test_adopt_plan_yaml_quoting.py, tests/test_adopt_split_branch.py,
tests/test_adopt_template_values.py) differs by exactly the +/- lines it
did against 2e6c6fa at c598ec3 (adopt-project.py: 399).

Lane: openreposhape-1 (openRepoShape-1)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 15, 2026
…I) into fix/585-git-bash-windows: tests.yml is the base's, without #596's guard step in the gone tests-windows job, and the handbook keeps #597's macOS panel beside #596's Git Bash text, its seven markers moved to the merged README (#585)

The base, lane 3's #587 branch, merged main 654c476, which holds #597 ("ci:
run the test suite on Linux only", merged by Brett Heap 2026-10-15T16:54:43Z).
#597 removed the tests-windows and tests-macos jobs, made README's macOS
sentence and the handbook's macOS panel say CI runs on Linux only, and moved
the seven handbook markers for README.md section "Starting a project in a new
organisation". Two files conflicted.

.github/workflows/tests.yml: the base's file, byte for byte (blob b2de8af).
Dropped from this branch:
- the step "Git Bash is the bash the launcher and installer suites run",
  which sat in tests-windows;
- the tests-macos comment's clause that the windows job runs the command
  only under Git Bash.
Both jobs are gone, so both hunks went with them. At this commit alone no CI
job runs the two suites under Git Bash, so README's "tested in CI" is not yet
true here. The next commit adds the small tests-git-bash job, on Brett Heap's
word at 2026-10-15T18:20:35Z: "Option 1: keep a small Git Bash job for #596".

docs/handbook.html: the base's text, with #597's macOS panel, and this
branch's Git Bash text (the masthead, the Windows panel, the consent rules),
which merged as text. The seven conflicts were the seven markers for README.md
section "Starting a project in a new organisation": this branch's 26629e7a
against the base's a0e0f23c. Each now records a88ac2d0315c9c8ed6e962ab6ae34b856346ecc9,
the merged section's hash, computed with tests/test_repo_hygiene.py's own
readme_segments and readme_fingerprint.

README.md merged cleanly as text: #597's macOS sentence and this branch's
Windows paragraph and step-3 clause are in different paragraphs. It is 1449
lines, the cap (1422 + 5 for 550.txt + 22 for 564.txt).

Every other file is the base's. Against the base, this merge differs only in
this branch's five files: README.md, docs/handbook.html, tests/conftest.py,
tests/test_install_sh.py and tests/test_openreposhape_command.py.
tests/test_repo_hygiene.py and tests/test_readme_sections.py: 141 passed on
the merged tree.

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 15, 2026
…l `tests-git-bash` job runs the launcher's and the installer's suites on windows-latest under Git Bash, on every trigger, as the one exception to #597 on Brett Heap's word, so README's Git Bash sentence is tested in CI again and the macOS sentence no longer says CI runs on Linux only (#585)

#597 (main 654c476) dropped the Windows and macOS jobs for the whole
estate, and the merge before this commit took that workflow. That left
README's "Git Bash runs that command and step 3's one line, tested in CI but
for a typed `yes`" with nothing behind it. Brett Heap, 2026-10-15T18:20:35Z:
"Option 1: keep a small Git Bash job for #596". The option he picked: a small
Windows job for just these two suites, which finishes inside the Linux job's
time and keeps README's claim true, as an exception to #597's decision.

The workflow:
- The header keeps #597's text and adds one sentence naming the exception,
  with his word and its time.
- `tests-git-bash`: windows-latest, `timeout-minutes: 15`, no `if:`, so it
  runs on a push to main, on pull requests and on a manual run. A squash
  lands a tree no pull-request run tested (#122), and these two suites are
  the only run of the one-line install on Windows.
- Its steps: checkout and setup-python at the ubuntu job's two commits
  (`fetch-depth: 0`, because the launcher's suite clones this checkout
  itself in test_a_ref_the_doctor_would_check_out_is_validated); pytest
  8.3.4; the git identity, appended to GITHUB_ENV in PowerShell as the old
  Windows job did; the guard step "Git Bash is the bash the launcher and
  installer suites run", which fails the job when conftest finds no Git
  Bash; then `python -m pytest -q -rA tests/test_openreposhape_command.py
  tests/test_install_sh.py`, with the old job's `--basetemp` under
  `runner.temp` for MAX_PATH.
- Its env is the old Windows job's: PYTHONUTF8=1 (the suites decode bash's
  output with `text=True`, and the launcher's `--help` prints em dashes),
  core.autocrlf=false and core.longpaths=true. Every Windows run of these
  two suites, #585's four probes included, had all three.
- Left out: git-filter-repo, because these suites never reach a real one
  (the install suite fakes it and pipx; the launcher's machine report gets
  a fake on the PATH it builds; on Linux the two suites pass with no
  git-filter-repo on PATH); and actionlint, which the ubuntu job runs on
  this file. tests/test_install_sh.py's pin check still finds the ubuntu
  job's git-filter-repo pin.

The docs. README's macOS sentence and the handbook's macOS panel said "CI
runs on Linux only and no run of it checks them against bash 3.2". They now
say "no CI run, on Linux or in Git Bash on Windows, checks them against bash
3.2", which is true with this job and keeps README at 1449 lines, its cap.
README's Windows paragraph and the handbook's Windows panel already say CI
tests Git Bash, and are true again. The seven handbook markers for README.md
section "Starting a project in a new organisation" record its new hash,
34723d9ae3d5e64cde648576855ce706589ffc0d.

actionlint 1.7.12 on tests.yml and the two template workflows: exit 0.
Linux, before this commit: tests/test_repo_hygiene.py,
tests/test_readme_sections.py, tests/test_cli_reference.py and
tests/test_setup_by_hand_commands.py, 168 passed; the two suites, 113
passed, and 113 passed again with no git-filter-repo on PATH.

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 15, 2026
…eck`'s finding for a link kept above a path the shape writes says the clone holds it as a file, so `scripts -> tools/deep` no longer says where the scripts land and sends the person to change where it points, on to `adopt-symlinks-off` (#531) (#584)

Some disks check a symlink out as a plain file: under `core.symlinks=false`, which is Git for Windows' default and what `git init` writes on a filesystem that cannot hold a symlink. On such a disk, a symlink the plan keeps in the root ABOVE a path the shape writes is a plain file in the assembly's clone, and nothing can be written beneath it.

When `check` reports such a link as `plan-root-symlink`, its finding now says that, in `adopt-symlinks-off`'s words, and gives a fix that works on that disk: send the link to a leg or `drop` it in the plan, and run `check` again. `execute` refuses with the same line, word for word, before any leg exists, as it refused the old line. Only the text of a finding `check` already made changes. A link above that the walk follows cleanly (`scripts -> ci`) stays `execute`'s `adopt-symlinks-off` before any leg, as #504 designed. With symlinks on, the output is byte-identical to `main`'s.

`_a_file_above(walk, probe)` runs only for a walk that is about to be reported, so a plan with no such finding makes no new probe, and no network or gh call is added.

Tests: tests/test_adopt_root_symlinks.py holds 149 tests on `main` and 156 here. `test_with_symlinks_off_a_link_above_a_path_is_named_as_a_file` (6 cases) and `test_with_symlinks_off_the_fix_the_finding_gives_works_there` (`code`, `drop`) are new. Three existing tests of a followed link gain `links_as_links`, so they keep asserting the symlinks-on line wherever the runner's checkout writes a plain file, which a Windows runner's may (Git for Windows' default). Main's test of the old reason is now the D6 row.

Review: the adversarial review found the change PR-READY at 0a178e4, with five text corrections, all in the PR body. The edge cases it found outside #531 are left for #457's checklist.

`main` was merged in five times, and the branch was never rebased.
- **The first merge** was GitHub's update-branch, at 348f8a8 (main 2e6c6fa). 348f8a8 is green on Linux, macOS, Windows and SonarCloud.
- **The second merge was by hand,** at cae5a98 (main 654c476), after #581 (#524) changed `adopt-project.py`. Its one conflict was a comment in `_SymlinkProbe`, about a work directory no repository can be made in. The resolution keeps both #531's sentence and #524's.
- **cae5a98c** passed 71 adopt test files in both modes: 5,796 passed and 5,482 passed, with 0 failed.
- **The third merge** was GitHub's update-branch, at 7f439a5 (main a61cf47), after #589 changed `adopt-project.py`. It was a clean merge.
- **The fourth and fifth merges** were also GitHub's update-branch, both clean, after #566 and #582 changed `adopt-project.py`: 250b070 (main 1d809ea) and c43cde1 (main 526cd2c).
- **Since #597, CI is Linux only.** The head is green on Linux and SonarCloud (ruling 27).

Closes #531

Lane: openreposhape-1 (openRepoShape-1)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 15, 2026
…#577): the one line `curl -fsSL https://github.com/opensoft/openRepoShape/releases/latest/download/install.sh | bash` installs the newest release's command pinned to that release, installs git-filter-repo with pipx where it can, and ends with the preflight (#564) (#587)

Carries v1.0.1's one-line install (#577, 8cda139 on release/v1.0, tag
v1.0.1) into main, so main's code and docs say what the release does.

- `install.sh`, attached to every release, installs the newest release
  (or the one it is given): it reads the tag from the `releases/latest`
  redirect, fetches that release's `openRepoShape`, runs its `--install`
  with `OPENREPOSHAPE_REF=<tag> OPENREPOSHAPE_RECORD_REF=1`, and confirms
  the pin with `--version`. Every curl is HTTPS only, redirects included,
  at TLS 1.2 or newer.
- It installs git-filter-repo 2.47.0 with pipx where pipx is and the tool
  is not, and otherwise prints the one command that would. It never runs
  sudo, and it ends with `openRepoShape --preflight`, which offers what is
  missing behind a typed `yes`.
- `openRepoShape --install` records the ref in `openRepoShape.ref` beside
  the command only with `OPENREPOSHAPE_RECORD_REF=1`, or keeps the
  command's own record when it re-installs itself. The installed command
  then fetches setup.sh, passes `--shape-ref` and checks the doctor's clone
  out at that ref; `$OPENREPOSHAPE_REF` still overrides it for one run.
  Any other install records nothing and follows main.
- README's step 3, the worked example, the handbook, AGENTS.md and
  docs/cli.md lead with the one line. `install.sh`,
  `tests/test_install_sh.py` and `docs/release-notes/v1.0.1.md` are
  byte-identical to v1.0.1's.
- Merged with #597 (Linux-only CI): the `/bin/bash -n install.sh` step
  went with the macOS job #597 removed, and README's macOS sentence names
  install.sh among the entry points written for bash 3.2, which no CI run
  checks. The handbook's markers read the merged README's sections.

Lane: openreposhape-3 (openRepoShape-3)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 15, 2026
#587 landed on main as 22eacee (squash), so this branch takes its final
head first, then main.

One conflict, .github/workflows/tests.yml. Main's file is kept whole: #597's
Linux-only header and the removal of tests-macos and tests-windows, and
#593's `concurrency:` group with its comment. This branch adds to it only
its own two parts, unchanged: the header paragraph on the `package` job,
after main's, and the `package` job at the end, byte for byte as at
d090f0c. tests/test_repo_hygiene.py merged cleanly; its diff from #587's
head is exactly this branch's lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 15, 2026
…n-source-unread

Merges origin/main 66267f0 so the PR's CI merge ref and the fix that follows
run on current main. The fourteen landings since 2bf8fd4: #597, #578, #593,
#589 (#449), #586, #573 (#537), #575 (#539), #566 (#528), #571, #588, #569
(#538), #582 (#523), #616 and #576 (#441, #442).

Those that touch this PR's files:
- adopt-project.py: #589 (`check` recomputes each pin's digest in the clone
  `plan` read it from: LOCAL_CLONE_RE, _recorded_clone, _why_not_rechecked,
  _recomputed_pin_finding, _pin_digest_findings), #582 (what `plan`,
  `execute` and AGENTS.md say around a run) and #566 (a source's own
  `single-repository.yaml`).
- scaffold-project.py and docs/cli.md: #573, #569 and #576 (the
  `_declaration` docstring: `--pin-source` verifies the first chain link
  alone, which this PR's N3 wording already says).
- tests/test_adopt_pins.py: #589's thirteen cases.
- tests/test_scaffold_leg_path_collisions.py: #573.

This commit holds the textual resolution only. One hunk conflicted, the
`from shape_materialize import (...)` list at adopt-project.py:261. It is
resolved as the union of both sides' changes to the list: main's added
`pin_digest_from_source` (#589), and this PR's added `DIGEST_FROM_CLONE`,
`DIGEST_FROM_GH`, `pin_source_path` and `refuse_an_unread_pin_source` and
its removal of `one_printable_line`, whose last caller this PR deleted and
to which main added none (keeping it is pyflakes' "imported but unused").
pyflakes adopt-project.py is clean on the merge. Every other file merged
without a marker, and `scripts/render-cli-reference.py --check` is ok.

The merge alone does not keep #589 working: this PR's `plan` records a bare
`local-clone`, which names no clone for #589's `check` to read, and `check`
refuses `local-clone (<path>)` as `plan-pin-malformed`. The next commit
reconciles the two.

Lane: openreposhape-2 (openRepoShape-2)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap pushed a commit that referenced this pull request Oct 15, 2026
… package job's comment and the package tests' docstring say the suite runs on Linux since #597 (#563)

Comment and docstring only. #597 removed tests-macos and tests-windows, so
the package job's comment no longer speaks of "the three jobs above" and
"all three runners", and names the three systems the release workflow
installs on. The package tests' docstring no longer says its cases run on
a Windows job: CI runs the module on Linux, and no CI job runs it on
Windows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 15, 2026
…ocal clone's right `--org` is no longer refused, a url ending `/` names its repository, and the doctor's adoption line asks for `--org` wherever `plan` reads none (#521, #427) (#591)

`adopt-project.py` and `shape-doctor.py` now read a repository's `origin` one way, with one function in `scripts/repo_shape.py` (`url_repository`, with `origin_is_a_path`). It serves #499's source check, the organisation `plan` fills in, what `plan` says about either, and the doctor's adoption line.
- A url names the `<org>/<repo>` it ends in, however it ends (#521). `https://github.com/acme/Atlas/`, `.../Atlas.git/`, `ssh://ssh.github.com:443/acme/Atlas.git/`, `github.com:acme/Atlas/` and `[::1]:acme/Atlas.git/` all name `acme/Atlas`. So `--project Atlsa --org acme` is refused `adopt-not-the-source`, and with no `--org` the organisation is `acme`.
- A path names no repository, however it is written (#521): absolute or relative, `/` or `\`, a drive, a UNC share, or a `file://` url. `--org` and `--project` are not compared with it, and `plan` says so in a NOTE that names the repository `execute` will act on. With no `--org`, a path gives `adopt-no-org`. A local clone's right `--org` is no longer refused. This is a provisional choice, for v1.1.0, that Brett may still overrule.
- An organisation `plan` read from `origin` and `checked_value` refuses is named by where it came from, and the remediation says first to pass `--org` (#427). The refusal and its exit code stay.
- The doctor's `origin_org` reads `origin` the same way (#545, #553), so its adoption line ends `--org <your-org>` for a path `origin` and not for a url ending `/`. Its own copy of the old regex, `_ORIGIN_REPOSITORY_RE`, is deleted.

Tests: tests/test_adopt_origin_repository.py adds 28 tests (9 functions), all failing on main. Six existing test cases change because this reverses what they asserted, two are removed, and the doctor's table gains `[posix-path]` and `[file-url]` beside the changed `[trailing-slash]`. At b3cc111, 75 test files passed in both modes: 5,843 passed and 13 skipped with `git-filter-repo` on PATH, 5,530 passed and 326 skipped with it hidden, exit 0 in both.

Review: the adversarial review asked for one fix round (the doctor's copy of the old reading, which disagreed with `plan` on the merge with main, and the PR texts) and found it PR-READY at b3cc111. The edge cases it found outside #521 and #427 are left for #457's checklist.

`main` was merged in eight times, and the branch was never rebased.
- **The first merge** was by hand, at 2cfbe0e (main 64fc9a8), and clean.
- **The other seven** were GitHub's update-branch, each clean, as other PRs landed on files this one shares: 209e0f3 (main a61cf47), b6a4454 (2989b4c), 251dcba (1d809ea), e43fadb (bcfa364), da144fb (526cd2c), 3afdc57 (62ef256) and 5ec70fa (2b6dbb7).
- b3cc111, the last commit of the change itself, is green on Linux, macOS and SonarCloud. Its Windows job never finished, and since #597 CI is Linux only. The refreshed head is green on Linux and SonarCloud (ruling 27).

Closes #521
Closes #427

Lane: openreposhape-1 (openRepoShape-1)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 18, 2026
…signal, resets the depth fully, so a member's own `exit 2` after a `-` one or two makes below, or after `|| true` and a `-`, reads `exited 2`, and the limits name the `-k` let-fail shape (#890) (#891)

Follows #886 (#884), which landed as `e7039b71`. The branch is restacked onto that squash as `58e4ddf0`: three merges, #886's final head `85c20783`, then its squash with this branch's side for the two files, then main. Its tree is `30ba7a3e`, the merge of `d2be39dc` with main `0d5d2b11`. Fix round 1, from rv884's review of this pull request (issuecomment-6250054923), is one commit on it, `013b9402`. A NIT round, from rv884's re-check (issuecomment-6250467939), is one more, `41f781fd`, which adds a test only and which the runs below cover.

#890's two lines, from rv884's NIT 1 and NIT 2 in its re-check of #886 at `dbd3a6dd` (#886 issuecomment-6249507909). One commit on `dbd3a6dd`, and fix round 1 on the restack, in the family holder's pinned `templates/family-root/scripts/bootstrap.py` and in `tests/test_family_holder_bootstrap_texts.py`, and nothing else. Each shape was probed under the holder's own `make bootstrap` (the member's make at depth 1) and with `bootstrap.py` run straight (depth 0), with GNU Make 4.3, dash 0.5.12 as `/bin/sh` and git 2.43.0.

**1. Three nested-make shapes read a member's refusal as a finding** (`MAKE_FAILED_RE`, `MakeErrors.said`).
- **Scenario 1:** the member runs `$(MAKE) mid`, then its own `exit 2`; `mid` runs `-$(MAKE) inner`, and `inner` exits 1. make prints `make[3]: *** [...] Error 1`, then `make[2]: [mid] Error 2 (ignored)`, then `make[1]: *** [bootstrap] Error 2`. At `dbd3a6dd` the `(ignored)` line put the depth back at 2, the ignoring make's own, so the member's `Error 2` at depth 1 was passed over, and the line said `exited 1`.
- **Scenario 2:** `$(MAKE) inner || true`, then `-false`, then `exit 2`. At `dbd3a6dd` only `Error 2 (ignored)` was a marker, so `Error 1 (ignored)` changed nothing, and the line said `exited 1`.
- **A signal** (rv884's NIT 1 on this pull request): `$(MAKE) inner || true`, then `-@Kill -KILL $$`, then `exit 2`. make prints `make[1]: [Makefile:3: bootstrap] Killed (ignored)`, or `Terminated (ignored)` for SIGTERM. At `d2be39dc` only `Error <code> (ignored)` was a marker, so the line said `exited 1` for either signal; `281df263` said 2.
- **Direction:** make's `[...] <what ended it> (ignored)` line is a marker whatever ended the command: `Error <code> (ignored)` for a code, `Killed (ignored)` or `Terminated (ignored)` for a signal. It sets the depth to -1, as before any `***` line, so no `Error 2` after it is passed over until another `***` line comes. Why that is safe (rv884's argument): in a sequential run, the make that printed the line goes on, and if it fails later it prints a `***` line of its own first, which sets the depth again; so no `Error 2` after an `(ignored)` line, with no `***` line between, can be a make reporting a failed one, whatever ended the ignored command. The rule's code is rv884's patches exactly, its I1 and I17 together and then its Q12 in fix round 1; only comments and docstrings differ from them.
- **Measured before adopting**, with rv884's probe, on `dbd3a6dd`, three patched copies of it (both changes, the reset alone, the marker alone) and `281df263`: rv884's 183 case-modes (its `cases1.py` to `cases6.py`, and its re-check's `ign.py`, `ign2.py` and `ign3.py`) and 41 more (`cases-f886.py`, `cases-f886b.py`, `cases-f886c.py`), each at both depths: 224 case-modes, 1120 runs.
  - Both changes together differ from `dbd3a6dd` in 5 case-modes; the reset alone in 3, and the marker alone in 2.
  - The 5 are Scenario 1 and Scenario 2, each at both depths, and a member's own line shaped like an `(ignored)` line followed by its own `exit 2`, run straight. In each, `dbd3a6dd` named 1 and the change names the member's own `exit 2`, as `281df263` did.
  - No case reads worse than at `dbd3a6dd`.
  - An inner make that ignores a failure of its own still changes nothing (`InnerLets`, `exited 2`), and an `(ignored)` line leaves the code named before it.
- **The signal's line, measured before adopting it** (fix round 1), on `58e4ddf0` and on its copy with rv884's Q12, over the same 224 case-modes and rv884's three new cases (`rv890/tools/extra.py`: SIGKILL, SIGTERM, and a `-` two makes below), each at both depths: 230 case-modes, 460 runs. Q12 differs from `58e4ddf0` in 4: the SIGKILL and SIGTERM cases, each at both depths, each now naming the member's own `exit 2`, as `281df263` did. No case reads worse. The pattern also takes a line written as `make[1]: [Makefile:3: bootstrap] Segmentation fault (core dumped) (ignored)` (checked on the line, not on a run).
- **Tests:** six members join `INNERMOST`, run by `test_the_line_names_the_code_of_the_member_s_innermost_command[innermost-under-make]` and `[innermost]`, at both depths:
  - `LetsBelow`, Scenario 1, expecting `exited 2`;
  - `LetsTwoBelow`, Scenario 1 one make deeper (the member, `mid`, then `mid2`, which runs `-$(MAKE) inner`), expecting `exited 2`, so a depth reset to one above the ignoring make is caught (rv884's Q6, its NIT 2 on this pull request);
  - `PassesThenLets`, Scenario 2 with `-@EXIT 10` for `-false`, so a code of two digits is a marker too, expecting `exited 2`. The form with `-false` is among the measured cases and reads `exited 2` at both depths;
  - `ThenLets`, under `-k`, a finding and then `-false`, expecting `exited 1`: now that every `(ignored)` line is a marker, an `(ignored)` line must leave the code named before it (rv884's I4);
  - `PassesThenKilled`, the signal: `$(MAKE) inner || true`, then `-@Kill -KILL $$`, then the recipe's own refusal, expecting `exited 2`;
  - `PassesThenTerminated`, the same with `-@Kill -TERM $$`, expecting `exited 2`, so a marker that took only `Error <code>` and `Killed` fails (rv884's R4, its NIT on the re-check).
- Each new member, at both depths (the two agree):

| member | expected | `281df263` | `dbd3a6dd` | `58e4ddf0` | head |
|---|---|---|---|---|---|
| `LetsBelow` | 2 | 2 | 1 | 2 | 2 |
| `PassesThenLets` | 2 | 2 | 1 | 2 | 2 |
| `ThenLets` | 1 | 1 | 1 | 1 | 1 |
| `LetsTwoBelow` | 2 | 2 | 1 | 2 | 2 |
| `PassesThenKilled` | 2 | 2 | 1 | 1 | 2 |
| `PassesThenTerminated` | 2 | 2 | 1 | 1 | 2 |

- The 11 earlier members read at head as at `dbd3a6dd`, at both depths. They now share `FINDS` and `REFUSES`, the finding and refusal commands, in place of the seven copies the table held; their bytes are unchanged, checked by evaluating both tables.

**2. `MakeErrors`' list of limits misses a `-k` shape** (docstring only).
- **Direction:** the list now names it: under `-k`, `a: $(MAKE) innerA`, whose command exits 1, then `b: -$(MAKE) innerB`, whose command exits 3. The last `Error` line is the command's in the make the `-` let fail, so 3 is named, though the failing command exited 1. Reading it right would take a code kept per depth; it stays a limit.
- The `|| true` item now reads "with no `(ignored)` line between", since Scenario 2 is no longer a limit, and keeps the `-s` note: a make run with `-s` prints no `(ignored)` line. At `d2be39dc` the item was false for a signal's `(ignored)` line: `$(MAKE) inner || true`, then `-@Kill -KILL $$`, then `exit 2` read `exited 1` though such a line came between (rv884's NIT 1). It is true since fix round 1, which makes that line a marker. Scenario 1 is not listed, since line 1 fixes it.
- **Measured** at both depths: the `-k` shape (rv884's `k-sub1-then-letfail`) reads `exited 3` at head, `dbd3a6dd`, `82a84f88` and `281df263`; `$(MAKE) inner || true; exit 2`, and `-$(MAKE) -s inner` then `exit 2` in a make run with `-s` (the holder's `make -s`, or `MAKEFLAGS=s` run straight), read `exited 1` at head and at `dbd3a6dd`, as the list says.
- **Test:** none, since a limit is a line that reads wrong; no test asserts a wrong code.

**Pinned copy and docs.**
- `bootstrap.py` is in `FAMILY_COPIED_VERBATIM`, so each holder takes one `upstream-changed` row for it on its next update. Its mode stays 100755, and its imports are unchanged.
- No `--help` text changed, so `docs/cli.md` is unchanged. No sentence of `AGENTS.md`, `templates/family-root/AGENTS-shape.md`, `templates/family-root/README.md` or `README.md` speaks of the make line (grep).

**Fail on older code**, with fix round 1's test file (still 57 items: the new members run inside the two `[innermost*]` cases). The NIT round's `PassesThenTerminated` reads 1 on `58e4ddf0` and `dbd3a6dd` and 2 on `281df263`, at both depths, so it adds to the same two failures:
- on `58e4ddf0`'s code (this pull request before fix round 1): 2 failed, 55 passed: `[innermost-under-make]` and `[innermost]`, through `PassesThenKilled`;
- on `dbd3a6dd`'s code: 2 failed, 55 passed: `[innermost-under-make]` and `[innermost]`, through `LetsBelow`, `PassesThenLets`, `LetsTwoBelow` and `PassesThenKilled`;
- on `281df263`'s code: 3 failed, 54 passed: `[innermost-under-make]`, `[innermost]` and `test_a_line_that_comes_in_pieces_is_read_whole`;
- at head: 57 passed.

**Mutants at head**, each run against the whole test file: 45 made, 41 caught. They are #886's fix-round mutants (its first 19, rv884's X1-X12 and N1-N5), restated where the code changed; rv884's I1, I4, I8 and I17 from its re-check of #886, with I1 and I17 reversed, since head holds them; P3 and P4 for this change's first hunks; and rv884's Q6, Q11 and Q12 from its review of this pull request, Q12 reversed, since head holds it. The members in brackets are the ones each mutant reads wrong, measured on a mutated copy at both depths, at `013b9402` (before `PassesThenTerminated`) except for the NIT round's rows.
- **The NIT round, at `41f781fd`:** 4 more runs, 3 caught. rv884's R4 (`(?:Error \d+|Killed)` only) and this round's S1 (what ended it at most 8 bytes, so `Terminated` is missed) are caught by `PassesThenTerminated` alone; Q12 reversed is caught by `PassesThenKilled` and `PassesThenTerminated`. rv884's R7 (no space before `(ignored)`) survives and is equivalent: make always prints the space, and it differs from head in none of the 230 case-modes (rv884's `sweepr7.log`); `PassesThenTerminated` reads 2 under it.

| mutant | caught by |
|---|---|
| rv884's Q12 reversed (`Error \d+` only, `58e4ddf0`'s pattern) | both `[innermost*]` (`PassesThenKilled`; at `41f781fd` also `PassesThenTerminated`) |
| rv884's R4 (`(?:Error \d+\|Killed)` only), at `41f781fd` | both `[innermost*]` (`PassesThenTerminated`) |
| S1 (`[^\n]{0,8}` for what ended it), at `41f781fd` | both `[innermost*]` (`PassesThenTerminated`) |
| rv884's Q6 (`self.depth = depth - 1`) | both `[innermost*]` (`LetsTwoBelow`) |
| rv884's Q11 (the reset only below a deeper line) | both `[innermost*]` (`InnerLets`) |
| rv884's I1 reversed (only `Error 2 (ignored)`); P4 (only `Error \d (ignored)`) | both `[innermost*]` (`PassesThenLets`, `PassesThenKilled`) |
| rv884's I17 reversed (`min(self.depth, depth)`, `dbd3a6dd`'s code) | both `[innermost*]` (`LetsBelow`, `LetsTwoBelow`) |
| rv884's I8 (`min(self.depth, depth + 1)`) | both `[innermost*]` (`LetFail`, `LetsBelow`, `LetsTwoBelow`, `PassesThenLets`, `PassesThenKilled`) |
| rv884's I4 (an `(ignored)` line clears the code) | both `[innermost*]` (`ThenLets`) |
| N2, the `(ignored)` line not read | both `[innermost*]` (`LetFail`, `LetsBelow`, `LetsTwoBelow`, `PassesThenLets`, `PassesThenKilled`) |
| N3, the `(ignored)` line sets its own depth; N5, it falls through | both `[innermost*]` (`InnerLets`, `LetsBelow`, `LetsTwoBelow`) |
| N4, `max(self.depth, depth)` | both `[innermost*]` (`InnerLets`, `LetFail`, `LetsBelow`, `LetsTwoBelow`, `PassesThenLets`, `PassesThenKilled`) |
| R1, R8, H1, H2, H4, H6, H8, H9, N1, X1, X2, X4, X7, X11, X12 | both `[innermost*]` (R1 and R8 also `[last-under-make]`; R8 also the pieces test; X1 also both `told_apart` cases) |
| H3 (`<=` for `<`), H12 | `[last-under-make]` |
| H5 | `[innermost]` |
| H7 | both `told_apart` cases, both `[innermost*]` |
| H10, H11, X3 | the pieces test |
| R7 | `test_a_member_s_question_shows_before_its_answer_is_typed` |
| R10, R11 | the matching `test_no_advice_beside_no_member_updated_with_every_member_checked_out` case |
| D1, D2 | `test_what_a_member_s_make_leaves_on_stderr_is_passed_on_as_written` |
| X8 (`splitlines`) | 7 tests |
| X10 (one-digit code) | `[signal]` |

- The 5 survivors are equivalent: rv884's R7, as above, and X5 (`\s*$` dropped; make's `***` lines carry nothing after the code), X6 (the unended remainder read at EOF; make always ends its line), X9 (passed over only one level deeper; makes nest one level at a time) and P3 (an `(ignored)` line resets the depth to 0, not -1; no line's depth is below 0, so `depth < 0` and `depth < -1` are both always false).

**Runs**, through `run9s.sh` with `SHARDS=3`, with no tracked changes. The files: `tests/test_family_holder_bootstrap_texts.py`, `tests/test_family_bootstrap_gate_order.py`, `tests/test_bootstrap_spelling.py` and `tests/test_pinned_copy_text.py`; the two that `git grep -l 'family-root/scripts/bootstrap' -- tests` names, `tests/test_family.py` and `tests/test_update_shape_kept_helper.py`; the trio, `tests/test_repo_hygiene.py`, `tests/test_agents_md_codes.py` and `tests/test_cli_reference.py`; and five more that run the holder's bootstrap: `tests/test_family_gitmodules_values.py`, `tests/test_family_head_lost_gitmodules.py`, `tests/test_family_members_not_a_list.py`, `tests/test_bootstrap_without_git.py` and `tests/test_family_makefile_siblings.py`.
- git 2.43.0, at `41f781fd`: 1178 passed, rc 0 (shards 222, 429 and 527); the texts file alone, 57 passed, rc 0.
- git 2.47.1: the texts file at `41f781fd`, 57 passed, rc 0; the full set at `013b9402`, which differs from `41f781fd` only in the texts file's new member, 1178 passed, rc 0 (the same shards).
- The count is higher than #886's 1049 because main has since added tests to these files.

**Merge checks**, `git merge-tree --write-tree` of `41f781fd`, after a fresh fetch:

| against | result |
|---|---|
| origin/main `2d372bb5`, one commit past #886's squash `e7039b71`, touching neither file | clean, tree `e55b04f3` |
| lane 4's #889, head `3b15de03`, which edits other parts of `bootstrap.py` | clean, tree `a454759a`; main and #889 merge clean too, tree `5ad6e5d1` |

- Before the restack, `d2be39dc` with the predicted squash of #886 conflicted in both files, and taking this branch's side gave tree `30ba7a3e`, the merge of `d2be39dc` with main `0d5d2b11`. On a detached commit at that tree, `3133e841`, the texts file, `tests/test_family_gitmodules_values.py` and `tests/test_pinned_copy_text.py` gave 291 passed, rc 0 (git 2.43). The restack `58e4ddf0` has that tree.

**Sonar-style checks.**
- No duplicated block: no window of 6 to 10 lines that touches a line added since `dbd3a6dd` appears anywhere else in `tests/`, `scripts/` or `templates/`, in exact text. With literals blinded, the same holds for fix round 1's and the NIT round's lines, and over the whole change since `281df263` no window of 10 or 8 lines matches; at 6 lines only the test file's import block does.
- With literals blinded, `INNERMOST`'s members matched each other in two 10-line windows at `dbd3a6dd` (rv884's note on #886); with `FINDS` and `REFUSES` shared, none do.
- No assert was added, and none joins conditions with `and`.
- Cognitive complexity, counted by hand with Sonar's rules: `MakeErrors.said` stays 6, its branches unchanged (`if not found`, `depth_said or 0`, `if ignored`, `code == b"2" and ...`, `if code and not ...`). No other function's code changed. The longest added line is 75 columns; the NIT round's longest is 74.

**Not here.**
- No Windows or macOS run, since CI is Linux only (#597). Make before 4.0 was not run.
- The `-k` shape of line 2 still names the let-fail command's code; reading it right would take a code kept per depth.

Review: rv884, lane 5's independent reviewer, not the writer (w884): READY at `d2be39dc` (issuecomment-6250054923), READY at fix round 1 `013b9402` (issuecomment-6250467939), and READY with no findings at the NIT round `41f781fd`, the head that lands (issuecomment-6250610517). CI (Brett Heap's ruling 27): H0 is the head 41f781f itself, which passed tests, tests-git-bash and SonarCloud; main has touched none of its files since its base e7039b7; and the local gate passed on its predicted squash tree 6622c40 over main 5017830: the family_holder_bootstrap_texts, repo_hygiene, agents_md_codes, cli_reference sets, 205 passed. Landed on Brett Heap's word of 2026-10-18T14:45:28Z, relayed to every lane by lane 3 (#473 issuecomment-6251255596): "merge v1.2.0 PRs once reviewed and green".

Closes #890

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 18, 2026
…ations its checkout scenarios reach are held clear of shell syntax over a root that needs quoting, and the file says the PowerShell form of a line is checked as text, by two tests, and run by no job (#415) (#899)

`tests/test_doctor_legs_members_next.py` held an explanation clear of `;`, `'`, a backtick and a parenthesis. That held only because pytest's temporary roots need no quoting: over a root like `my atlas`, the keep line is `git -C '<root>/my atlas/spec' branch NAME` (#415, N7). Since #277 the sentence is the row's `why`, on its own line, and that rule no longer binds it.

Now:

- **`assert_fixed_words_are_plain(why, *spelled)`** asserts that each `quote_arg`-spelled path is in `why`, replaces it with `PATH`, and holds the fixed words that remain clear of the five characters. A call with no path reads the whole of `why`, as the loop it replaced did.
- **The restated test** runs the five checkout scenarios over two roots that need quoting, `my atlas` and `do ct'or`. `shlex.split` of the keep line must give `git -C <mount> branch NAME`. That read is skipped on Windows, where PowerShell doubles an apostrophe.
- **#413a, #413c and the members git line** use the helper.
- **The PowerShell form of a line is checked as text and run by no job** (N6). The module docstring says so, and so do the two tests that check it, since no CI job runs this file on Windows (#597).

Mutants in `shape-doctor.py`: a `'` in the fixed words, a `'` in the keep-line sentence and an unquoted keep path are caught, and the last passed the old test. A `(` in `rerun_sentence` survives, as it did before, since no scenario reaches it.

Review: lane 1's independent reviewer found CHANGES at `1ce9a8c8`, where one docstring called its test the only check of the PowerShell form. It found `fbfcc9e8` READY, after a round of docstrings and comments only.

It lands by fast refresh (Brett Heap, 2026-10-15T22:48:35Z). Its reviewed head `fbfcc9e8` is green on Linux and SonarCloud. The branch merged main once and was never rebased; the last merge is update-branch's, clean, giving 066c940, which is green on SonarCloud and Git Bash. Lane 1's gate passed on its tree: the 4 test files that run or read these explanations (`test_doctor_legs_members_next.py`, `test_doctor_paste_through_git.py`, `test_no_auto_maintenance.py` and `test_repo_hygiene.py`), 348 passed and 6 skipped.

Closes #415

Lane: openreposhape-1 (openRepoShape-1)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 19, 2026
…ad is refused by name, exit 2, on every Python, never `family-root-missing`, `member-uninitialized` or "not on disk", and no rollback removes past it (part of #430) (#955)

Slice G of #430 (lane 1's plan, issuecomment-6251069236): scripts/family.py
and a new tests/test_family_py_unreadable.py, nothing else.
scripts/repo_shape.py is untouched, and family.py is a standard tool, not a
pinned copy (it is in none of shape_materialize.py's copied lists), so no
holder takes a row for it.

Path.is_file(), is_dir() and exists() raised a refused `stat` on Python 3.9
to 3.13 (a traceback, exit 1) and answer False to any `OSError` from 3.14;
os.path.lexists has answered False to one on every version. So on 3.14 a
holder this user could not search was `family-root-missing`, a member
checkout it could not enter was `member-uninitialized`, `remove --dry-run`
said "not on disk" of a mount in an unsearchable `members/`, and `remove`'s
rollback called an object store it could not read "not there, and clone it
there" and made the member's folder again, empty. Each guard the plan names,
and three more on the same flows (`add`'s mount path and cached store, and a
member's `project.yaml`), now asks the operating system itself:

- `_is_a(path, kind)`, `_ABSENT_ERRNOS` and `_ABSENT_WINERRORS`, under
  bump-leg.py's names (#383): ENOENT, ENOTDIR, EBADF and ELOOP (Windows 21,
  123 and 1921) are "not there", a NUL in a name is no file, and any other
  `OSError` is raised for the caller to name. `_is_there(path)` is the same
  with `lstat`, for the guards that asked `os.path.lexists`. `_gone(path)`,
  for a removal or a rollback, is True only for ENOENT (ENOTDIR and ELOOP
  are raised), so nothing is removed, or recorded as made by the run, past a
  path nobody looked at.
- The refusal is `<path relative to the holder>: cannot be read (<reason>)`,
  exit 2, made before anything is written and the same under `--dry-run`:
  `chmod u+r` / `chmod u+rx` (and every directory above it inside the
  holder) for a permission, and for any other cause `OTHER_CURE` and no
  `chmod`. A rollback step the operating system refused is `<path>:
  <reason>; <cure>` (`_undo_reason`), because the step may have written and
  not read: the cure for a permission names both (`chmod u+rw` on a file,
  `chmod u+rwx` on a directory and on every directory above it inside the
  holder).

The sites, each with its 3.14 answer before:

- `Family.open` (`add`, `bump`, `remove`) and `siblings`: a holder at 444 or
  000 is `family-root-unreadable`, naming family.yaml by its whole path, not
  `family-root-missing` (whose remedy runs `family.py init` over a holder
  that is there); `siblings`' script is `siblings-script-unreadable`, not
  `siblings-script-missing`, and nothing is run, cloned or fetched.
- `bump`: a member's `.git` this user cannot read is `member-unreadable`,
  not `member-uninitialized` (whose remedy runs `git submodule update
  --init` over a checkout that is there); dry run and real run, holder
  unchanged.
- `remove` (`_checked_mount_readable`), before any git command that writes,
  dry run and real run alike: the mount (a file where `members/` was,
  ENOTDIR, included), its `.git`, the object store git keeps for it, and
  that store's `HEAD` (a `stat` asks no read permission of a file, so
  `os.access` too) are `member-unreadable`. The store is asked whether the
  mount is on disk or not, and a store that is gone (ENOENT) is still
  removed, as #365 removes it. Before, the dry run said "not on disk"; the
  real run ran `git submodule deinit -f` before `git rm` failed (3.14) or
  raised a traceback (3.12); and a store this user could not read was passed
  and the removal committed (exit 0 on 3.14, a traceback after the commit on
  3.12).
- `remove`'s NOTE about the object store `git rm` leaves, after the commit:
  one it cannot read is a NOTE that says so, exit 0 (the commit has landed,
  so it is no refusal), not silence (3.14) or a traceback over a commit that
  is made (3.12). For a cause that is not a permission, no `chmod`.
- `add`: the mount path and the cached store are `member-unreadable`, before
  the member is read and with the holder unchanged; a file where the stores'
  folder belongs is refused in the dry run too, as the real run refused it.
- `MountRollback` and `PinRollback` record, and undo, with `_gone`, `_is_a`
  and `_is_there`, so a path they cannot read is raised before the first
  write and never recorded as made by the run or as no checkout. A store a
  rollback cannot read is named, with the cure, and the commands typed by
  hand (`git submodule update --init --no-fetch`, then a `git checkout` of
  the branch) bring the checkout back from it once it can be read; the
  sentence no longer says it comes back only from its remote.
- `_read_member_project`: a `project.yaml` whose `stat` is refused is
  `member-manifest-unreadable`, not `member-not-a-project`, whose remedy
  scaffolds a project that is one.

Three new codes: `family-root-unreadable`, `siblings-script-unreadable` and
`member-unreadable` (also the backstop the rollbacks' records raise);
`member-manifest-unreadable` is reused. No document lists them:
tests/test_agents_md_codes.py holds the codes AGENTS.md names to the tools
and not the other way, and docs/cli.md is `--help`, which this does not
change.

Rounds and review. Each round is a new commit on the last; nothing pushed
was rewritten. The writer is lane 4's W430G; the reviewer is lane 1's r955
(opus), who is not the writer.

- Round 0, 991990c, on main 5017830. r955's review at 991990c
  (issuecomment-6253468572): no MUST, three SHOULDs and six NITs; lane 4's
  plan is issuecomment-6253507486.
- Round 1, 8192050 (issuecomment-6254453773). SHOULD-1: `remove` refuses a
  store this user cannot read. SHOULD-2: r955's four rows for the mount's
  `.git`, taken as r955 wrote them. SHOULD-3: a rollback step names the path
  and its cure. r955's surviving mutants M18, M19, M27, M28 and M30 are
  killed. NIT 4: `add --dry-run` refuses a file where the stores' folder
  belongs, as the real run does. NIT 5: `STORE_UNREADABLE`'s routing is
  written down and pinned by a row. NIT 6: a cause that is not a permission
  is told no `chmod`.
- Round 2, 0606cf9 (issuecomment-6254823058), on r955's partial re-check at
  8192050 (issuecomment-6254652436, no verdict yet). SHOULD-R1: a rollback
  step that failed to write is no longer told "cannot be read". NIT-R1: a
  store whose `HEAD` this user may not read is refused. X2: a row for a
  mount that is gone beside a store that cannot be read.
- READY at 0606cf9, rounds 1 and 2 together (991990c..0606cf9): r955's
  re-check, issuecomment-6269608262, no MUST and no SHOULD. Two NITs are
  left open: NIT-1, two mutants of the store-`HEAD` check survive (R2g,
  `W_OK` for `R_OK`, which a control with a `HEAD` at 444 would kill; R2i, a
  plain `OSError` for the permission error, which an assert on the `chmod
  u+r` words would kill); NIT-2 is about the PR's own text.

tests/test_family_py_unreadable.py (new): 75 tests, 16 controls (nothing
there; the answer is the one it always was), 33 refused-`stat` and unit rows
(`refused_stat` from tests/test_bump_leg_unopenable.py, which answers as
3.14 does on every Python, platform and user) and 26 mode rows
(`made_unopenable`, or a git hook for the moment after a write; skipped on
Windows and as root). Round 0 had 51 tests, round 1 69, round 2 75. The
tests' `refused` also routes `Path.lstat` through the `Path.stat` it
patches, since 3.14.7's `lstat` calls os.lstat directly (read from its
source, not run) and the `_gone` and `_is_there` rows would pass for the
wrong reason on a 3.14 CI. Each round's file against the family.py before
it: round 0's (51) on 5017830's, 37 failed and 14 passed; round 1's (69) on
991990c's, 13 failed and 56 passed; round 2's (75) on 8192050's, 8 failed
and 67 passed.

Runs (lane 4's on Python 3.12.3 and git 2.43.0, with a stub `gh` first on
PATH, GH_TOKEN=bogus, an empty GH_CONFIG_DIR and GIT_SSH_COMMAND=false):

- 8192050, one run of 38 files (the 34 test_family*.py files other than
  test_family_init_* and test_family_docs_one_spelling.py,
  tests/test_refusal_default_remediation.py and the trio:
  tests/test_repo_hygiene.py, tests/test_cli_reference.py and
  tests/test_agents_md_codes.py): 1712 passed, 4 skipped (reftable rows,
  which need git 2.45) in 39 minutes.
- 0606cf9, the 7 files round 2's edit reaches (the new file,
  tests/test_family_add_refusals.py,
  tests/test_family_bump_remove_rollback.py,
  tests/test_family_remove_gitmodules.py, tests/test_family_dry_run.py,
  tests/test_family_head_lost_gitmodules.py and tests/test_repo_hygiene.py):
  383 passed in 6m25s.
- r955's: 13 shards at 991990c, 1686 passed, 4 skipped; 38 family files at
  0606cf9, 1718 passed, 4 skipped, 0 failed. r955 also found CI green at
  0606cf9.

Mutants, each run against the rows chosen for it with `-x`, with family.py
put back and its sha256 checked after each. Lane 4's are all killed: 19 for
round 0 (G01 to G19, each putting one guard back as it was, or making
`_gone` take ENOTDIR as absent, or `_absent` read every `OSError` as absent,
as 3.14 does), 6 for round 1 (W1 to W6) and 6 for round 2 (R2-1 to R2-6,
r955's X2 among them). So are r955's five survivors of round 0 (M18, M19,
M27, M28, M30); M21 and M29 are equivalent, and M26 fails safe (nothing is
removed past a path that cannot be read). Of r955's own 11 mutants of round
2, 9 are killed; the two that survive are NIT-1.

Not done by this change, and said in the PR:

- No Python 3.14 interpreter was run; the 3.14 answers are a shim's and
  `refused_stat`'s. The mode rows need a POSIX mode and a non-root user, so
  on Windows and as root only the `refused_stat` rows run, and `os.access`
  answers for the real user (as root every `HEAD` reads as readable). On
  Windows a path under a file is ERROR_PATH_NOT_FOUND, which Python raises
  as FileNotFoundError, so `_gone` takes it for nothing there where POSIX's
  ENOTDIR is refused; CI is Linux-only since #597, and nothing here ran on
  Windows. The other-cause rows make their EIO with a patched `Path.stat`;
  no real I/O error was made.
- A leg's store that cannot be read during `remove`'s rollback is named in
  the sentence, but the closing words still say that leg comes back only
  from its remote; not tested. `_legs` has no row of its own.
- From before this change: `_rmtree`'s `clear_readonly` handler leaves a
  folder it could not remove at mode 0200 (r955's FYI), and `(root /
  ".gitmodules").is_file()` follows a link, so a `.gitmodules` that is a
  link into a folder this user cannot search would still read as none on
  3.14 (not measured), left for the hygiene slice to flag.

Part of #430 (slice G; lane 1's plan, issuecomment-6251069236). Round 1's
rows for the mount's `.git` in `remove` are r955's. #430 stays open for its
other slices.

Lane: openreposhape-4 (openRepoShape-4)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 20, 2026
… holding U+202E or another character the launcher refuses, by code point and in the launcher's words, before it prints the value or runs `git clone` (#953) (#1043)

`setup-project.py`'s self-bootstrap refuses an `$OPENREPOSHAPE_REPO` holding a character the launcher refuses (U+202E and the rest of `MISDRAWN_CHARACTERS`). It refuses by code point, in the launcher's words, before it prints the value or hands it to git.

Head `c42afa30`, one commit on origin/main `5b41d44f`. Only `setup-project.py` and a new `tests/test_setup_project_repo_misdrawn.py` change. No flag, no `--help` line and no doc changes.

**`setup-project.py`** (section 0, just above `self_bootstrap`):
- `MISDRAWN_CHARACTERS` is the launcher's list (`openRepoShape:502` at `5b41d44f`), entry for entry, in the package's tuple form. It is a copy, for `checked_value`'s reason: self-bootstrap mode runs before there is a checkout to read the launcher from.
- `misdrawn_characters(value)` names the characters a value holds as `U+XXXX`, in code point order. It is the package's `standard.misdrawn_characters`, and it looks for characters, as `CONTROL_RE` does.
- `checked_repo(value)` asks that first. It refuses with the launcher's `checked_repo` sentence, which names the code points and nothing else of the value. Then it calls `checked_value(..., PATH_RE)`, unchanged, for a leading `-` and a control character.
- `self_bootstrap` reads a non-empty `$OPENREPOSHAPE_REPO` through `checked_repo`. Unset or empty still means the default. The check stays where `--org` is asked, so the order is the same: `--org` first, then the repository, then `openRepoShape setup` is printed, then `mkdtemp` and `git clone`.
- The value's raw bytes are never printed. The refusal goes through `die`, so it is `REFUSED: ...` on stderr with exit 2.

**`tests/test_setup_project_repo_misdrawn.py`**, 22 tests:
- **Parity:** `test_the_misdrawn_table_is_the_launchers_list` reads `MISDRAWN_CHARACTERS=(...)` out of `openRepoShape` and compares the tuple. It also checks that `misdrawn_characters` names all of the launcher tests' `MISDRAWN`, each once and in order. `test_misdrawn_characters_names_the_launchers_and_nothing_else` runs the launcher's `SHARING_ITS_BYTES`. These follow #947's two tests for the package.
- **Direct path, 12 tests:** two runs (`Atlas --org acme`, which is the issue's run, and `--org acme` alone) times six values: U+202E, U+00AD, U+200B, U+E0001 (two, three and four UTF-8 bytes), two characters at once, and a tab before U+202E (the launcher asks for the code point before the control character).
  - Each test runs a lone copy of the file under `call_loggers`' logging git, gh and curl.
  - Each checks the launcher tests' `assert_refused_saying`: exit 2, the launcher's sentence, an empty stdout, and no listed character, escape or `forged` in either stream. So no `E2 80 AE` gets out.
  - The git log must hold exactly one call: the checkout probe.
- **Values that still go on, 7 tests:** the launcher's `NOT_CONTROLS` after `acme/`: e-acute, a no-break space, U+200C and U+200D where a script or an emoji needs them, U+2026, U+FF21 and a subdivision flag. Each is printed in the clone line and handed to `git clone` as before.
- **Package path, 1 test:** a tree with no `.git` (the package's modules under `src/openreposhape/`, plus `setup-project.py`, `scaffold-project.py`, `shape-doctor.py` and `contracts/repository-naming.yaml`). `openRepoShape Atlas --org acme` is run from that tree's `src` with the issue's value. The package prints its one line (`the standard is the checkout this package sits in, <tree>.`) and hands over. The tree's `setup-project.py` refuses: exit 2, the launcher's sentence, no U+202E and no `forged` in either stream, and only the checkout probe in the git log.
- Tests that use the logging stub are skipped on Windows. There `subprocess` starts `git.exe` and never the stub's `.cmd`, so the stub would log nothing. CI is Linux only (#597).
- `setup.sh` has no twin of these tests. Its guard covers control characters and the two separators and no other listed character, by #940's design: the launcher refuses the rest first where it is the way in.

**"No git call", stated exactly.** The refused run makes one git call, `git -C <dir> rev-parse --show-toplevel`. That is `is_shape_checkout`, which runs before `self_bootstrap` on every run past `--help` and `--preflight`. It asks whether the file stands in a checkout, which is how the run knows it is self-bootstrapping at all, and it names nothing of the value. No git call names the value, and there is no clone. Moving the check above the probe would also refuse the value on the developer path, which never reads it. It would also leave `setup-project.py` ordered differently from `setup.sh`, which probes first and guards only on its self-bootstrap path.

These run `$Q/v118/w953/probe.py`. Each case uses a fresh scratch folder, a logging git stub that then runs the real git, a gh that fails, `GH_TOKEN=bogus`, an empty `GH_CONFIG_DIR`, `GIT_SSH_COMMAND=false` and `GIT_CONFIG_GLOBAL=/dev/null`. "Before" is `git archive 5b41d44`; "after" is the worktree. Results are the same under git 2.43.0 and 2.47.1.

| Case | Before (`5b41d44f`) | After |
|---|---|---|
| package, ZIP tree, `Atlas --org acme`, `acme/r[U+202E]forged` | exit 128; `E2 80 AE` on stdout and stderr; git: probe, then `clone --quiet -- acme/r[U+202E]forged /tmp/openreposhape-shape-...` | exit 2; no `E2 80 AE`; git: probe only; stdout is the package's one line |
| direct, `Atlas --org acme`, same value | exit 128; raw bytes in the clone line; probe + clone | exit 2; refusal names `U+202E`; probe only |
| direct, `--org acme`, same value | exit 128; probe + clone | exit 2; probe only |
| direct, `acme/r[U+200B]forged` | exit 128; probe + clone | exit 2; names `U+200B` |
| direct, `acme/r[U+E0001]forged` | exit 128; probe + clone | exit 2; names `U+E0001` |
| direct, `acme/r[U+2026]b` (not listed) | exit 128; probe + clone | the same: probe + clone, exit 128 |

The "after" refusal, from the probe:

```
REFUSED: OPENREPOSHAPE_REPO holds a character a terminal draws as something other than itself (U+202E): one that is invisible, is drawn as another character, ends a line or reorders the text around it. This tool will not put it on a `git clone` command line. Set it to a URL or a path.
```

The new file was run on main's `setup-project.py` (`git show 5b41d44:setup-project.py`, put back byte for byte afterwards): **15 failed, 7 passed**.
- Failed: both parity tests (`AttributeError`: no `MISDRAWN_CHARACTERS`, no `misdrawn_characters`), all 12 direct tests, and the package test.
- Passed: the 7 `NOT_CONTROLS` tests. They pass at main by design, because they guard against a check that is too broad.

Each mutant was applied alone (`$Q/v118/w953/mutate.py`), the new file was run (22 tests), and both files were put back. **All 18 are killed.**

| Mutant | Failed |
|---|---|
| m01 check removed (main's read) | 13 |
| m02a check moved after the `(0) self-bootstrap` line | 13 |
| m02b check moved after the clone line | 13 |
| m03a only the value's first character checked | 15 |
| m03b only the table's first entry checked | 13 |
| m04 only U+202E checked | 8 (U+00AD, U+200B, U+E0001, two-at-once) |
| m05 refusal exits 1 | 13 |
| m06a table drops `E0001` | 4 |
| m06b parity compares the first five entries + table drops `E0001` | 4 (parity's second assert, `SHARING_ITS_BYTES`, both U+E0001 tests) |
| m06c parity compares the first five + table adds `200C` | 2 (`SHARING_ITS_BYTES`, the Persian/U+200C test) |
| m06d parity compares the first five + `2060-206F` narrowed to `206E` | 2 |
| m06e parity uses set inclusion + table drops `E0001` | 4 |
| m07 a range read without its last code point | 15 |
| m08 control check asked before the code points | 2 (both tab-then-U+202E tests) |
| m09 characters named in the value's order | 3 |
| m10 every character past ASCII refused | 7 (every `NOT_CONTROLS` test) |
| m11 refusal quotes the value back | 13 |
| m12 check skipped on a hand-over (`OPENREPOSHAPE_SELF_BOOTSTRAP=1`) | 1 (the package test alone) |

All at `c42afa30`, one pytest process at a time: `/usr/bin/python3 -m pytest -q -p no:cacheprovider -o tmp_path_retention_policy=failed`, one reused basetemp, `[email protected]`, a stub gh first on PATH, `GH_TOKEN=bogus`, an empty `GH_CONFIG_DIR`, `GIT_SSH_COMMAND=false`, `GIT_CONFIG_GLOBAL=/dev/null`.

| Run | git | Files | Result |
|---|---|---|---|
| h1 | 2.43.0 | `test_setup_project_repo_misdrawn.py` (22), `test_setup_project_ref_parts.py` (27), `test_openreposhape_package.py` (213), `test_readme_windows_quoting_sentence.py` (44), `test_release_install_check_children.py` (30), `test_repo_hygiene.py` (100), `test_agents_md_codes.py` (47), `test_cli_reference.py` (23) | 506 passed in 94.06s |
| h2 | 2.43.0 | `test_setup_project_py.py` | 340 passed in 122.68s |
| h3 | 2.43.0 | `test_setup_sh.py` | 191 passed in 96.62s |
| h4 | 2.47.1 | `test_setup_project_repo_misdrawn.py`, `test_setup_project_ref_parts.py`, `test_setup_project_py.py` | 389 passed in 128.13s |
| h5 | 2.43.0 | `test_no_auto_maintenance.py`, `test_setup_project_dry_run_offers.py`, `test_validator_child_encoding.py`, `test_setup_project_name_edges.py`, `test_setup_project_typed_name.py` | 353 passed, 2 skipped in 73.92s (the two skips: `GIT_CONFIG_GLOBAL` was set) |

No `shell_quoted` call was added (count 0), so the README's and the handbook's Windows-quoting sentences and `NAMED` are unchanged. `setup-project.py` is not a pinned copy. The wheel takes it at build time (`pyproject.toml` `force-include`), and the tests that read its source (`test_setup_project_py.py`, `test_release_install_check_children.py`, `test_repo_hygiene.py`) pass.

- `git merge-tree --write-tree` of `c42afa30` with origin/main `5b41d44f` (fetched with `-c gc.auto=0 -c maintenance.auto=false`) is clean, tree `59de4c261c228274a5cff18aff953211de7002e3`.
- No open PR touches `setup-project.py` or the new test file. Every open PR's head was still merged in, and all ten are clean: #1041 `4a23c6e2`, #1039 `5f924500`, #1038 `fd1de5ab`, #1031 `eea70be1`, #1030 `9b4845bb`, #1028 `0c9eac6c`, #1027 `052f1e24`, #1025 `f83ca618`, #1023 `4d0aa1cf`, #954 `dc7fd7ea`.

- **RV947's companion is left out.** That companion is the package's scaffold run asking the repository even beside a checkout.
  - Once this lands, no package run prints the value or hands it to git. Beside a git checkout, the hand-over takes `setup-project.py`'s developer path, which never reads `$OPENREPOSHAPE_REPO`. `self_bootstrap` and `standard.py` are the only shipped Python that read it. Beside a tree with no `.git`, this check refuses it.
  - The companion would change `standard.prepare`, which `--doctor` and the four tools share. They would then refuse a value they never use. That is the launcher's "checked once, before every run but `--help`" policy, and it is a decision about the package of its own.
  - `src/openreposhape/standard.py` is also open in #1038.
- **Found while measuring, not changed here:** `CONTROL_RE` and `PATH_RE` hold `\x00-\x1f\x7f` only, so a C1 control passes `checked_value`. The launcher and the package refuse C1 (U+0080 to U+009F) in a repository. With `acme/r[U+009B]31mforged`, the clone line prints the raw `C2 9B`, before and after this change. `--into` and `--local-remote-dir` go through the same `PATH_RE` (read in the code, not measured). That would be a follow-up for `checked_value`, which every flag shares.

Review: rv953, lane 5's independent reviewer, not the writer (w953): READY at `c42afa30`, the head that lands (issuecomment-6284626889), with no MUST. It rules #953's Verify met in substance: the refused run's only git call is the checkout probe every run makes, which names nothing of the value, and there is no clone. Its SHOULD is #459's documented C1 known limit (U031, L4-24), left with its test NIT for a follow-up on a ruling. CI (Brett Heap's ruling 27): H0 is the head c42afa3 itself, which passed tests, tests-git-bash and SonarCloud; main has touched none of its files since its base 5b41d44; and the local gate passed on its predicted squash tree e146bb5 over main e656199: the setup_project_repo_misdrawn, repo_hygiene, agents_md_codes, cli_reference sets, 192 passed. Landed on Brett Heap's word of 2026-10-18T14:45:28Z, relayed to every lane by lane 3 (#473 issuecomment-6251255596): "merge v1.2.0 PRs once reviewed and green".

Closes #953.

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 20, 2026
…the run by name, and B4 with a token in use is told from fetches redone without a trace, so the token reaches no file (#998, #996) (#1045)

Two stops of git's update in the family root's `scripts/bootstrap.py` still ended `family bootstrap ok` with the credential advice. Both were found by lane 5's review of #954 (issuecomment-6253384652):

- **#998** (checklist candidate 1): git's update ended by a signal. On git 2.43.0, a member's own `.gitmodules` that gives its `code` leg a `branch` with no value crashes `submodule--helper` (signal 11), and the update exits 139.
- **#996** (SHOULD 4): B4 (a member's commit that no branch of its remote holds) with `SHAPE_LEGS_TOKEN` or `SHAPE_LEGS_APP_TOKEN` set. #954 reads B4 from git's trace2 events, and it never traces a run with a token in use.

Both now fail by name, with no advice. Each closes in its own commit:

- `da7b14f8` closes #998;
- `b2bbb31c` closes #996.

**Stacked on #954** (#892, lane 4's), at its head `fe907c84`, and **lands after it**. The branch is `fe907c84` plus these two commits. Until #954 lands, GitHub's diff against main shows #954's changes too.

### #998: a signal (`da7b14f8`)

- **`ended_on(returncode)`** reads the exit code alone, never git's words, as #892 reads 128:
  - `128 + N`, up to `128 + signal.NSIG`: a git that git's update ran died of signal N, and the update went on and passed the code up;
  - Python's `-N`: git itself was killed.
- **Read as before:**
  - 128 is git's `die`. It goes to #892's walk, as it did.
  - A code from `128 + signal.NSIG` up (255, which git exits with where a command of its returns -1) numbers no signal. It reads as before.
- **Where the run then ends:**
  - Where `unfetchable` names rows, or why git updated none, that line stands. This is the case where git 2.43.0 crashes on the holder's own `.gitmodules`, and #768's rows hold it (mutant S7).
  - Otherwise (a) prints:
    ```
      UPDATE KILLED, and not for want of a credential: git's update ended on signal 11 (SIGSEGV, exit 139), which a git it ran died of. Git's own words above say which git and where.
    family bootstrap FAILED: git's update (ended on signal 11)
    ```
    For `-N` the line ends `(SIGSEGV, exit -11), which killed it.` instead.
- **No credential advice.** `credential_advice` gives none where a signal ended the update. A fetch git cannot make dies with 128, which ends git's update there. So an update that ends with `128 + N` met no failed fetch.

### #996: B4 with a token in use (`b2bbb31c`)

This follows the issue's "Direction (no trace2)".

- **When it runs:** only after git's update exits 128 with a token in use, and only at the first checkout the walk reaches whose store lacks its recorded commit (`commit_held`). The walk ends there either way, so this costs two fetches at most.
- **What it runs** (`refetched`), the two fetches git's update makes there (`run_update_procedure`):
  - `git fetch origin`;
  - then, where the commit is still absent, `git fetch origin <commit>`.
- **How each fetch runs:**
  - with the same `-c url...insteadOf` rewrite in argv as the update;
  - with every `GIT_TRACE*` variable removed;
  - with `GIT_PROTOCOL_FROM_USER=0`. This matches what `git submodule` gives every git it starts. Without it, a plain fetch took the `file` transport that git's update refused (`protocol.file.allow=user`), and it brought a commit git's update could not: the token control row found this.
- **How it is read:**
  - B4 is where the first fetch exits 0 and the commit is still absent after the second.
  - A first fetch that fails is the credential's skip, as now.
  - Where either fetch brings the commit, nothing is said (untold).
- **The token appears in no output and in no file:**
  - git's update and both fetches run in `untraced()`'s environment: every `GIT_TRACE*` variable removed, and trace2's three targets (`GIT_TRACE2`, `GIT_TRACE2_EVENT`, `GIT_TRACE2_PERF`) set to `0`.
  - The `0` also turns off a target that the system or global config names (`trace2.normalTarget`, `trace2.perfTarget`, `trace2.eventTarget`). Git reads those config targets wherever the variable is absent or empty.
  - Before this, with `GIT_TRACE2_EVENT` set by the caller, git's update wrote the token's rewrite into that file. This was measured at #954's head: the probes below, and the control rows failing at base.
  - The token still travels in argv only. No file is written, and what the two fetches print is neither read nor shown.
- **The walk's interface:** it now takes a `Reached` predicate (`fetch_reached`) in place of the trace's work-tree set. With no token, the predicate is the trace's answer, as before. With a token, it is `refetched`.
- **Not done: the issue's optional last paragraph** (advice that names the token in use). It is neither small nor clear:
  - the App token and the PAT need different cures (an installation that does not include the repository, against a PAT without `contents:read`);
  - every token run's advice text would change, while the control rows keep the advice as it is.
  - It is better as its own issue.

**Setup:**
- git 2.43.0 and Python 3.12.3;
- the family fixture of `tests/test_family.py`, in the holder with every member checked out;
- `bootstrap.py --skip-members`;
- a stub `gh`, `GH_TOKEN=bogus`, an empty `GH_CONFIG_DIR`, `GIT_SSH_COMMAND=false`, `GIT_CONFIG_GLOBAL=/dev/null`;
- the token is the fake `w892-a-token-no-forge-takes`.

| state | before | after |
|---|---|---|
| P3: IRRS's own `.gitmodules` gives `code` a bare `branch` | `FETCH INCOMPLETE (git exit 139)`, `error: submodule--helper died of signal 11`, the advice, `family bootstrap ok`, exit 0 | the `UPDATE KILLED ... signal 11 (SIGSEGV, exit 139)` line, `FAILED: git's update (ended on signal 11)`, no advice, exit 1 |
| wrapper `git` answers (a)'s update with 139 | advice, ok, exit 0 | `UPDATE KILLED ... (SIGSEGV, exit 139) ...`, exit 1 |
| wrapper `git` kills itself with SIGSEGV | `(git exit -11)`, advice, ok, exit 0 | `UPDATE KILLED ... (SIGSEGV, exit -11), which killed it.`, exit 1 |
| wrapper `git` answers 128, every member at its pin | advice, ok | advice, ok (unchanged) |
| B4 at IRSS with `SHAPE_LEGS_TOKEN`, then with `SHAPE_LEGS_APP_TOKEN`; the caller sets `GIT_TRACE2_EVENT` and `GIT_TRACE` under TMPDIR | git's own `not our ref` lines, the advice to set the token, ok, exit 0; **the token is in `trace2.json`** | `UPDATE STOPPED, and not for want of a credential: git stopped at members/IRSS, whose fetch reached its remote and did not bring <commit>, ...`, `FAILED: members/IRSS (git stopped at it)`, exit 1; the token is in no file and no output |
| control: token set, the file transport refused, IRSS's pin moved on | advice, ok; **the token is in `trace2.json`** | advice, ok; the token is in no file |

Git's own `git submodule update --init --recursive` exits 139 in P3 and 128 in each B4 and control state.

All rows are in `tests/test_family_bootstrap_stops_named.py`, #954's file. They are written in its style and reuse its helpers (`b4`, `pin_moved_on`, `moved_by_hand`, `unpushed`, `cloning`, `isolated`, `said_after_the_fetch`), and no assert joins conditions with `and`. The file now has 24 tests and 37 rows (25 before).

**#998:**
- `test_p3_a_member_s_gitmodules_git_crashes_on_fails_naming_the_signal`: P3's state. It is skipped where git's own update does not exit 139: 2.43.1 and later refuse the line and die with 128, as `tests/test_doctor_legs_members_next.py` skips a crash.
- `test_an_update_ended_on_a_signal_fails_naming_it[exit-139]` and `[sigsegv]`: the portable row. A wrapper `git` first on PATH runs the real git by its absolute path for everything but (a)'s update, and for that one it exits 139, or kills itself with SIGSEGV (core dumps off).
- `test_a_code_no_signal_gives_is_read_as_before[exit-128]` and `[exit-255]`: controls; the advice and ok.
- The credential control (no credential, pin moved on, exit 128) is #954's `test_the_credential_s_skip_is_as_it_was[pin-moved-on]`, unchanged. It keeps the advice and ok, and it kills S1.

**#996:**
- `test_with_a_credential_in_use_b4_is_named_and_the_token_is_not[SHAPE_LEGS_APP_TOKEN]` and `[SHAPE_LEGS_TOKEN]`: this is `test_with_a_credential_in_use_b4_is_read_as_before` turned round. Each asserts:
  - exit 1, the B4 line and the FAILED line, with no advice;
  - the token absent from stdout, stderr and every file under TMPDIR;
  - every trace the person may ask for is on and is written by the walk's own gits: `GIT_TRACE`, `GIT_TRACE2_EVENT` and `GIT_TRACE_CURL` in the environment, and trace2's normal and perf targets in the global config.
- `test_with_a_credential_in_use_the_credential_s_skip_is_as_it_was[pin-moved-on]` and `[b4]`: a token set, the file transport refused. Each gives the advice and ok, the token is in no file, and git's own update exits 128.
- `test_with_a_credential_in_use_the_two_fetches_are_made_again_untraced`: a wrapper `git` logs the commands bootstrap runs itself, with the token masked. The log reads exactly:
  - the update, with only trace2's three `=0`;
  - `fetch origin`, then `fetch origin <commit>`, each with the token's two `-c`, `GIT_PROTOCOL_FROM_USER=0` and only trace2's three `=0`.
  Every caller trace is on during this row too.
- `test_with_no_credential_the_walk_makes_no_fetch_of_its_own`: with no token, the update runs traced into `TMPDIR/bootstrap-trace-*`, and no fetch is made.
- `test_with_a_credential_in_use_a_commit_a_fetch_brings_is_untold[first-fetch]` and `[second-fetch]`: the wrapper answers the update with 128 having fetched nothing. Each gives the advice and ok.
  - `[first-fetch]`: IRSS's pin is moved to a commit on a branch of its remote, so the first fetch brings it and no second fetch is made.
  - `[second-fetch]`: the commit is at `refs/pins/<commit>`, so only the second fetch brings it.

Wrapper rows are skipped on Windows, where a `#!` script is not run.

**A fix to #954's `unpushed` helper.** It now numbers each commit it makes (`MADE`, a counter for the session). Lane 4's `fe907c84` names the commit after the clone's path. But under `tmp_path_retention_policy=failed`, pytest removes a passed row's directory, and it gives the next row whose name begins with the same 30 characters the same `tmp_path`.
- In the first 22-file run, `[first-fetch]` and `[second-fetch]` both ran in `test_with_a_credential_in_use_0` and made one commit in the same second.
- `[first-fetch]` had pushed that commit to a branch, so `[second-fetch]` failed.
- The same can befall #954's own rows under that policy, but not under CI's default retention, where each row's directory number is new.

**Fails at #954's head.** The new file was run against `bootstrap.py` at `4f97fedb` (sha256 `8282da7a...`, the same bytes at `fe907c84`):

| `bootstrap.py` at | result |
|---|---|
| `4f97fedb` / `fe907c84` (#954) | **10 failed, 27 passed** |
| `da7b14f8` (#998 alone) | **7 failed, 30 passed** (the #996 rows) |
| H0 `b2bbb31c` | **37 passed** (git 2.43.0, three runs); **36 passed, 1 skipped** (git 2.47.1: P3) |

- **The 10 rows that fail at #954's head:**
  - P3;
  - `exit-139` and `sigsegv`;
  - both B4-with-token rows;
  - both token controls, on the token in the caller's trace files;
  - the two-fetches row;
  - both fetch-brings rows.
- **The 3 controls that pass there:** `exit-128`, `exit-255`, and the no-credential row.

Each mutant was applied alone to `b2bbb31c`'s `bootstrap.py` (sha256 `e7372f13...`; the landing head's file, sha256 `50a16751...`, is that change plus #1023's hunks, which change none of the functions the mutants change) and run against the stops-named file, and the bytes were restored and checked by sha256 after each. All are **killed**.

| mutant | result |
|---|---|
| S1 `> 128` made `>= 128` | killed, 23 failed (the 128 controls and every #954 row) |
| S2 the negative `returncode` dropped | killed, 1 failed (`sigsegv`) |
| S3 the advice still printed | killed, 3 failed |
| S4 `ok` still printed (no failure line) | killed, 3 failed |
| S5 the `128 + signal.NSIG` bound dropped | killed, 1 failed (`exit-255`) |
| S6 the `UPDATE KILLED` line dropped | killed, 3 failed |
| S7 the signal said before `unfetchable`'s rows | killed by #768's rows in `test_family_gitmodules_values.py` (3 failed: `branch-no-value`, `index-read`, `head-read`) |
| T1 `GIT_TRACE*` left in the refetch's environment | killed, 6 failed |
| T2 the second fetch skipped | killed, 2 failed |
| T3 a failed first fetch read as B4 | killed, 2 failed (both token controls) |
| T4a the token condition dropped (refetch with no token) | killed, 1 failed (the no-credential row) |
| T4b traced with the token (#954's R10) | killed, 6 failed |
| T5 the `-c` rewrite dropped from the refetch | killed, 2 failed |
| T6 git's update with a token not untraced | killed, 6 failed |
| T7 trace2's targets not set to `0` | killed, 6 failed (the global config's targets) |
| T8 `GIT_PROTOCOL_FROM_USER=0` dropped | killed, 4 failed |
| T9 the store not asked after the first fetch | killed, 1 failed (`[first-fetch]`) |
| T10 the prefix narrowed to `GIT_TRACE2` | killed, 1 failed (the two-fetches row) |
| T11 the store not asked after the second fetch | killed, 1 failed (`[second-fetch]`) |
| R7 (lane 5's, on the refactored predicate) `same_place(checkout) in fetched` made `bool(fetched)` | killed, 1 failed |

All runs used `/usr/bin/python3 -m pytest -q -p no:cacheprovider -o tmp_path_retention_policy=failed`, with one reused basetemp, and this environment:
- `[email protected]`;
- a stub `gh` first on PATH, `GH_TOKEN=bogus`, an empty `GH_CONFIG_DIR`;
- `GIT_SSH_COMMAND=false`, `GIT_CONFIG_GLOBAL=/dev/null`;
- `LANES_*` and `GIT_ALLOW_PROTOCOL` unset.

| git | files | result |
|---|---|---|
| 2.43.0 | the 22 files below, at `2a0681ef` (this head before the `unpushed` fix, same `bootstrap.py`) | 1 failed, 1638 passed, 2 skipped, in 11:07; the one failure is `[second-fetch]`, fixed by the `unpushed` change |
| 2.43.0 | H0 `b2bbb31c`: the stops-named file + `test_repo_hygiene.py`, `test_agents_md_codes.py`, `test_cli_reference.py`, `test_no_auto_maintenance.py` | 265 passed, 2 skipped |
| 2.47.1 | this head: `test_family_bootstrap_stops_named.py` | 36 passed, 1 skipped (P3) |
| 2.43.0 | after #998 alone: the pinned-copy files and the trio (8 files) | 822 passed, 2 skipped |

**The 22 files:**
- the stops-named file;
- the two that `grep -l 'family-root/scripts/bootstrap' tests/` names: `test_family.py` and `test_update_shape_kept_helper.py`;
- every other file that runs the family root's `bootstrap.py`: `test_family_holder_remedies_compose.py`, `test_family_holder_bootstrap_texts.py`, `test_family_bootstrap_gate_order.py`, `test_family_gitmodules_values.py`, `test_bootstrap_without_git.py`, `test_family_unnamed_gitlink.py`, `test_family_config_appends.py`, `test_family_member_make_jobserver.py`, `test_family_siblings_bootstrap_unreadable.py`, `test_family_head_lost_gitmodules.py`, `test_family_members_not_a_list.py` and `test_family_makefile_siblings.py`;
- the files that pin the file's text: `test_pinned_copy_text.py`, `test_bootstrap_spelling.py`, `test_template_text_placeholders.py` and `test_no_auto_maintenance.py`;
- the trio: `test_repo_hygiene.py`, `test_agents_md_codes.py` and `test_cli_reference.py`.

**Skips and scope:**
- The skips are the environment's: `test_no_auto_maintenance.py` skips 2 rows because the session began with `GIT_CONFIG_GLOBAL` set.
- The full suite was not run.

**Static checks:**
- flake8 finds in `bootstrap.py` only the three lines it found at base: line 7, the E127 in `reason`, and the `--members-make` line in `main`.
- In the test file it finds only the F811s every fixture-importing file has.
- Both files are ASCII apart from the em dash already in `bootstrap.py`, with no raw control characters.

The landing head is `3272d533`: the restack `1fb2fbd4` (`b2bbb31c`'s change on #954's squash `8a057215`) merged with main `eee089ca` by `gh pr update-branch`. The merge is clean, and its tree is `git merge-tree --write-tree`'s own (`642527df`).
- Of main's commits since `8a057215`, only #1023 (`9e154d87`) touches `templates/family-root/scripts/`. The merge brings exactly #1023's `bootstrap.py` hunks into this file (patch-id `5563fd8e` on both sides). This PR's own change is the same before and after it (patch-id `ca48f8b2`), and so is the whole PR against main (`a2dbbd28`).
- #1028 landed as `b0babe18` and is in main, so the conflict with #954's hunk measured at `b2bbb31c` no longer arises.
- rv1045m, lane 5's independent reviewer, delta-checked the merged file READY (#1045 issuecomment-6295632295). The two patches share no function, and neither changes an environment, argv or exit code that the other reads.

`templates/family-root/scripts/bootstrap.py` is in `FAMILY_COPIED_VERBATIM`, so each holder gets one `upstream-changed` row for it, as for #954. No Windows or macOS run was made, since CI is Linux only (#597).

Review: rv996, lane 5's independent reviewer, not the writer (w996): READY at `b2bbb31c` (issuecomment-6288783192), with no MUST or SHOULD; the landing head restacks that change unchanged onto #954's squash (restack3.sh's changed-lines check). Its five NITs and two checklist candidates go to follow-ups. CI (Brett Heap's ruling 27): H0 b2bbb31 passed tests, tests-git-bash and SonarCloud; the head 3272d53 merges #954's final head, then #954's squash 8a05721 (the branch's own side for #954's files), then main, with tests, tests-git-bash and SonarCloud green; and the local gate passed on its predicted squash tree fb7a8df over main 6476c17: the family_bootstrap_stops_named, repo_hygiene, agents_md_codes, cli_reference sets, 207 passed. Landed on Brett Heap's word of 2026-10-18T14:45:28Z, relayed to every lane by lane 3 (#473 issuecomment-6251255596): "merge v1.2.0 PRs once reviewed and green".

Closes #996
Closes #998

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 20, 2026
…a signal fails the run by name wherever the update met it, read from git's trace, not only where its code is the update's last; with a token in use that stays a limit (#1056) (#1076)

Where a git that git's update ran dies of a signal, `make bootstrap` in a family holder now fails naming it wherever the update met it, not only where the signal's code is the update's last. This is #1056, found by rv996, lane 5's independent review of #1045 (issuecomment-6288783192, checklist candidate 1).

Git keeps only the last code that is not 0 (`update_submodules` in git 2.47.1's `builtin/submodule--helper.c`), and only 128 stops it. So a member's crash or kill before a later gitlink's 128 or 1 left no signal in the update's exit code, and #1045's `ended_on` saw none: the run said the credential advice and `family bootstrap ok`, exit 0, with IRRS's legs never updated.

One commit, on main `00f6d7f7` (which holds #1045 and #1023). It changes two files: the family root's `templates/family-root/scripts/bootstrap.py` and `tests/test_family_bootstrap_stops_named.py`.

### The signal is read from git's own trace (no token in use)

- With no token in use, git's update is already traced into a directory of the run's own (#892). `traced_in` now reads that trace once and returns a `Trace`: `fetched` (#892's work trees, as before) and `died`, read by the new `died_in`.
- **`died_in`** reads the events by the code, never git's words, as #892 reads a fetch:
  - a git writes a `child_start` event (with the argv) and a `child_exit` event (with the code) for each child it starts;
  - `child_of` pairs the two by the writing git's `sid` and the `child_id`;
  - a `child_exit` whose code is `128 + N`, N below `signal.NSIG` (`died_of`, now shared with `ended_on`), for a child whose argv begins `git` (`git_child`), is a git dead of signal N;
  - a hook or another program is not counted. Its code is its own: a `post-checkout` hook that exits 137 is no signal, and `git checkout` exits 1 over it (measured, both gits).
- **The first signal** is the first by the time each event gives, which is the order git met them. Where trace2 gives no time (its brief form), it is the order of the files and their lines.
  - File order alone would name the wrong one. The files go in the order their gits started, so a member's own update comes after git's update's file.
  - Measured on both gits: SIGKILL at IRRS's `code` leg, then SIGTERM at its `spec` leg. That ended IRRS's own update 143, and git's update's `child_exit` 143 for it came first in the files.
- **`signal_met`** chooses what (a) tells:
  - where git's update exited 0, nothing;
  - else the trace's first signal, where there is one;
  - else the update's own exit code, through `ended_on` as #998 reads it (`128 + N`, or `-N` where git itself was killed).
- **Nothing where the update exited 0.** It did all it set out to do then, whatever a git it ran died of on the way. Measured on both gits: a `reference-transaction` hook killed IRSS's `git fetch` after it wrote the branch, git found the commit reached, checked it out and exited 0. The run says every member and leg was fetched, as before.

### What the run says

- Where the signal's code is the update's own, the line is #998's, word for word, so the controls read as before:
  ```
    UPDATE KILLED, and not for want of a credential: git's update ended on signal 9 (SIGKILL, exit 137), which a git it ran died of. Git's own words above say which git and where.
  family bootstrap FAILED: git's update (ended on signal 9)
  ```
- Where the trace gave it and the update ended with another code:
  ```
    UPDATE KILLED, and not for want of a credential: a git that git's update ran died of signal 9 (SIGKILL, exit 137), and git's update went on and ended with exit 128. Git's own words above say which git and where.
  family bootstrap FAILED: git's update (a git it ran died of signal 9)
  ```
- No credential advice in either case (`credential_advice`).

### A signal and B4 both told: the signal first

- Before, `fetch_members` returned one failure line, the signal's or the walk's stop's. Now `told_past` says each that is there, each with its own failure line.
- Where both are told, **the signal is said first**. Why:
  - It is git's order. A death past the holder's records (128) ends git's update, so git met the signal at an earlier gitlink and went on past it.
  - Git's own words, printed just above, say them in that order too.
  - The two cures do not depend on each other.
- Measured: the killed checkout in IRRS, then B4 at IRSS, with the credential. Before, the B4 line alone was said. Now:
  ```
    UPDATE KILLED, and not for want of a credential: a git that git's update ran died of signal 9 (SIGKILL, exit 137), and git's update went on and ended with exit 128. Git's own words above say which git and where.
    UPDATE STOPPED, and not for want of a credential: git stopped at members/IRSS, whose fetch reached its remote and did not bring <commit>, ...
  family bootstrap FAILED: git's update (a git it ran died of signal 9), members/IRSS (git stopped at it)
  ```
- A `NOT CHECKED OUT` row or a whole-holder stop (`unfetchable`, `updated_none`) still comes first and alone, as for #998's signal (mutant S7's order is unchanged).

### With a token in use: the limit, said and pinned

The issue offered two ways. I measured both, and chose to say the limit and pin it with a row.

| measured (killed checkout, then IRSS's pin moved on, the token's fake value) | git 2.43.0 | git 2.47.1 |
|---|---|---|
| a directory trace target with the token's `-c` in argv: events holding the token | 1 (the top git's `start` argv) | 1 (the same) |
| the rewrite given in the environment instead, IRSS's origin an https url through a refused local proxy: events holding the token | 8 (the remote helper's `start` and `child_start` events give the url) | 0 |
| an `af_unix:dgram:` socket target read by a thread, in memory | 189 datagrams, 1 holding the token, the `child_exit` 137 for `git checkout` there; no file | 194, 1, the same; no file |

So:
- **Any file target writes the token**: in argv on both gits, and, moved to the environment, in git 2.43.0's remote helper url.
- **Git's one target that is no file, a Unix socket, works**, but this PR does not take it:
  - this process would have to read it for the whole update, and every git the update starts waits on it once Linux has queued 10 events (`net.unix.max_dgram_qlen` is 10 here), so a stalled reader hangs `make bootstrap`;
  - the socket's path must fit in the 107 bytes Linux takes. This harness's TMPDIR is 151 bytes, and a socket path under this session's scratchpad (114 bytes) was refused (`AF_UNIX path too long`);
  - git for Windows builds without it (read, not run).
  It would be a second trace mechanism, and is better as its own issue if wanted.
- **What the docstrings now say:**
  - `ended_on`: with a token in use the exit code is all there is, and a signal before a later failure is not told.
  - `credential_advice`: the limit and the measurement.
  - `run_update`: points at both.
- **The row:** `test_with_a_credential_in_use_a_signal_is_told_only_from_git_s_code`.
  - `[alone]`: the killed checkout alone is named, from git's own 137.
  - `[then-pin-moved-on]`: the killed checkout, then IRSS's pin moved on with the transport refused, is the credential's skip, the advice and ok.
  - Both: the token is in no output and no file under TMPDIR, with every caller trace on.

### Two docstrings corrected

- `ended_on`: git's update ends with a signal's code only where no gitlink after it fails, since it keeps the last code that is not 0. (It said the update "ends with that code".)
- `credential_advice`: a failed fetch does not always end the update with 128. A clone that fails gives 1 and the update goes on (rv996's NIT 2 on #1045), so the advice is dropped beside a signal even where a credential was also wanting. The run fails on the signal, and a run made again says the advice. (It said an update ending `128 + N` "met none".)
- The module docstring's (a) and (c), `fetch_members`, `run_update`, `fetched_in`, `GIT_DIED`, `UPDATE_KILLED` and `TRACE_ENV` say the same.

The probe is a pytest file kept out of the commit. It builds each state with `tests/test_family_bootstrap_stops_named.py`'s own helpers, runs the family root's `bootstrap.py --skip-members` (offline), and records the exit code, whether the credential advice is said, and whether the fake token is in any output or any file under TMPDIR. It also runs git's own update, traced, on a copy of the same state with no token. It was run at main `00f6d7f7` and at this head, on git 2.43.0 (`/usr/bin/git`) and on git 2.47.1 (a local build, first on PATH). Each cell is the verdict, the signal said, and the exit code:

| state (in IRRS, then in IRSS) | main 2.43.0 | head 2.43.0 | main 2.47.1 | head 2.47.1 |
|---|---|---|---|---|
| killed checkout, then IRSS's pin moved on, no credential | ok + advice (0) | FAILED signal 9 (1) | ok + advice (0) | FAILED signal 9 (1) |
| killed checkout, then IRSS's checkout refused, with the credential | ok + advice (0) | FAILED signal 9 (1) | ok + advice (0) | FAILED signal 9 (1) |
| killed checkout, then B4 at IRSS, with the credential | FAILED + B4 stop (1) | FAILED signal 9 + B4 stop (1) | FAILED + B4 stop (1) | FAILED signal 9 + B4 stop (1) |
| control: killed checkout alone, with the credential | FAILED signal 9 (1) | FAILED signal 9 (1) | FAILED signal 9 (1) | FAILED signal 9 (1) |
| P3, then IRSS's pin moved on, no credential | ok + advice (0) | FAILED signal 11 (1) | ok + advice (0) | ok + advice (0) |
| P3, then B4, with the credential | ok + advice (0) | FAILED signal 11 (1) | ok + advice (0) | ok + advice (0) |
| control: P3 alone, with the credential | FAILED signal 11 (1) | FAILED signal 11 (1) | ok + advice (0) | ok + advice (0) |
| a hook that exits 137 (no signal), then IRSS's pin moved on, no credential | ok + advice (0) | ok + advice (0) | ok + advice (0) | ok + advice (0) |
| a hook that exits 137, alone, with the credential | ok + advice (0) | ok + advice (0) | ok + advice (0) | ok + advice (0) |
| SIGKILL at IRRS, then SIGTERM at IRSS, with the credential | FAILED signal 15 (1) | FAILED signal 9 (1) | FAILED signal 15 (1) | FAILED signal 9 (1) |
| SIGKILL at IRRS's `code` leg, then SIGTERM at its `spec` leg, with the credential | FAILED signal 15 (1) | FAILED signal 9 (1) | FAILED signal 15 (1) | FAILED signal 9 (1) |
| the same two legs, then IRSS's pin moved on, no credential | ok + advice (0) | FAILED signal 9 (1) | ok + advice (0) | FAILED signal 9 (1) |
| token in use: killed checkout, then IRSS's pin moved on | ok + advice (0) | ok + advice (0) | ok + advice (0) | ok + advice (0) |
| token in use: killed checkout alone | FAILED signal 9 (1) | FAILED signal 9 (1) | FAILED signal 9 (1) | FAILED signal 9 (1) |
| token in use: killed checkout, then B4 | FAILED + B4 stop (1) | FAILED + B4 stop (1) | FAILED + B4 stop (1) | FAILED + B4 stop (1) |
| token in use: killed checkout, then IRSS's checkout refused | ok + advice (0) | ok + advice (0) | ok + advice (0) | ok + advice (0) |

Read across the table:
- **Every no-token row of the probe that holds a signal now fails naming it, with no advice** (the rows that said `ok` with the advice, and the one that named SIGTERM): both killed-checkout rows (pin moved on, checkout refused) on both gits, and P3 (then IRSS's pin moved on, then B4) on git 2.43.0. P3 on git 2.47.1 is not a crash there (git refuses the line and exits 128, so nothing is killed), so its rows read as before.
- **Killed checkout, then B4:** the B4 line alone was said at main. Now both are said, the signal first.
- **A hook's own code is no signal:** a `post-checkout` hook that exits 137 reads the same at main and at this head: `ok`, with the advice.
- **The first signal is the first git met:** SIGKILL at IRRS, then SIGTERM at IRSS (and the two legs of IRRS) named SIGTERM at main, from git's update's own last code, and name SIGKILL now.
- **A signal in an update that exits 0 is not said.** A `reference-transaction` hook that kills IRSS's `git fetch` once, after it wrote the ref (git then finds the commit reached, checks it out and exits 0): measured at this head on both gits (main reads no trace, so it says the same), the run says `every member and leg fetched` and `family bootstrap ok`, exit 0. The trace there holds a `git fetch` `child_exit` of 137, and the row `test_a_git_killed_in_an_update_that_exits_0_is_not_said` pins that nothing is said (mutant M7).
- **With a token in use nothing changed**, on purpose (the four `token in use` rows): the signal is told only where its code is git's last.
- **The fake token** was in no output and in no file under TMPDIR in any run of any row (probe lines `token in output: False`, `token in temp files: []`).

All in `tests/test_family_bootstrap_stops_named.py` (#954's and #1045's file), reusing its helpers and its style, with no assert that joins conditions with `and`. The module docstring gains the new rows' list, and the P3 state moved into a `p3()` helper so two rows build it. 11 new rows (37 before, 48 after).

The issue's Verify rows (fail at main):
- `test_p3_before_a_later_failure_fails_naming_the_signal`: P3, then IRSS's pin moved on, no credential, git 2.43.0: exit 1, signal 11 (SIGSEGV) named, no advice, FAILED. Skipped where git does not crash, as #1045's P3 row is.
- `test_a_killed_checkout_before_a_later_failure_fails_naming_it[pin-moved-on-no-credential]` and `[checkout-refused-with-the-credential]`: the killed checkout (a `post-checkout` hook sending SIGKILL to its parent, `kill -s KILL $PPID`), then IRSS's pin moved on with no credential, and then IRSS's checkout refused with the credential. Each exits 1, names signal 9 (SIGKILL), gives no advice. Every POSIX git.

The choice rows (fail at main):
- `test_a_signal_and_b4_after_it_are_both_named_the_signal_first`: the killed checkout, then B4 at IRSS, with the credential: both lines, the signal first, and the failure line names both.
- `test_the_first_signal_is_named[two-members]` and `[two-legs]`: SIGKILL, then SIGTERM, at two members and at two legs of one member. The first by time is named (SIGKILL), where git's update's own last code, and the files' order, name SIGTERM.

The controls and the limit (pass at main, as intended, so they hold the rest as it was):
- `test_a_killed_checkout_alone_is_named_as_before`: #998's line, word for word.
- `test_a_hook_s_own_code_is_no_signal`: a hook that exits 137 is not a signal.
- `test_a_git_killed_in_an_update_that_exits_0_is_not_said`: the `reference-transaction` row above.
- `test_with_a_credential_in_use_a_signal_is_told_only_from_git_s_code[alone]` and `[then-pin-moved-on]`: the token's limit, pinned. Alone, the killed checkout is named from git's own 137. Then IRSS's pin moved on, the run is the credential's skip, the advice and `ok`, as before. Both: the fake token is in no output and in no file under TMPDIR, with every caller trace variable on.

The controls the issue names that already existed are untouched and pass: the signal alone (`test_an_update_ended_on_a_signal_fails_naming_it`, the P3 row), the credential's skip (`test_the_credential_s_skip_is_as_it_was`) and `test_a_code_no_signal_gives_is_read_as_before[exit-128]` and `[exit-255]`.

**Failing at main:** main's `bootstrap.py` bytes (sha256 `50a16751...`) against this branch's 48-row file, git 2.43.0: **6 failed, 42 passed**. The six are exactly the rows under "fail at main" above (the P3 row, the two killed-checkout rows, the both-named row and the two first-signal rows). They pass with the change.

Each mutant applied alone to the change's `bootstrap.py` (a script replaces one exact string and asserts it occurs once), the stops-named file run on git 2.43.0 (`/usr/bin/git`) through the lane's runner, the file restored from the head's bytes and its sha256 checked after each. All on the final 48-row file (M1 to M3 were run once on the first 47 rows and again on the 48, with the same rows failing).

| | mutant | result |
|---|---|---|
| M1 | the trace read dropped (`Trace(fetched_in(events))`) | killed: 6 failed, 42 passed |
| M2 | `128 + N` read as `>= 128` (`GIT_DIED <= code`) | killed: 31 failed, 17 passed |
| M3 | a `child_exit` of a child that is not `git` taken (`git_child` accepts any `child_start`) | killed: 1 failed (the hook row) |
| M4 | the last signal for the first | killed: 2 failed (`two-members`, `two-legs`) |
| M5 | the advice still printed beside a signal | killed: 10 failed |
| M6 | the sort by time dropped (file order) | killed: 1 failed (`two-legs`) |
| M7 | the exit-0 gate dropped (`signal_met` tells a signal where git exited 0) | killed: 1 failed (the `reference-transaction` row) |
| M8 | a child paired by `child_id` alone, without the writing git's `sid` | killed: 1 failed (the hook row) |
| M9 | B4 dropped beside a signal | killed: 1 failed (the both-named row) |
| M10 | B4 said before the signal | killed: 1 failed (the both-named row) |
| M11 | the "went on and ended with exit R" text never said | killed: 6 failed |
| M12 | that text always said | killed: 5 failed |
| M13 | git's update's own exit code asked before the trace | killed: 2 failed |
| M14 | the failure line always "ended on signal N" | killed: 6 failed |
| M15 | the `child_exit` kind check dropped from `died_in` | **survives**: 48 passed |

**M15 is equivalent, and the check stays as a reader's help.** `died_in` only takes an event whose `(sid, child_id)` is one `child_start` named for a git, and only a `child_exit` event carries a `code`. A `child_start` event has none, so `died_of(None)` is None whether or not the kind is asked. No input reaches a different answer.

All through the lane's runner (the real `gh` replaced by a stub, every `LANES_*` variable cleared, `[email protected]`, `GIT_SSH_COMMAND=false`, `GIT_CONFIG_GLOBAL=/dev/null`), at most two at once, never the full suite. Git 2.43.0 is `/usr/bin/git`; git 2.47.1 is a local build, first on PATH. `bootstrap.py`'s sha256 began `f1c156e29d07e149`, which the runs recorded and the committed file has (the test file's begins `1d558af665c3`).

| run | git | result |
|---|---|---|
| `tests/test_family_bootstrap_stops_named.py` (48 rows) | 2.43.0 | **48 passed** |
| the same | 2.47.1 | **46 passed, 2 skipped** (both P3 rows: that git exits 128 there, not 139) |
| main's `bootstrap.py` bytes, this branch's 48 rows | 2.43.0 | 6 failed, 42 passed (the rows listed under Tests) |
| the probe, after, 17 states | 2.43.0 and 2.47.1 | 17 passed each |
| group A: the stops-named file, `test_family.py`, `test_update_shape_kept_helper.py`, `test_family_holder_remedies_compose.py`, `test_family_gitmodules_values.py`, `test_pinned_copy_text.py`, `test_repo_hygiene.py` | 2.43.0 | **707 passed** |
| group B: `test_family_holder_bootstrap_texts.py`, `test_family_bootstrap_gate_order.py`, `test_bootstrap_without_git.py`, `test_family_unnamed_gitlink.py`, `test_family_config_appends.py`, `test_family_member_make_jobserver.py` (#1023's), `test_family_siblings_bootstrap_unreadable.py`, `test_family_head_lost_gitmodules.py`, `test_family_members_not_a_list.py`, `test_family_makefile_siblings.py`, `test_bootstrap_spelling.py`, `test_template_text_placeholders.py`, `test_no_auto_maintenance.py`, `test_agents_md_codes.py`, `test_cli_reference.py` | 2.43.0 | **1010 passed, 3 skipped** (GNU make's jobserver spelling here, and two rows that need a session without `GIT_CONFIG_GLOBAL`) |
| the 15 mutants | 2.43.0 | see Mutants |

Both groups and every file that names the family root's `bootstrap.py` (`grep -l 'family-root/scripts/bootstrap' tests/*.py` gives two files, both in the groups), `test_pinned_copy_text.py` and the trio (`test_repo_hygiene.py`, `test_agents_md_codes.py`, `test_cli_reference.py`) are in those two groups. No other test pins the functions or lines this changes (a grep of `tests/`, `docs/` and `scripts/` for them finds only a docstring's mention in `test_family_holder_bootstrap_texts.py`, in group B, and an unrelated workflow-validator row). The runs were made at main `00f6d7f7`'s tree plus this change, before main moved (see Merges).

`git merge-tree --write-tree` of this head `73906948` (parent main `00f6d7f7`), after fetching with `gc.auto=0` and `maintenance.auto=false`:

| against | result |
|---|---|
| `origin/main` `4a6b9afde` (3 commits past `00f6d7f7`) | clean (tree `ad8dab73`); none of the 3 touches `bootstrap.py` or the stops-named file |
| #1062 `fix/1040-windows-start-errors` `957ba038` (touches the family root's `bootstrap.py`, in `git_not_started` only) | clean (tree `70c5a715`); the merged `bootstrap.py` parses, and holds `died_in` and #1062's `4551` |
| #1075 `fix/1055-siblings-untraced` `c3cf5154` (lane 5's: `siblings.py`, `tests/test_family_siblings_untraced.py`, `tests/test_update_shape_kept_helper.py`) | clean (tree `6770fa61`); its `siblings.py` imports `untraced` from `bootstrap.py`, which this does not touch |

The other open PRs (#1073, #1072, #1071, #1070, #1069, #1068, #1064, #1031) touch neither file.

`templates/family-root/scripts/bootstrap.py` is in `FAMILY_COPIED_VERBATIM`, so each holder gets one `upstream-changed` row for it, as for #1045. The only import is unchanged (`signal` came with #998), and `siblings.py`'s import list from it is unchanged. No Windows or macOS run was made, since CI is Linux only (#597).

Review: rv1076, lane 5's independent reviewer, not the writers (w1056 and f1056): READY at `73906948` (issuecomment-6302104583) with no MUST or SHOULD; of its three NITs, the body's is fixed, and the other two (a docstring clause on a member's failed clone, and a text no row reaches) go to a follow-up. CI (Brett Heap's ruling 27): H0 is the head 7390694 itself, which passed tests, tests-git-bash and SonarCloud; main has touched none of its files since its base 00f6d7f; and the local gate passed on its predicted squash tree 9dae534 over main bccae28: the family_bootstrap_stops_named, repo_hygiene, agents_md_codes, cli_reference sets, 218 passed. Landed on Brett Heap's word of 2026-10-18T14:45:28Z, relayed to every lane by lane 3 (#473 issuecomment-6251255596): "merge v1.2.0 PRs once reviewed and green".

Closes #1056

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 21, 2026
… fetch that carry it run in bootstrap.py's `untraced()` environment, so `make siblings` and `family.py siblings` write the token to no trace the caller asks git for (#1055) (#1075)

`make siblings` and `family.py siblings` now write the token in `SHAPE_LEGS_TOKEN` or `SHAPE_LEGS_APP_TOKEN` to no trace the caller asked git for. #996 (#1045) did the same for `make bootstrap`.

Lane 5 found this in its independent review of #1045 (rv996, #1045 issuecomment-6288783192) and measured it in #1055.

`templates/family-root/scripts/siblings.py` gives the credential's `-c url.https://x-access-token:<token>@github.com/.insteadOf=...` rewrite, in argv, to two gits:
- the clone in `place`, for a member with no clone beside the holder;
- the fetch in `place`, for a member whose clone is there.

Both ran in the caller's own environment. So every trace2 target the caller named wrote the token in the `start` event of each, one line per member. `scrub` kept it out of the output, and only that part held.

Now:
- **`rewrite_environment(token)`**, a new function in `siblings.py`:
  - with a token in use, it returns `untraced()` from the `bootstrap.py` beside it. That is every `GIT_TRACE*` variable taken out, and `GIT_TRACE2`, `GIT_TRACE2_EVENT` and `GIT_TRACE2_PERF` set to `0`, which also turns off a target the global or the system config names;
  - with no token, it returns None, so the two gits keep the caller's environment and stay traced where the caller asked, as before.
- **The clone and the fetch** each run with `env=rewrite_environment(token)`. Nothing else in the file changes environment.
- **The member's own `scripts/bootstrap.py`**, which `place` runs after a clone, is given no token in its argv, and no `env`, so it keeps the caller's environment and its traces. That environment holds `SHAPE_LEGS_TOKEN` and `SHAPE_LEGS_APP_TOKEN` as before; the shipped member bootstrap (`templates/assembly-root/scripts/bootstrap.py`) reads neither. A test row holds this, and so does `tests/test_validator_child_encoding.py`, which reads that call as handing no `env`.
- **#1023's jobserver handling is untouched**: `dispatch` still runs each member's make with `member_make_environment(make)`, and no `MAKEFLAGS` reading changed.
- **The docstrings** now say the promise in full: `git_prefix` says the token is "never written into `.git/config`, never persisted, never printed, and never traced". `place`'s ABSENT paragraph in the module docstring says the same, and `rewrite_environment` says what was measured.

**One thing the issue did not ask for.** `GIT_TRACE_PERFORMANCE` writes a git's whole command line, `-c` included, on git 2.43.0 and 2.47.1 alike. So at main it held the token too, two lines per run, and the rows below set it. `untraced()` already takes it out: every `GIT_TRACE*` variable goes.

This follows #1045's `untraced()` (#996): the clone and the fetch run in the very environment `make bootstrap` gives every git it hands the token.

`siblings.py` imports `untraced` from the `bootstrap.py` beside it, next to `REWRITE_TARGETS`, `credential`, `member_make_environment`, `member_path` and `members_of`.

The issue left this to the writer, because a holder may keep a `bootstrap.py` older than its `siblings.py` (`update-shape.py apply --accept-local`), and an import of a name that copy lacks would stop `make siblings`, `park` and `resume` with an `ImportError`. The issue's text was written against main `1a47ed07`, where `siblings.py` still kept its own copy of the `MAKEFLAGS` readings. Since then #1023 (`9e154d87`, lane 4's) has decided the question for this pair of files:
- it replaced that copy with an import of `member_make_environment`, because a copy in each script failed SonarCloud's duplication gate;
- it named the price, in the import's comment and its commit: a holder that keeps its own `bootstrap.py` while `apply` writes `siblings.py` is refused, `update-accept-local-missing-name` (#536, #604), before a byte is written, and merges `bootstrap.py` by hand first.

`untraced` takes the same road for the same reasons:
- **One rule.** Which traces a command carrying the token is kept out of has one answer, for `make bootstrap` and `make siblings` alike. A copy here could drift from `bootstrap.py`'s, and the drift would be a token in a file.
- **A kept old `bootstrap.py` is refused in the one-step case, and not in a two-step one.** The guard reads names. `untraced` is new with #996 (#1045), so a kept `bootstrap.py` from before it is refused by that name, where `--accept-local` names it in the same `apply`. Measured with `update-shape.py`'s own readers, in process:
  - `siblings.py` at this head takes `REWRITE_TARGETS`, `credential`, `member_make_environment`, `member_path`, `members_of` and `untraced` from `bootstrap`;
  - the holder's `bootstrap.py` at main `00f6d7f7` lacks none of them;
  - the holder's `bootstrap.py` at `6476c170` (main just before #1045) lacks `untraced` alone, which is the line the refusal names.
- **The one-step case, measured end to end (rv1075).** A holder cut at `6476c170`, and `apply --at c3cf515 --accept-local scripts/bootstrap.py`: exit 2, `scripts/bootstrap.py (kept) lacks untraced, which scripts/siblings.py imports from it`, and the holder's files, HEAD and status unchanged.
- **Two applies in a row are not refused (rv1075's SHOULD 1, filed as #1082).** A holder whose earlier apply kept a `bootstrap.py` without `untraced` (rv1075 applied `--at 00f6d7f --accept-local scripts/bootstrap.py`: that target's `siblings.py` imports no `untraced`, so there was nothing to refuse), and then an apply at this head without `--accept-local`, gets `siblings.py` copied. `scripts/siblings.py` then fails with `ImportError: cannot import name 'untraced' from 'bootstrap'`, and so do `make siblings`, `park` and `resume`. The cause is the guard in `update-shape.py` (`:4288-4289`): it checks only the files `--accept-local` names in the same run. That is the gap of #536's guard, and it is on main already for #1023's `member_make_environment`; this change puts `untraced` into it and does not widen it. The text above this paragraph said no `ImportError` could reach a holder, which was too strong; #1082 is the follow-up, and it is not done here.
- **No copy, so no test to hold two copies to one answer.** `tests/test_update_shape_kept_helper.py`'s `test_what_siblings_takes_from_the_holders_bootstrap_is_found_defined` already holds that every name `siblings.py` takes is defined in the holder's `bootstrap.py`. Its docstring now says six names, not five.

**Setup:**
- git 2.43.0 (`/usr/bin/git`) and git 2.47.1, Python 3.12.3;
- the family of `tests/test_family.py` (two members, local bare remotes, the file transport allowed through `GIT_CONFIG_COUNT`), laid out as `<tmp>/InkRouter/InkRouter`;
- offline: a stub `gh` first on PATH, a bogus `GH_TOKEN`, an empty `GH_CONFIG_DIR`, `GIT_SSH_COMMAND=false`;
- the holder's own `scripts/siblings.py` was main's (sha256 `86bf57e0...`) or this change's;
- the fake token `w1055-a-token-no-forge-takes`.

**Each case was run three ways:**
- `make siblings`, which clones both members;
- `make siblings` again, which fetches both;
- `family.py siblings --family-root <holder>` in a fresh layout, which clones both.

**Traces were asked for in one of three ways:**
- the seven variables `GIT_TRACE`, `GIT_TRACE2`, `GIT_TRACE2_EVENT`, `GIT_TRACE2_PERF`, `GIT_TRACE_PACKET`, `GIT_TRACE_CURL` and `GIT_TRACE_PERFORMANCE`, each set to a file under the run's TMPDIR;
- `trace2.eventTarget`, `normalTarget` and `perfTarget` in a scratch `GIT_CONFIG_GLOBAL`;
- the same three in a scratch `GIT_CONFIG_SYSTEM`.

Each way was run with `SHAPE_LEGS_TOKEN`, with `SHAPE_LEGS_APP_TOKEN`, and with no token.

That is 108 runs at main and at the change, 54 for each git. Each run's TMPDIR and the whole family folder (the clones' `.git/config` included) were searched for the token.

| traces asked by | main, a token set (both variables, both gits) | this change, a token set | no token, either |
|---|---|---|---|
| the seven variables | `trace2-event.json`, `trace2-normal.txt`, `trace2-perf.txt`, `trace-performance.txt`: 2 lines each, in the clone, the fetch and `family.py` alike | none | no token anywhere; the same files written |
| the global config | `cfg-event.json`, `cfg-normal.txt`, `cfg-perf.txt`: 2 lines each | none | the same |
| the system config | `sys-event.json`, `sys-normal.txt`, `sys-perf.txt`: 2 lines each | none | the same |

**What the table rests on:**
- Every one of the 108 runs (and the 54 runs again on this head's final bytes, sha256 `b1e7bb21...`) exited 0 and ended `siblings ok: 2 member(s) beside the holder in ...`, with the token in neither stdout nor stderr.
- The 2 lines in each file are the `start` (or `performance:`) line of the git given the `-c`, one for each member. Each carries the token twice, once for each spelling the rewrite covers.
- With every member a local path, `GIT_TRACE`'s file was written and held no token, and `GIT_TRACE_CURL` wrote nothing, with no http remote. An https member is a different case, measured below.
- With the change and a token set:
  - every trace file but `GIT_TRACE_PACKET`'s was still written, by the run's other gits and the member's own bootstrap;
  - the packet trace was not written, since only the clone and the fetch write one here.

**An https remote, measured offline (rv1075, then the row of Round 2).** The rewrite reaches only `github.com`, and the probes above are offline, with local paths. A member whose `.gitmodules` url is `https://github.com/<org>/<repo>.git` is reached by it, and can be tried offline behind a dead proxy, `http.proxy=http://127.0.0.1:9`, so that nothing leaves the host:
- rv1075 set one member's url so, with `make siblings`, a fake `SHAPE_LEGS_TOKEN`, and the seven variables set to files, on git 2.43.0 and 2.47.1. Main's `siblings.py` (`86bf57e0`) held the token in `trace.txt`, `trace2-event.json`, `trace2-normal.txt`, `trace2-perf.txt` and `trace-performance.txt`; this head held it in no file and no output. The clone failed cleanly, `git clone exited 128`, and `make siblings` exited 2.
- `GIT_TRACE`'s file holds it too, in the `run_command: git remote-https origin https://x-access-token:<token>@github.com/...` lines: 3 lines on git 2.43.0, 4 on 2.47.1 (rv1075).
- Round 2 below holds this in a test row.

**Still not measured:** a github.com clone or fetch that succeeds, since no run here reaches the network.

`tests/test_family_siblings_untraced.py` is new. It uses `tests/test_family.py`'s `family` and `estate`, `offline` from `tests/test_family_add_refusals.py`, `files_holding` and `CREDENTIALS` from `tests/test_family_bootstrap_stops_named.py`, and `NO_CREDENTIAL` and `needs_make` from `tests/test_siblings_family_name.py`. No assert joins conditions with `and`. The token is the fake `w1055-a-token-no-forge-takes`.

**The rows.** Each entry point is crossed with each way traces are asked for:
- entry points: `make siblings` cloning, `make siblings` again fetching (after a first run with no token and no trace), and `family.py siblings` cloning;
- ways: the seven variables, the three targets in a scratch global config (a copy of the session's, which keeps git's automatic maintenance off), and the three targets in a scratch system config.

**Three tests** (the third is round 2's):
- **`test_with_a_token_in_use_the_token_is_in_no_trace`**: 18 rows (3 entries x 3 ways x 2 variables). Each asserts:
  - exit 0 and `siblings ok: 2 member(s) ...`;
  - the token in neither stdout nor stderr;
  - the token in no file under the test's directory: TMPDIR, every trace and config file, and the clones and their `.git/config`;
  - every trace file the way asks for written: 5 for the variables, 3 for each config;
  - the member's own bootstrap traced where a member was cloned: a git traced in a leg of each clone, which only that bootstrap runs. Where nothing was cloned, nothing ran there.
- **`test_with_no_token_the_clone_and_the_fetch_are_traced_as_asked`**: 9 controls (3 entries x 3 ways). Each asserts exit 0, `siblings ok` and the same trace files written. It also asserts the trace2 event file holds `siblings.py`'s own git at each member, read from the events: `git clone -q --no-local ...` to each member's slot, or `git fetch --quiet origin` in each member's clone.

**Fails on main.** The file was run against main's `siblings.py` (sha256 `86bf57e0...`, put in place and then restored, sha256 checked):
- **18 failed, 9 passed**: every row with a token failed, and the 9 controls passed;
- the variables rows found the token in `trace-performance.txt`, `trace2-event.json`, `trace2-normal.txt` and `trace2-perf.txt`;
- the global-config rows found it in `cfg-event.json`, `cfg-normal.txt` and `cfg-perf.txt`;
- the system-config rows found it in `sys-event.json`, `sys-normal.txt` and `sys-perf.txt`.

- **`test_an_https_member_with_a_token_in_use_is_in_no_trace`**: 3 rows, one for each of `CALLERS_CONFIG` (round 2 and round 3, below).

Each mutant was applied alone to the worktree's file and the new test file run (git 2.43.0). The bytes were restored and checked by sha256 after each:
- `siblings.py` sha256 `b776c69b...`: this head's code; it differs from the head only in two docstring lines;
- `bootstrap.py` sha256 `50a16751...`, main's, unchanged here.

All are **killed**.

| mutant | result |
|---|---|
| M1 the token condition dropped: `untraced()`'s environment always | killed, 9 failed (every control) |
| M1b the condition inverted | killed, 27 failed |
| M1c the clone untraced always, the fetch as it is | killed, 6 failed (the clone controls) |
| M2 the clone left in the caller's environment | killed, 12 failed (every clone row with a token) |
| M3 the fetch left in the caller's environment | killed, 6 failed (every fetch row with a token) |
| M4a `GIT_TRACE2_EVENT` not set to `0` (`TRACE2_OFF`) | killed, 12 failed (the global- and system-config rows) |
| M4b `GIT_TRACE2` not set to `0` | killed, 12 failed (the same) |
| M4c `GIT_TRACE2_PERF` not set to `0` | killed, 12 failed (the same) |
| M5 the `GIT_TRACE*` removal dropped (`env = dict(os.environ)`) | killed, 6 failed (the variables rows, by `GIT_TRACE_PERFORMANCE`) |
| M6 the prefix narrowed to `GIT_TRACE2` | killed, 6 failed (the same) |
| M7 the member's own bootstrap run untraced too | killed, 12 failed (the clone rows' bootstrap check) |

M5 and M6 are killed only because the variables rows set `GIT_TRACE_PERFORMANCE`. With a local-path remote, of the issue's six variables none but trace2's writes the `-c`, and trace2's three are set to `0` whatever the prefix does. With an https remote `GIT_TRACE` writes it too, in the `run_command: git remote-https` lines; that is what the row of Round 2 holds, and the mutant R4 below, which keeps the caller's `GIT_TRACE`, passed all 27 earlier rows.

**How every run was made:**
- through lane 5's runner: `/usr/bin/python3 -m pytest -q -rs -p no:cacheprovider -o tmp_path_retention_policy=failed`, one basetemp per run;
- `LANES_*` cleared, a stub `gh` first on PATH, `GH_TOKEN=bogus`, an empty `GH_CONFIG_DIR`;
- `[email protected]`, `GIT_SSH_COMMAND=false`, `GIT_CONFIG_GLOBAL=/dev/null` at the start of the session.

| git | files | result |
|---|---|---|
| 2.43.0 | `test_family_siblings_untraced.py`, on this change before the docstring fix | 27 passed |
| 2.43.0 | the same file against main's `siblings.py` | 18 failed, 9 passed |
| 2.43.0 | gate shard A: 19 of the 41 files below | 1623 passed, 4 skipped, in 19:51 |
| 2.43.0 | gate shard B: the other 22 of the 41 files | 2415 passed, 8 skipped, in 15:03 |
| 2.47.1 | `test_family_siblings_untraced.py` | 27 passed, in 1:14 |

**What the 41 gate files are:**
- the new file;
- `test_family_member_make_jobserver.py`;
- every file `grep -l siblings tests/` names;
- the pinned-copy and upgrade-row files: `test_pinned_copy_text.py`, `test_update_shape.py`, `test_update_shape_add.py`, `test_update_shape_kept_helper.py`, `test_no_auto_maintenance.py`, `test_template_text_placeholders.py`, `test_bootstrap_spelling.py`;
- the trio: `test_repo_hygiene.py`, `test_agents_md_codes.py` and `test_cli_reference.py`.

**The gate runs** (both shards at once, then the 2.47.1 run) were made on this change as it is committed: `siblings.py` sha256 `b1e7bb21...` and the new test file sha256 `7ba7a416...`, at main `00f6d7f7` (this branch's base; no rebase was needed, see Merges). The runner's `START` line read `dirty=2`, the two tracked files this commit changes, and a sha256 check after the runs found `siblings.py` unchanged (neither it nor the test files were modified after the runs started). The first pair of shards was stopped part way and re-run whole; only the re-runs count here.

**The 41 files, by shard:**
- shard A (19): `test_shape_doctor.py`, `test_validator_child_encoding.py`, `test_family_py_unreadable.py`, `test_pinned_copy_text.py`, `test_siblings_inputs.py`, `test_siblings_family_name.py`, `test_family_member_make_jobserver.py`, `test_update_shape_add.py`, `test_adopt_printed_sentences.py`, `test_family_printed_quoting.py`, `test_family_makefile_siblings.py`, `test_template_text_placeholders.py`, `test_park_resume_targets.py`, `test_windows_paths.py`, `test_doctor_gitmodules_not_utf8.py`, `test_local_remote_dir_urls.py`, `test_family_siblings_untraced.py`, `test_setup_family_folder.py`, `test_bootstrap_refusal_exit.py`;
- shard B (22): `test_repo_hygiene.py`, `test_doctor_legs_members_next.py`, `test_update_shape.py`, `test_family.py`, `test_update_shape_kept_helper.py`, `test_yaml_reader_spaces.py`, `test_bootstrap_spelling.py`, `test_agents_md_codes.py`, `test_family_siblings_placement.py`, `test_no_auto_maintenance.py`, `test_cli_reference.py`, `test_family_siblings_bootstrap_unreadable.py`, `test_bootstrap_branch_bytes.py`, `test_family_init_asks_every_value.py`, `test_validate_workflow_gitmodules_urls.py`, `test_adopt_contracts_dir.py`, `test_doctor_unfinished_merge.py`, `test_family_members_not_a_list.py`, `test_family_init_landing.py`, `test_family_docs_one_spelling.py`, `test_doctor_members_spelled.py`, `test_pins_child_kind_and_siblings_root_spelling.py`.

**The skips are the environment's, each named by its reason:**
- shard A: 3 in `test_shape_doctor.py` (the PowerShell line is printed, and `powershell.exe` exists, only on a Windows host) and 1 in `test_family_member_make_jobserver.py` (`make -j2` here writes `--jobserver-auth=3,4`, not GNU make 4.4's named pipe);
- shard B: 2 in `test_doctor_legs_members_next.py` (this git crashes on `submodule init`, exit 139, as git 2.43 does on a bare `branch`), 4 in the same file (this git dies on a `shallow` of -2**31, as git 2.43 does), and 2 in `test_no_auto_maintenance.py` (the session began with `GIT_CONFIG_GLOBAL` set, and its file includes that one);
- the 2.47.1 run of the new file skipped none.

The full suite was not run.

**Static checks:**
- flake8 finds in `siblings.py` only the three lines it finds at main (two E501, one E127, each moved down by the added lines);
- in the new test file it finds only the F811s every fixture-importing file has;
- both files are ASCII, apart from the dashes and the CJK example already in `siblings.py`.

Fetched with `-c gc.auto=0 -c maintenance.auto=false`, on 2026-10-20 at about 21:03Z. Round 1, `git merge-tree --write-tree` of the first head `c3cf5154` against (round 2's are in its own section):
- **origin/main `6c861635`**: clean, exit 0, tree `225b2a99`.
  - Main has moved two commits past this branch's base `00f6d7f7`: `9cbba9d5` (#1063: `scripts/family.py`, `scripts/shape_materialize.py`, `docs/cli.md` and two tests) and `6c861635` (#1065: `adopt-project.py` and three tests).
  - Neither touches `siblings.py`, `bootstrap.py`, `tests/test_update_shape_kept_helper.py` or the new test file, so there was no rebase and the gate runs above stand.
- **#1062** (`fix/1040-windows-start-errors`, head `957ba038`), the one open PR that touches a family-root script this change reads (`templates/family-root/scripts/bootstrap.py`, with the assembly root's and `validate-family.py`, `validate-pins.py` and three tests): clean, exit 0, tree `84d4b54a`.
  - Its diff does not touch `untraced()`.
  - In the merged tree `bootstrap.py` still defines `untraced` (and the five other names `siblings.py` takes from it), and `siblings.py` is byte-identical to this head's (sha256 `b1e7bb21...`).
- **The other 9 open PRs** (#1073, #1072, #1071, #1070, #1069, #1068, #1067, #1064, #1031): none touches `siblings.py`, `tests/test_update_shape_kept_helper.py`, or a file the new test imports from (`conftest.py`, `test_family.py`, `test_family_add_refusals.py`, `test_family_bootstrap_stops_named.py`, `test_siblings_family_name.py`), read from `gh pr list --state open --json number,headRefName,headRefOid,files`.

`templates/family-root/scripts/siblings.py` is in `FAMILY_COPIED_VERBATIM`, so each holder gets one `upstream-changed` row for it, as #1045 gave one for `bootstrap.py`:
- a holder that takes it with `bootstrap.py` from #1045 or later needs nothing more;
- a holder that keeps an older `bootstrap.py` with `--accept-local` in the same apply is refused, `update-accept-local-missing-name`, naming `untraced`, before anything is written;
- a holder whose earlier apply kept a `bootstrap.py` without `untraced`, and that then applies this change without `--accept-local`, is not refused: `siblings.py` is copied, and `make siblings`, `park` and `resume` meet an `ImportError`. That is the gap of #536's guard, which `member_make_environment` has on main already, and it is #1082's.

No Windows or macOS run was made, since CI is Linux only (#597).

rv1075, lane 5's independent reviewer, found `c3cf5154` READY (#1075 issuecomment-6302090874): no MUST, two SHOULDs and a NIT. One commit on top of it, `041f7831`, with no rebase: main has touched none of this PR's files.

**The three findings:**
- **SHOULD 1** (the body said no `ImportError` reaches a holder, and two applies in a row make one): answered in the body above, in "Where the helper comes from" and "The pinned copy". The gap is #536's guard's, it is on main for `member_make_environment` already, and it is #1082's; this PR does not change `update-shape.py`.
- **SHOULD 2** (every row used a local file remote, so a leak through `GIT_TRACE` on an https member had no test, and rv1075's mutant R4 passed all 27 rows): answered by the new row below.
- **NIT** (three places said the member's own bootstrap "is given no token"): `siblings.py`'s module docstring, `rewrite_environment`'s docstring and the test file's docstring now say it is given no token in its argv. It inherits `SHAPE_LEGS_TOKEN` and `SHAPE_LEGS_APP_TOKEN` in its environment, because `run_member_bootstrap` passes no `env`, and the shipped one reads neither. `rewrite_environment`'s docstring also names the https measurement.

**The code of `siblings.py` is unchanged.** Its syntax tree with the docstrings taken out is the same at `c3cf5154` and at `041f7831` (compared with `ast`); the file's sha256 moved from `b1e7bb21...` to `19107ad4...` over comments and docstrings only. So round 1's two gate shards (1623 passed, 4 skipped; 2415 passed, 8 skipped) were not re-run; the targeted runs below are.

**The new row,** `test_an_https_member_with_a_token_in_use_is_in_no_trace` (the file has 28 rows now). Its setup:
- the estate of `tests/test_family.py`, with `IRRS`'s url in the holder's `.gitmodules` given as `https://github.com/InkRouter/IRRS.git`, and `IRSS` still a local path;
- `http.proxy=http://127.0.0.1:9`, a dead proxy, in git's command scope after the entries the session holds, and `NO_PROXY` and `no_proxy` empty, so nothing leaves the host;
- a fake `SHAPE_LEGS_TOKEN` and the seven trace variables set to files;
- `make siblings`, cloning.

It asserts:
- the proxy is set where the row sets it: `http.proxy=http://127.0.0.1:9` is in the command scope the run's git reads (`command_scope_at`, which runs `git config --show-origin --list` and writes nothing);
- exit 2 and `IRRS: git clone exited 128:` on stderr, which is how the head fails (rv1075 measured the same);
- `IRSS` was cloned and `IRRS` was not;
- the token is in neither stdout nor stderr, and in no file under the test's directory;
- the five trace files the variables ask for are written, by the run's other gits.

No assert names the proxy in git's message. The git 2.47.1 this lane builds has no `git-remote-https` (`git: 'remote-https' is not a git command`, `fatal: remote helper 'https' aborted session`), so there the clone fails at once without reaching the proxy, still with 128. `GIT_TRACE` has written the `run_command: git remote-https origin https://x-access-token:<token>@github.com/...` line before that, so the row finds the leak on both gits. A first local version asserted the proxy's message and failed on 2.47.1 for that reason; the assert was dropped, and the commit amended, before anything was pushed.

**It fails on main.** The file was run against main's `siblings.py` (sha256 `86bf57e0...`, put in place and then restored, sha256 checked each time):
- git 2.43.0, the whole file: **19 failed, 9 passed**, the 18 rows of round 1 and the new row. The new row fails at `assert files_holding(tmp_path, TOKEN) == []`, with 5 files holding the token: `temp/trace-performance.txt`, `temp/trace.txt`, `temp/trace2-event.json`, `temp/trace2-normal.txt` and `temp/trace2-perf.txt`. The round 1 rows find 4 of those, since a local path leaves `temp/trace.txt` clean;
- git 2.47.1, the row alone: **1 failed**, the same 5 files.

**It kills R4.** R4 is rv1075's mutant, in `rewrite_environment`: `return {**untraced(), **{k: v for k, v in os.environ.items() if k == "GIT_TRACE"}} if token else None`, which keeps the caller's `GIT_TRACE` for the clone and the fetch. Applied alone, then restored and sha256-checked:
- git 2.43.0, the whole file: **1 failed, 27 passed**: the new row alone, with `temp/trace.txt` the one file holding the token;
- git 2.47.1, the row alone: **1 failed**, the same one file.

**The runs on the pushed head `041f7831`** (the runner's `START` line read `dirty=0`), through the same runner as round 1:

| git | files | result |
|---|---|---|
| 2.43.0 | the new file, `test_update_shape_kept_helper.py`, `test_family_makefile_siblings.py`, `test_family_member_make_jobserver.py`, `test_pinned_copy_text.py`, and the trio (`test_repo_hygiene.py`, `test_agents_md_codes.py`, `test_cli_reference.py`) | 589 passed, 1 skipped (the jobserver file's named-pipe row, as in round 1), in 5:09 |
| 2.47.1 (`git version 2.47.1`, printed from the exact path first on PATH) | the new file | 28 passed, in 2:13 |
| 2.43.0 | the new file against main's `siblings.py` | 19 failed, 9 passed |
| 2.47.1 | the new row against main's `siblings.py` | 1 failed |
| 2.43.0 | the new file with R4 | 1 failed, 27 passed |
| 2.47.1 | the new row with R4 | 1 failed |
| 2.43.0 | on a predicted merge with main (below): the new file, `test_update_shape_kept_helper.py`, `test_pinned_copy_text.py`, `test_family_makefile_siblings.py` | 305 passed, in 2:50 |

The full suite was not run. flake8 finds in `siblings.py` the same three lines as at round 1, and in the test file only F811s, from the fixtures it imports. Both files are ASCII, apart from the dashes and the CJK example already in `siblings.py`.

**The merges of round 2.** Fetched with `-c gc.auto=0 -c maintenance.auto=false` at about 23:00Z; `git merge-tree --write-tree` of `041f7831` against:
- **origin/main `c13c3985`** (#1076's squash, which touches `templates/family-root/scripts/bootstrap.py` and `tests/test_family_bootstrap_stops_named.py`, among others): clean, exit 0, tree `8ae10d0c`. None of the three files this PR changes is among the files main changed since the base `00f6d7f7`, so there is no rebase. In that tree `siblings.py` is byte-identical to this head's, `untraced()` has the same syntax tree as at the base, and `CREDENTIALS` and `files_holding`, which the new file imports from `test_family_bootstrap_stops_named.py`, are still defined. The 305-passed run above is on that tree;
- **#1062** (`fix/1040-windows-start-errors`, head `957ba038`): clean, exit 0, tree `e6ed1ba2`. Its `untraced()` has the same syntax tree as main's;
- **the other open PRs** (#1031, #1069, #1070, #1072, #1073, #1081, #1084): none touches `siblings.py`, `tests/test_update_shape_kept_helper.py`, `bootstrap.py`, or a file the new test imports from, read from `gh pr list --state open --json number,headRefName,headRefOid,files` at about 23:00Z. #1076 (`fix/1056-signal-anywhere`, head `73906948`) was open when the runs were made, and merged clean with this head then (tree `6ae3e65f`); it has landed since as `c13c3985`, above.

**The failure.** Lane 5's landing gate (log `c1075.log`, #1075 issuecomment-6304830183) failed the https row of round 2 at `041f7831`: 1 failed, 356 passed. The change in `siblings.py` was not at fault; the row depended on the caller's git config.
- The gate ran with neither `GIT_CONFIG_GLOBAL=/dev/null` nor `GIT_SSH_COMMAND=false`, which the writers' runs and round 2's runs had.
- `conftest.py`'s session global file includes the caller's global config (or `~/.gitconfig`, where `GIT_CONFIG_GLOBAL` is unset). The operator's `~/.gitconfig` has `[email protected]:.insteadOf=https://github.com/`.
- Git keeps the first of two `insteadOf` prefixes of the same length, and the config files are read before the command line, so that rewrite beat the token's `-c` rewrite of the same prefix. Measured with scratch files and a stand-in token, on git 2.43.0: under a global file with that rewrite, `git -c url.https://x-access-token:[email protected]/.insteadOf=https://github.com/ ls-remote --get-url https://github.com/InkRouter/IRRS.git` printed `[email protected]:InkRouter/IRRS.git`.
- So the row's `https://github.com/InkRouter/IRRS.git` went over ssh to `InkRouter/IRRS`, a real private repository. The dead proxy never applied, the clone succeeded, `make siblings` exited 0 and the placed members were both there, and the row failed `assert result.returncode == 2`.

**The fix** is in `tests/test_family_siblings_untraced.py` only. No other file changed in this round, and `siblings.py` is byte-identical to `041f7831`'s (sha256 `19107ad4...`).
- **`hermetic_config`** gives the https row's git a global file of its own, `session_global_config("")` (`conftest.py`'s own function: automatic maintenance off, and no include of the caller's file), `GIT_CONFIG_NOSYSTEM=1` and `GIT_SSH_COMMAND=false`.
  - It is the least invasive way: only the one row with an https url sets it, `conftest.py` and every other row stay as they were, and the other rows' remotes are local paths, which no rewrite of GitHub's url reaches.
  - `GIT_CONFIG_GLOBAL` set takes git's two user-level files out of the reading, and `GIT_CONFIG_NOSYSTEM` the system file whatever `GIT_CONFIG_SYSTEM` says (checked on git 2.43.0 and 2.47.1 with scratch files).
  - `GIT_SSH_COMMAND=false` is a second wall: a url somehow sent over ssh runs `false`. No mutant can show it needed, since the runner exports it too.
- **`url_after_config`** is a new assert before the clone: `git ls-remote --get-url <url>` (it applies the config's `insteadOf` and asks nothing of the network) must give the url unrewritten under the row's environment. A config that reaches the row now fails by name, before any clone.
- **The row is parametrized by `CALLERS_CONFIG`**: `none` (round 2's row), and `global` and `system`, each a stand-in for a caller's config that would send the url somewhere reachable. `as_the_callers_config` writes a scratch file of the test's own, `url.<file URI of the family's own IRRS remote>.insteadOf=https://github.com/InkRouter/IRRS.git`, into this process's `GIT_CONFIG_GLOBAL` (the session file includes it) or `GIT_CONFIG_SYSTEM`. It is built from tmp files only: no network, and never the real `~/.gitconfig`. The file now has 30 rows.
- With the fix, in each of the three, the clone fails at the proxy with git's 128, `make siblings` exits 2, `IRSS` is placed and `IRRS` is not, and the token is in no output and in no file under tmp_path.

**The variants fail without the fix.** Each was applied alone to the worktree's test file (or `siblings.py`) and run through the runner, with the file's sha256 checked after it was restored:
- **`041f7831`'s file as pushed, under a caller's global config.** Lane 5's runner now honours `L5_GIT_CONFIG_GLOBAL=<scratch file>` as the caller's global config, with ssh impossible. The scratch file rewrote `https://github.com/InkRouter/IRRS.git` to the run's own IRRS remote (a `file://` url under the run's basetemp). The whole file, git 2.43.0: **1 failed, 27 passed**, the https row at `assert 0 == 2`, the gate's failure reproduced with no network.
- **T2, `041f7831`'s row plus the variants:** the new file with `hermetic_config` and the `url_after_config` assert taken out. The https rows, git 2.43.0: **2 failed, 1 passed**, `[global]` and `[system]` at `assert 0 == 2` (the clone went to the local remote and exited 0), and `[none]` passes. On git 2.47.1 the same.
- **T1,** the row's global file dropped and the assert kept: `[global]` fails at the assert, which sees `file:///...IRRS.git` for the url; the other two pass.
- **T3,** `GIT_CONFIG_NOSYSTEM` dropped and the assert kept: `[system]` fails at the assert; the other two pass.

**R4 stays killed.** rv1075's R4 (`rewrite_environment` keeps the caller's `GIT_TRACE`), git 2.43.0, the whole file: **3 failed, 27 passed**, the three https rows.

**The runs on the pushed head `962ae43c`** (`START` read `dirty=0`), through the same runner as before:

| git | files | result |
|---|---|---|
| 2.43.0 | the new file, `test_update_shape_kept_helper.py`, and the trio (`test_repo_hygiene.py`, `test_agents_md_codes.py`, `test_cli_reference.py`) | 359 passed, in 3:05 |
| 2.47.1 (`git version 2.47.1`, printed from the exact path first on PATH) | the new file | 30 passed, in 1:51 |
| 2.43.0 | the new file, with `L5_GIT_CONFIG_GLOBAL` naming that scratch file | 30 passed, in 2:21 |
| 2.43.0 | `041f7831`'s file, with the same | 1 failed, 27 passed |
| 2.43.0 / 2.47.1 | T2, the https rows | 2 failed, 1 passed / 2 failed, 1 passed |
| 2.43.0 | T1, T3, the https rows | 1 failed, 2 passed each |
| 2.43.0 | R4, the whole file | 3 failed, 27 passed |

The full suite was not run. flake8 finds in the test file only F811s from the fixtures it imports, and nothing over 79 columns; the file is ASCII.

**The merge-tree of round 3.** Fetched with `-c gc.auto=0 -c maintenance.auto=false` at about 10:53Z; `git merge-tree --write-tree` of `962ae43c` against:
- **origin/main `2a119f28`** (#1092): clean, exit 0, tree `b5ea0114`. Main has landed #1076 (`c13c3985`) and #1062 (`ff0c72eb`) since the last round, and has changed `templates/family-root/scripts/bootstrap.py` and `tests/test_family_bootstrap_stops_named.py` among others, but none of this PR's three files. In that tree `siblings.py` is byte-identical to this head's, `untraced()` has the same syntax tree as at the base `00f6d7f7`, and `CREDENTIALS` and `files_holding` are still defined where the new file imports them from.
- **#1088** (`fix/1085-nit-texts`, head `88af1b7b`), which touches the same two files of main's: clean, exit 0, tree `365df092`, with the same findings.
- **The other open PRs** (#1087, #1090, #1091, #1097): none touches `siblings.py`, `bootstrap.py`, `tests/test_update_shape_kept_helper.py` or a file the new test imports from, read from `gh pr list --state open --json number,headRefName,headRefOid,files` at about 10:53Z.

Lane: openreposhape-5 (openRepoShape-5)

Review: rv1075, lane 5's independent reviewer, not the writers (w1055 and f1055): READY at `c3cf5154` (issuecomment-6302090874) with no MUST; its two SHOULDs and its NIT were taken in one new commit, and the re-check is READY at `041f7831` (issuecomment-6303900180), with no MUST or SHOULD; its one NIT, a merge-tree number in the body, is fixed in the body. CI (Brett Heap's ruling 27): H0 is the head 962ae43 itself, which passed tests, tests-git-bash and SonarCloud; main has touched none of its files since its base 00f6d7f; and the local gate passed on its predicted squash tree fc2afb3 over main 16f9a0e: the family_siblings_untraced, update_shape_kept_helper, repo_hygiene, agents_md_codes, cli_reference sets, 359 passed. Landed on Brett Heap's word of 2026-10-18T14:45:28Z, relayed to every lane by lane 3 (#473 issuecomment-6251255596): "merge v1.2.0 PRs once reviewed and green".

Closes #1055

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Oct 23, 2026
…y a member's failed clone ends git's update with 1 before any checkout but a leg's lets it go on, and `killed_said` says git's update was itself killed, not that it went on (#1085) (#1088)

The two texts #1076 (#1056) left in the family root's `bootstrap.py` say what git does. A member's clone that fails ends git's update before any checkout, where a leg's lets it go on, and a run whose git was itself killed is not said to have gone on. This is #1085, found by rv1076, lane 5's independent review of #1076 (its NITs 1 and 2).

Round 1 was one commit, on main `c13c3985` (where #1076 landed); round 2 (below) adds a second. It changes two files: the family root's `templates/family-root/scripts/bootstrap.py` (docstrings, and one line of `killed_said`) and `tests/test_family_bootstrap_stops_named.py` (one row). 2 files, 55 insertions, 14 deletions.

### NIT 1: two docstrings, no behaviour

- **`credential_advice`** said "a clone that fails, a member's or a leg's, gives 1, and git's update goes on". That is true of a leg's clone and not of a member's. It now says:
  - a member's fetch that fails ends the update with 128 (as before);
  - a member's clone that fails a second time, git having retried it, ends the update with 1 before any gitlink at that level is checked out (`quickstop`, git's `update_submodules`);
  - a leg's clone that fails gives its member's update 1, and git's update goes on (rv996's NIT 2 on #1045, kept).
- **`ended_on`** said `128 + N` is the update's code "where a git it ran died of signal N ... and no gitlink after it failed". A member's `git submodule--helper clone` that dies of signal N never gives that code: git retries it, and where the retry fails too the update ends in `quickstop`'s 1, even with nothing after it. The docstring now says so, and what that reads as:
  - **traced (no token in use):** `died_in` names the signal, since `git submodule--helper clone` is a git the update ran, and `signal_met` asks the trace first;
  - **with a token in use** (the update is not traced, #996): the update's code is 1, which reads as the credential's skip, the advice and `ok`, the limit `credential_advice` already says for a signal before a later failure.

### NIT 2: `killed_said`, one line

Where git's trace gave a git's signal (`Died(9, 137)`) and git's update returned `-9` (Python's code for git itself killed), the line said:

```
a git that git's update ran died of signal 9 (SIGKILL, exit 137), and git's update went on and ended with exit -9. Git's own words above say which git and where.
```

git's update did not go on and end: it was killed. It now says:

```
a git that git's update ran died of signal 9 (SIGKILL, exit 137), and git's update was itself killed (exit -9). Git's own words above say which git and where.
```

Every other line is byte for byte as before. I compared main's and this head's `killed_said` over 23,814 `(Died, returncode)` pairs (for each update code from -70 to 299: the update's own `ended_on` signal, where it gives one, and a trace's signal N = 1 to 64 with code `128 + N`), with `ended_on` itself:

- `ended_on` differs for 0 codes of -70..299;
- the pairs where the code is the update's own (the 134 codes that give a signal, #998's texts): 0 differ;
- the pairs where a trace's signal and a positive update code differ: 0;
- 4,480 pairs differ, each with a negative update code and a trace code (70 codes x 64 signals), and each now says "was itself killed (exit -N)".

(A script that loads main's and the head's `bootstrap.py` from `git archive` copies; its output is in lane 5's scratch notes, `v118/w1085/runs/probe-texts.txt`.) The failure line `(a git it ran died of signal N)` is unchanged, as it is true.

### Texts that pin those words

A grep of `tests/`, `README.md`, `docs/` (the handbook included), `AGENTS.md` and `contracts/` for "went on and ended", "killed_said", "went on", "member's or a leg's", "goes on (rv996", "UPDATE KILLED" and "quickstop" finds the words only in `bootstrap.py` and in `tests/test_family_bootstrap_stops_named.py`. There, `WENT_ON` pins "went on and ended with exit {ended}" with `ended` 128 and 1 (real runs, a positive code), which is unchanged and still passes. The README, the docs and the handbook say none of them.

The stops-named file's module docstring gains one paragraph for the new row.

I read, and did not run (no network clone, no real gh, no token):

- **git 2.47.1**: the local build tree of the git the lane's runs use first on PATH (`builtin/submodule--helper.c`, `run-command.c`, `trace2/tr2_tgt_event.c`, `usage.c`, `git-submodule.sh`).
- **git 2.43.0**: upstream's `v2.43.0` tag, the same five files (`builtin/submodule--helper.c` is byte for byte the copy an earlier lane 5 writer kept, w648c on #682, sha256 `9383338c...`; the other four I fetched as raw files from the tag, a read, not a clone). `/usr/bin/git` here is Ubuntu's `2.43.0-1ubuntu7.3`, which I did not read the patches of.

| claim | source (2.47.1 line, 2.43.0 line) |
|---|---|
| a member's clone is a `git` child, `git submodule--helper clone` | `prepare_to_clone_next_submodule`: `child->git_cmd = 1`, args `submodule--helper clone` (:2141-2146, :2053-2058); trace2's `child_start` writes `git` first for a `git_cmd` child (`tr2_tgt_event.c` :358-361, :359-361) |
| a child killed by signal N gives 128 + N | `wait_or_whine` `code += 128` (`run-command.c` :576, :569); `finish_command` hands it on and writes `child_exit` (:986-993, :976-983) |
| that code never reaches the update's own | `pp_collect_finished` passes it to `update_clone_task_finished` (:1700-1703, :1690-1693), which answers 0 ("Retry scheduled", :2265) the first time and, the second, sets `quickstop` and answers 1 ("a second time, aborting", :2276-2280; 2.43.0 :2185-2189) |
| `quickstop` ends the update with 1 before any checkout | `update_submodules`: `if (suc.quickstop) { ret = 1; goto cleanup; }` (:2737-2740, :2621-2624), before the loop that runs `update_submodule` for each gitlink |
| a member's fetch that fails ends it with 128 | `run_update_procedure`: `return die_message(...)`, and `die_message` returns 128 (`usage.c` :230-238, :227-235); the loop stops at 128 only (:2772, :2647) |
| a leg's clone that fails gives its member's update 1 and git's update goes on | the same `update_submodules` runs in the member's own `git submodule--helper update` (`update_submodule`: `ret = run_command(&cp)`, :2700, :2584, which discards `die_message`'s 128 and returns the member's 1); the holder's loop keeps going on any code but 128 |
| `git submodule update` passes the helper's code on | `git-submodule.sh`: the helper is `cmd_update`'s last command, no `\|\| exit` (:380-403, :341-363) |

Two offline probes, local paths only (no network, no gh, no token, `git config` never run, `GIT_CONFIG_GLOBAL=/dev/null`; lane 5's scratch notes, `v118/w1085/probe/quickstop.sh`, with its outputs `out243.txt` and `out247.txt`), on git 2.43.0 and 2.47.1, give the same on both:

| state | git's update | what is in the work trees |
|---|---|---|
| holder with `members/A`, `members/B` (a url that is not there), `members/C` | exit 1, `Failed to clone 'members/B'. Retry scheduled`, then `a second time, aborting` | A and C cloned, **none checked out** (`.git` only), B empty |
| holder with `members/M` (its leg `legs/L2` has a url that is not there) and `members/N` after it | exit 1, `Failed to clone 'legs/L2'. Retry scheduled` | **M and N both checked out** (git's update went on past M's 1); M's leg L1 cloned, not checked out |

**Not run:**
- `bootstrap.py` itself over a member's clone killed by a signal. Git's update over one was measured in round 2 below (rv1088's probe, which I ran again), and the trace's `child_start` argv for it is from `tr2_tgt_event.c`;
- git 2.43.0's remote helper or any network clone;
- Windows and macOS (CI is Linux only, #597).

One thing I read and left alone, as the brief says every other line stays byte for byte: where the trace names a signal and the update's code is a positive 1 from `quickstop`, `killed_said` still says "git's update went on and ended with exit 1". It ended there rather than went on. It is a wording nit of the same kind, not a behaviour; I did not change it here.

`test_an_update_itself_killed_after_a_signal_is_not_said_to_go_on` (new; 48 rows before, 49 after). It loads the family root's `bootstrap.py` as a module (`loaded`, from `tests/test_family_holder_bootstrap_texts.py`, which the stops-named file already imports from) and calls `killed_said(Died(9, 137), -9)`, as `signal_met` hands it its arguments. No run here reaches that line short of the OOM killer taking a checkout and later the top `git`. One assert, `said == KILLED_AFTER.format(...)`, no `and` or `or`.

Main's `bootstrap.py` bytes (sha256 `f1c156e2...`) against this branch's 49-row file, git 2.43.0: **1 failed, 48 passed**. The failure, from `v118/w1085/runs/mut-mainbytes.log`:

```
E         - s update was itself killed (exit -9). Git's own words above say which git and where.
E         + s update went on and ended with exit -9. Git's own words above say which git and where.
```

The other 48 rows pass on main's bytes (the old `WENT_ON` rows say only positive codes). At this head it passes.

Each applied alone to the change's `bootstrap.py` (a script replaces one exact string and asserts it occurs once), the stops-named file run on git 2.43.0 (`/usr/bin/git`) through `run9.sh`, the file put back from the head's bytes and its sha256 checked (`a52483c8...`) after each. Lane 5's scratch notes, `v118/w1085/runs/mutants-summary.txt`.

| | mutant | result |
|---|---|---|
| M1 | the new branch dropped (the ternary replaced by the old wording alone) | killed: 1 failed (the new row), 48 passed |
| M2 | the negative test inverted (`returncode > 0`) | killed: 7 failed, 42 passed: the new row and the six that say "went on" (both killed-checkout rows, P3, the both-named row, `two-members`, `two-legs`) |
| M3 | the old "went on and ended with exit N" kept for negative codes (the branch's text is the old wording, its test kept) | killed: 1 failed (the new row) |
| M4 | "went on" kept beside the new words (`went on and was itself killed (exit -9)`) | killed: 1 failed (the new row) |
| M5 | the test asks the trace's code, not the update's (`died.code < 0`) | killed: 1 failed (the new row) |
| M6 | the code not said (`was itself killed`) | killed: 1 failed (the new row) |

M1 and M3 behave the same (both give the old wording for a negative code) and differ in the text of the mutation only.

All through `run9.sh` (the real `gh` replaced by a stub, `GH_TOKEN` a fake, every `LANES_*` variable cleared, `[email protected]`, `GIT_SSH_COMMAND=false`, `GIT_CONFIG_GLOBAL=/dev/null`), at most two at once, never the full suite. At this head, `bootstrap.py` sha256 `a52483c8...`, the test file `2fb6b4dd...`.

| run | git | result |
|---|---|---|
| `tests/test_family_bootstrap_stops_named.py` (49 rows) | 2.43.0 (`/usr/bin/git`) | **49 passed** |
| the same | 2.47.1 (`git --version` printed `git version 2.47.1`; the lane's local 2.47.1 build first on PATH) | **47 passed, 2 skipped** (the two P3 rows: that git exits 128 there, where 2.43.0's crashes with 139) |
| `tests/test_family.py`, `tests/test_update_shape_kept_helper.py` (the two files `grep -l 'family-root/scripts/bootstrap' tests/*.py` gives) and `tests/test_family_holder_bootstrap_texts.py` | 2.43.0 | **328 passed** |
| `tests/test_pinned_copy_text.py` and the trio (`test_repo_hygiene.py`, `test_agents_md_codes.py`, `test_cli_reference.py`), with `test_template_text_placeholders.py` | 2.43.0 | **399 passed** |
| the six mutants and main's bytes | 2.43.0 | see above |

flake8 on `bootstrap.py` shows the 3 findings main has (E501 at line 7 and 2327, E127 at 1168), and on the test file the same 120 F811 findings main's file has (the fixture imports). New lines are 79 characters at most, ASCII only.

`git merge-tree --write-tree` of this head `88af1b7b8` against `origin/main`, fetched again with `-c gc.auto=0 -c maintenance.auto=false` just before the push (it moved once while this was open: `06cbd4789`, #1081, one test file), and against each open PR that touches `bootstrap.py`, read with `gh pr list --state open --json number,headRefName,files` (9 open; #1062 touches the family root's `bootstrap.py`; #1075's files are `siblings.py` and two test files; #1087, new since the first read, touches neither):

| against | result |
|---|---|
| `origin/main` `06cbd4789` (one commit past this branch's base `c13c3985`; it touches only `tests/test_doctor_gitlink_repairs.py`) | clean, tree `a10ffa31c` (against `c13c3985` the merge was this head's own tree, `deeab934f`) |
| #1062 `fix/1040-windows-start-errors` `957ba0386` (touches `bootstrap.py`, in `git_not_started`) | clean, tree `46f25219c`; the merged family root `bootstrap.py` parses, and holds `died_in`, `quickstop`, "was itself killed (exit" and #1062's `4551` |
| #1075 `fix/1055-siblings-untraced` `041f7831b` (lane 5's: `siblings.py`) | clean, tree `02b01b276`; the merged `siblings.py` imports `REWRITE_TARGETS`, `credential`, `member_make_environment`, `member_path`, `members_of` and `untraced` from `bootstrap.py`, and all six are defined at module level in the merged `bootstrap.py` |

None of the other open PRs touches `bootstrap.py` or the stops-named file. This change defines and renames nothing a caller imports.

`templates/family-root/scripts/bootstrap.py` is in `FAMILY_COPIED_VERBATIM`, so each holder takes one `upstream-changed` row for it, as for #1045 and #1076. Nothing else is pinned. No Windows or macOS run was made.

rv1088 (#1088 issuecomment-6314332205) found the review READY with one NIT: the sentence this PR added to `ended_on` said git's update retries a killed member clone, and it does not always. This round is one commit on top of `88af1b7b8` (the branch was not rebased), docstring only, one file (`templates/family-root/scripts/bootstrap.py`, +8 -4). No behaviour changes, and `killed_said`'s "went on and ended with exit 1" line is left as it is (rv1088 found it true).

**Measured, offline, on git 2.43.0 and 2.47.1** (rv1088's `killprobe.sh`: a remote helper that SIGKILLs the `git submodule--helper clone` above it; I ran both modes again on both gits and got the same):

| the member's clone | git's update | work trees |
|---|---|---|
| killed on both attempts | exit 1: `Retry scheduled`, then `a second time, aborting` | A and C hold `.git` only, B empty: nothing checked out |
| killed once, its own `git clone` child left running (it writes `members/B/.git`) | exit 0: `Retry scheduled`, then `BUG: submodule considered for cloning, doesn't need cloning any more?`, no second attempt | A, B and C all checked out |

`ended_on` now says: git's update retries a killed member clone where it left no `.git` at the member's path, and where the retry fails too ends in `quickstop`'s 1 before any gitlink at that level is checked out; where its own `git clone` lived on and wrote that `.git`, git retries nothing and goes on, and exits 0 with every gitlink checked out (measured, git 2.43.0 and 2.47.1). "Read, not run" is now "measured". `signal_met` already says nothing for an exit of 0, and `credential_advice`'s "fails a second time, git having retried it" stays true, so neither changes.

No other text pins those words: a grep of `tests/`, `README.md`, `docs/` (the handbook included) and `AGENTS.md` for "retries it", "doesn't need cloning", "never gives that code" and "quickstop" finds them only in `bootstrap.py`, and the round-1 words "(read in git 2.43.0's and 2.47.1's submodule--helper.c, not run)" are gone everywhere. "not run" alone appears in other files only in unrelated senses (rv1088's re-check). flake8 shows the same 3 findings as before (the lines moved by 4).

**Runs** at this head, through `run9.sh` with `[email protected]` (`GIT_SSH_COMMAND=false` and `GIT_CONFIG_GLOBAL=/dev/null` set by the runner), the stops-named file and the trio at the same time:

| run | git | result |
|---|---|---|
| `tests/test_family_bootstrap_stops_named.py` | 2.43.0 (`/usr/bin/git`) | **49 passed** |
| `tests/test_repo_hygiene.py`, `tests/test_agents_md_codes.py`, `tests/test_cli_reference.py` | 2.43.0 | **170 passed** |
| `tests/test_family_bootstrap_stops_named.py` (`git --version` printed `git version 2.47.1`, the lane's 2.47.1 build first on PATH) | 2.47.1 | **47 passed, 2 skipped** (the two P3 rows, as before) |

**Merges**, `git merge-tree --write-tree` of this head against `origin/main` re-fetched with `-c gc.auto=0 -c maintenance.auto=false`:

| against | result |
|---|---|
| `origin/main` `16f9a0e81` (#1087 and the commits since this branch's base; #1062 has landed, so main's `bootstrap.py` moved) | clean, tree `b3b454168`; the merged family root `bootstrap.py` parses and holds `died_in`, `git_not_started`, "was itself killed (exit" and the new BUG sentence |
| #1075 `fix/1055-siblings-untraced` `962ae43c1` (its head moved since round 1) | clean, tree `a4c72197c`; the merged `siblings.py` imports `REWRITE_TARGETS`, `credential`, `member_make_environment`, `member_path`, `members_of` and `untraced` from `bootstrap.py`, and all six are defined in the merged `bootstrap.py` |

The other open PRs touch neither `bootstrap.py` nor the stops-named file. #1088 stays a draft.

Review: rv1088, lane 5's independent opus reviewer, which wrote none of #1088: READY at `26f49d85`, H0 of this landing (issuecomment-6316937429), with no MUST or SHOULD; its one body NIT is fixed in the body. CI (Brett Heap's ruling 27 and his fast-refresh ruling of 2026-10-15T22:48:35Z): H0 26f49d8 passed tests, tests-git-bash and SonarCloud; the head dedc0da is a clean update-branch merge of main 0d76e4c, with tests-git-bash and SonarCloud green; and the local gate passed on its predicted squash tree 377691f over main 0d76e4c: the family_bootstrap_stops_named, repo_hygiene, agents_md_codes, cli_reference sets, 220 passed. Landed on Brett Heap's word of 2026-10-23T13:10:26Z, relayed to every lane by lane 3 (#473 issuecomment-6365697123): "merge v1.2.1 PRs once reviewed and green".

Closes #1085

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Nov 9, 2026
…encode, so it passes under Latin-1 where it ended in a traceback, and 45 rows in 11 test files that cannot judge under a one-byte locale skip there on their own premise (#1214) (#1258)

## Goal

#1214 counts 50 tests in 12 files that fail under a Latin-1 locale before and after #1209, and asks of each whether it is a test that cannot judge under a one-byte locale, or a tool that misbehaves there. All 50 are settled here:

- **3 are a tool defect, fixed:** a family holder's `scripts/validate-family.py` ended in a `UnicodeEncodeError` traceback, exit 1, on any stdout that cannot hold U+2026, when the holder passed.
- **45 cannot judge under Latin-1,** and now skip there on their own premise, which the skip reason states. 18 fail in the test process itself, before the tool runs. In the other 27 the tool answers rightly for the bytes Latin-1 gives, and the row expects UTF-8's.
- **2 judge under Latin-1 as they are written, and carry no guard:** `test_a_utf8_source_directory_still_adopts_with_local_remotes` (it passes with the pip-installed git-filter-repo, and fails with a `python -E` one on #1247's tool defect; see "Left") and `test_surrogateescape_reads_the_issues_branch_as_caf_and_u_dce9` (its `if` asks the one thing its assertion needs). Both came out of RV1258's review of the first commit.

Under Latin-1 with the pip-installed git-filter-repo, none of the 50 fails on this head. Under UTF-8 every row keeps its outcome, and the rows added pass.

The classification is W1214's: lane 4's first writer of #1214, who read each test's code and stopped at a checkpoint with half the guards written and nothing run. This branch finishes the guards, runs every gate below, and measures each row. RV1258 reviewed the first commit; the second answers it (next section).

## The second commit

RV1258 reviewed the first commit, `c8641c691` (NOT READY: two SHOULDs, three NITs, no MUST; #1258 (comment)). The second commit, `cd9f3cfd1`, answers it on top of the first, with no rebase. It changes four test files and no tool:

- **S1, a premise guard on a row that passes:** the guard on `test_a_utf8_source_directory_still_adopts_with_local_remotes` is gone, and so is the `A_NAME_HELD_AS_UTF_8` import it alone used in `tests/test_adopt_template_values.py`.
  - The guard skipped a row that passes: on main under Latin-1, with CI's pip-installed git-filter-repo, the row passes. Its skip reason (the tool "names it as" a name that is not UTF-8) was false for it, because `execute` adopts the source.
  - The row now runs under Latin-1 and passes with the pip launcher. With a launcher started as `python -E` it fails on #1247's tool defect (git-filter-repo's `UnicodeEncodeError` on U+FFFD) until #1251 lands. That is a failure of the tool, and #1214's rule sends such a row to an issue of its own, not to a skip.
  - **#1258 and #1251 are now independent of each other.** This PR carries no guard for #1251 to drop, so the earlier plan, that whichever of the two lands second drops this PR's guard, is void. Neither waits for the other.
- **S2, nothing CI runs held the helper's answers:** `tests/test_non_utf8_name_helpers.py` gets 20 rows, written as that file writes its Windows rows: `os.fsencode`, `os.fsdecode` and `sys.getfilesystemencoding` are replaced for one test by UTF-8, Latin-1 and ASCII as POSIX has them.
  - 15 rows (five texts, three locales) hold which question skips the text (none, "cannot spell", "writes" or "reads"), and that the reason names the encoding, ends with the row's premise, and is ASCII.
  - 5 rows hold the emulation to this run's real locale: the helper answers the same with the real `os` as with the emulation of its file system encoding.
  - RV1258's mutant A5 (UTF-8 bytes built with `surrogatepass` instead of `surrogateescape`) now fails 3 rows under CI's UTF-8 locale; before, it made 11 rows skip silently. The mutants that survived, A1, A2 and A4, now fail 5, 1 and 6 rows (see the mutants below).
- **N1:** the first-statement row of `tests/test_bootstrap_spelling.py` also reads `templates/family-root/scripts/validate-family.py`, so RV1258's mutant D3 (the `escape_unencodable_stdout()` call moved after `parse_args`) fails it.
- **N3:** `test_surrogateescape_reads_the_issues_branch_as_caf_and_u_dce9` no longer asks the helper. Its `if` also asks `os.fsdecode(b"\xe9") == chr(0xDCE9)`, so under Latin-1 the row runs its first assertion and passes where it skipped, and under UTF-8 and ASCII it asserts as before.
- **N2, known and left:** under emulated Windows codecs the helper skips the U+DCE9 rows that carry no Windows mark, with a premise that is false on Windows. That is reasoned and emulated, not run on Windows, and CI runs Linux only (#597).

## The 50, by file

Kinds:
- **a1:** the test process itself cannot make or pass the name under Latin-1, so it raises `UnicodeEncodeError` before the tool runs. Guard: the existing `skip_where_the_environment_cannot_carry`.
- **a2:** the tool runs and answers rightly for the bytes Latin-1 gives, and the row expects UTF-8's reading or spelling. Guard: the new `skip_where_the_locale_does_not_spell_it_as_utf_8(text, premise)`, asked only of the text the row's premise is about.
- **b:** a tool defect.
- **c:** the row judges under Latin-1 as it is written, and runs there with no guard.

`test_stdout_encoding.py` comes first, as #1214 asks. 18 a1 + 27 a2 + 3 b + 2 c = 50.

| File | Rows | Kind | Why it fails under Latin-1 | Guard |
|---|---|---|---|---|
| `tests/test_stdout_encoding.py` | 10: `test_plan_reports_every_name_whatever_its_stdout_can_encode` (3), `test_plan_on_the_posix_default_stdout`, `test_every_tool_exits_alike_whatever_its_stdout_can_encode` (6) | a1 | The test makes a file or directory named U+65E5 U+672C, or passes that name on a command line, and Latin-1 cannot encode it. | `skip_where_the_environment_cannot_carry`, in `plan_arguments` and in each of the six builders. (`bump-leg-dry-run` writes the name as bytes and passes, so it has none.) |
| `tests/test_adopt_pins.py` | 5 `[zwj]` rows | a1 | U+200D cannot go on the command line, or through `copytree`. | `skip_where_the_environment_cannot_carry(name)` |
| `tests/test_adopt_pins.py` | 4 `[not-utf-8...]` rows | a2 | The byte 0xFF is read as U+00FF, printable text the tool takes, so `plan` goes on where UTF-8 gives U+DCFF and a refusal. | `A_BYTE_READ_AS_A_SURROGATE`, where the name holds U+DCFF |
| `tests/test_adopt_pins.py` | 5 rows that compare a `pin` or `write` line | a2 | A Latin-1 stdout has no U+2026, so the tool prints the digest's ellipsis as `\u2026`, as #214 designed. | `PRINTED_AS_ITSELF`, just before the line is compared |
| `tests/test_pin_source_unreadable.py` | 3 `[not-ascii-*]` | a1 | The path U+65E5 U+672C `-missing` cannot go on the command line. | `skip_where_the_environment_cannot_carry` |
| `tests/test_pin_source_unreadable.py` | 3 `[not-utf-8-*]` | a2 | `miss<0xFF>ing` reaches the tool as text, and is printed as itself, not as `\udcff`. | `A_BYTE_READ_AS_A_SURROGATE` |
| `tests/test_family_tracking_branch.py` | `test_each_act_refuses_the_tracking_branch_then_lands_on_a_branch` `[add]`, `[bump]`, `[remove]` | **b** | Each act passes until `validate(holder)`. The holder's `validate-family.py` prints `members/X: tree digest recomputes (<12 hex>...)`, ending in U+2026, and never escaped its stdout, so it ended in a traceback, exit 1. | none: the tool is changed |
| `tests/test_family_tracking_branch.py` | `test_a_branch_ending_in_a_no_break_space_is_pushed_as_itself` | a2 | `git switch -c feat<U+00A0>` writes the single byte 0xA0, so the branch is not UTF-8, and the tool rightly refuses it (#765). | `A_NAME_HELD_AS_UTF_8` |
| `tests/test_adopt_template_values.py` | the `--elected-by` and `--reference` rows of `test_plan_refuses_a_flag_no_file_can_hold` whose value holds U+DCE9, and `test_plan_and_check_say_the_same_sentence` | a2 | 0xE9 is read as U+00E9, text `plan` takes. | `A_BYTE_READ_AS_A_SURROGATE` (in the flag test, only where the value holds U+DCE9) |
| `tests/test_adopt_template_values.py` | `test_a_utf8_source_directory_still_adopts_with_local_remotes` | **c** | With the pip launcher it does not fail under Latin-1 on this head or on main: its `caf<U+00E9>` directory is the single byte 0xE9, and `execute` adopts the source all the same. It fails only where git-filter-repo is started as `python -E`, on #1247's tool defect (see "Left"), which is an issue of its own and not a premise to skip on. | none (a guard was here in the first commit, and RV1258's S1 took it out) |
| `tests/test_clone_url_bytes.py` | the 4 `[bidi-override-*]` rows | a2 | The directory is made from U+202E's UTF-8 bytes E2 80 AE. Latin-1 reads them as three characters, one of them the C1 control U+0080, so the tool rightly says "a control character". | `A_NAME_READ_AS_UTF_8`, in `skip_where_this_system_cannot_name` |
| `tests/test_bump_leg_branch_and_push_line.py` | 2 | a2 | The branches `feat<U+00A0>` and `main<U+00A0>` hold the single byte 0xA0. | `A_NAME_HELD_AS_UTF_8` |
| `tests/test_bootstrap_leg_moves.py` | 2 | a2 | `bootstrap.py` prints U+2014 escaped on a Latin-1 stdout. | `PRINTED_AS_ITSELF`, just before the assert |
| `tests/test_update_shape_apply_lines_and_headers.py` | 1 | a2 | The branch `feat<U+00A0>`. | `A_NAME_HELD_AS_UTF_8` |
| `tests/test_adopt_spelled_names.py` | 1 | a2 | The test writes `caf<U+00E9>.md` as 0xE9, so git holds a name that is not UTF-8, and the C-locale child prints `caf\udce9.md`, not `caf\xe9.md`. | `A_NAME_HELD_AS_UTF_8`, after its C-locale probe |
| `tests/test_family_member_branch_not_utf8.py` | `[trailing-no-break-space]` | a2 | `_member_head` reads the byte 0xA0 as U+DCA0, which is the branch git wrote. | `A_NAME_HELD_AS_UTF_8`, only where the branch is not `NOT_UTF_8_BRANCH`: `[not-utf8]` passes under Latin-1 and still runs there |
| `tests/test_family_head_by_hand_bytes.py` | 1 | **c** | Its `if`, `os.fsencode(chr(0xDCE9)) == b"\xe9"`, holds under Latin-1 too, and its assertion, `os.fsdecode(LATIN_1) == branch`, holds only where the locale reads 0xE9 as U+DCE9 (UTF-8, ASCII). Its first assertion holds in every locale. | none (RV1258's N3): the `if` also asks `os.fsdecode(b"\xe9") == chr(0xDCE9)`, so under Latin-1 the row runs its first assertion and passes |

## What changed, file by file

18 files: one tool, `tests/conftest.py`, and 16 test files.

- **`templates/family-root/scripts/validate-family.py`** (the tool):
  - `main`'s first statement is now `escape_unencodable_stdout()`, imported from `repo_shape`, as in `siblings.py` and both roots' `bootstrap.py` (#391, #454).
  - That call adds no version-skew risk. The function shipped in the same commit as `spelled` (ec4a7a0), which the file already imports, and it is not in `test_pinned_copy_text.py`'s `NEWER_THAN_A_KEPT_LIBRARY`.
  - The holder's shape-pin digests are written by `init`, so there is no static digest to move.
- **`tests/test_family.py`:** one new row, `test_the_gate_passes_on_a_stdout_that_cannot_hold_its_notes`. It runs the holder's gate with `PYTHONIOENCODING=latin-1` and expects exit 0, no traceback, and the two notes ending in `\u2026)`.
- **`tests/conftest.py`:**
  - The new helper, `skip_where_the_locale_does_not_spell_it_as_utf_8(text, premise)`, asks three questions, each through `os` at call time: whether `os.fsencode` can spell the text, whether it gives UTF-8's bytes, and whether `os.fsdecode` reads those bytes back as the text.
  - Four premise sentences go with it: `A_BYTE_READ_AS_A_SURROGATE`, `A_NAME_HELD_AS_UTF_8`, `PRINTED_AS_ITSELF` and `A_NAME_READ_AS_UTF_8`. Every skip reason is ASCII.
  - It is never asked inside `skip_where_a_name_cannot_be_not_utf_8`. A branch whose bytes are not UTF-8 is one in every locale, so those rows still judge under Latin-1, and this takes none of #1224's N1 over-skip.
- **The 11 files with guards** are the files of the table above that name a guard. Each guard sits just before the first line that needs its premise. `tests/test_family_head_by_hand_bytes.py` has none: its `if` is narrowed (N3).
- **`tests/test_non_utf8_name_helpers.py`** (the second commit): 20 rows hold `skip_where_the_locale_does_not_spell_it_as_utf_8` under emulated UTF-8, Latin-1 and ASCII (S2, above).
- **`tests/test_bootstrap_spelling.py`** (the second commit): the first-statement row takes `validate-family.py` as a third file (N1).
- **`tests/test_non_utf8_name_callers.py`:** `windows_names_it` now emulates Windows' `os.fsdecode` too (UTF-8 with `surrogatepass`, `windows_fsdecode`).
  - Without it, the bidi guard in `skip_where_this_system_cannot_name` asked this run's real Latin-1 `os.fsdecode` under an emulated Windows.
  - Measured: `test_where_windows_holds_a_bidi_override_the_name_check_does_not_skip` then failed under Latin-1 (1 failed, 35 passed), where it passes on main. With the emulation, the file gives 36 passed in both locales.
  - Real Windows reads UTF-8 in every locale, which is what that row's own reasoning ("NTFS holds U+202E, so the `bidi-override` row ... runs on Windows as it does here") assumes.

## Runs

**Environment.** One runner for every run: `/usr/bin/python3 -m pytest -p no:cacheprovider` (Python 3.12.3).
- A stub `gh` first on PATH, a bogus `GH_TOKEN` and an empty `GH_CONFIG_DIR`.
- `GIT_CONFIG_GLOBAL` an empty file, `GIT_CONFIG_NOSYSTEM=1`, the test identity, and `EMAIL` set.
- `GIT_ALLOW_PROTOCOL`, `GIT_SSH_COMMAND` and the `LANES_*` variables unset.
- **Every run counted here had git-filter-repo 2.47.0 on PATH** (`git filter-repo --version`: `a40bce548d2c`, CI's pin, pip-installed in a venv). An earlier pair of head runs without it skipped 58 adoption rows, and is not counted.
- That git-filter-repo's launcher is the pip one, with no `python -E`, so a test's own `PYTHONIOENCODING` reaches it. The `-E` comparison is the last paragraph of this section.

**Locales.**
- UTF-8: `LC_ALL=C.UTF-8`.
- Latin-1: built with `localedef -c`, as #1153's `test_adopt_one_byte_locale.py` builds one; then `LOCPATH`, `LC_ALL=en_US.ISO-8859-1`, `PYTHONUTF8=0`. Python reports `iso8859-1` and reads 0xFF as U+00FF.
- ASCII: `LC_ALL=C PYTHONUTF8=0 PYTHONCOERCECLOCALE=0`.

**Round one's gate** (the first commit, `c8641c691`, on main `bd3e9c148`, 27 files, F1214's runs): UTF-8 1520 passed and 1 skipped on main, 1521 and 1 on the head; Latin-1 123 failed, 1373 passed, 25 skipped on main, and 44 failed, 1404 passed, 74 skipped on the head. RV1258 re-ran it on 35 files (main `5926ccca`, merge `103ada82`) and got the same transitions. The gate below replaces it.

**The gate: 29 files, on a scratch merge.** The merge is this head (`cd9f3cfd1`) into `origin/main` `46fe6ac19` (local, never pushed, clean); the baseline is `46fe6ac19` itself. Both with the pip launcher.
- The 27 files of round one: the 23 files on main that use `skip_where_a_name_cannot_be_not_utf_8` or `on_a_branch_that_is_not_utf_8`, with `test_repo_hygiene.py` (W1196's 24, less the two files #1209 adds, plus `test_family_leg_path_by_hand_bytes.py`), and four more that run the changed code: `test_family.py`, `test_pinned_copy_text.py`, `test_update_shape_kept_helper.py` and `test_local_remote_dir_urls.py`. They include `test_non_utf8_name_helpers.py`.
- Two more for the second commit: `test_path_guard_hygiene.py` (the second hygiene file) and `test_bootstrap_spelling.py`.

| Run | main `46fe6ac19` | scratch merge with this head |
|---|---|---|
| 29 files, UTF-8 | 1873 passed, 1 skipped | 1895 passed, 1 skipped |
| 29 files, Latin-1 | 128 failed, 1721 passed, 25 skipped | 49 failed, 1775 passed, 72 skipped |
| the 50, UTF-8 | 50 passed | 50 passed |
| the 50, Latin-1 | 49 failed, 1 passed | **0 failed**, 5 passed, 45 skipped |
| the 50, Latin-1, `-E` launcher | 50 failed (on `bd3e9c148`, round one) | 1 failed, 4 passed, 45 skipped |

The 5 that pass under Latin-1 are the 3 tracking-branch rows (the tool fix), `test_a_utf8_source_directory_still_adopts_with_local_remotes` and `test_surrogateescape_reads_the_issues_branch_as_caf_and_u_dce9`.

Main moved twice while this was gated, none of its commits touching a file of the gate or of this PR. The merge was run again on each: on `9729315f1` the same 29 files, with identical outcomes by test id in both locales (1895 passed, 1 skipped; 49 failed, 1775 passed, 72 skipped); on `801a7d6d0` the 50 and the four files the second commit changes (`test_non_utf8_name_helpers.py`, `test_bootstrap_spelling.py`, `test_family_head_by_hand_bytes.py`, `test_adopt_template_values.py`). The 50 give the same as above in all three modes (UTF-8 50 passed; Latin-1 pip 0 failed, 5 passed, 45 skipped; Latin-1 `-E` 1 failed, 4 passed, 45 skipped), the four files give 385 passed under UTF-8, and 6 failed, 371 passed, 8 skipped under Latin-1: the 5 `test_bootstrap_spelling.py` rows and `test_execute_refuses_a_local_source_directory_that_is_not_utf8`, all of which fail on main too.

**By test id, from main to the scratch merge:**
- **UTF-8:** 22 new rows, all passed: the 20 of `test_non_utf8_name_helpers.py`, the `[validate-family]` row of the first-statement test, and the first commit's `test_the_gate_passes_on_a_stdout_that_cannot_hold_its_notes`. Nothing else changes: no new skip, no row from passed to failed. The one skip is `test_stdout_encoding.py`'s Windows default-stdout row, on both.
- **Latin-1:**
  - 0 rows from passed to failed.
  - 0 from passed to skipped. (The first commit had one, the S1 row; it passes now.)
  - 32 from failed to passed: the 3 tracking-branch rows and `test_surrogateescape_reads_the_issues_branch_as_caf_and_u_dce9` of the 50, and 28 other rows of `test_family.py` whose holder's gate ended in the same traceback.
  - 47 from failed to skipped: 45 of the 50, and the 2 bidi rows of `test_local_remote_dir_urls.py`, which share `BAD_DIRECTORIES`.
  - 22 new rows, passed.
  - Each of the 49 failures fails on main too: the rows #1209 settles, the rows under "Left", and 5 rows of `test_bootstrap_spelling.py` (see "Left").

**On a scratch merge with #1209** (main `46fe6ac19`, #1209 at `13a2c58cb`, then this head; local, never pushed, both merges clean). #1209 shares four files with this PR: `tests/conftest.py`, `tests/test_non_utf8_name_callers.py`, `tests/test_non_utf8_name_helpers.py` and `tests/test_stdout_encoding.py`. Run on 8 files: the three test files among those four, #1209's `test_adopt_plan_paths_spelled.py` and `test_run_script_encoding.py`, and `test_adopt_template_values.py`, `test_family_head_by_hand_bytes.py` and `test_bootstrap_spelling.py`. Against main plus #1209 alone:
- UTF-8: 483 passed and 1 skipped, then 504 passed and 1 skipped: the 21 new rows (the 20, and the `[validate-family]` row), nothing else.
- Latin-1: 19 failed, 411 passed, 54 skipped, then 5 failed, 433 passed, 67 skipped: 21 new rows passed, 1 failed to passed, 13 failed to skipped. The 5 failures are the `test_bootstrap_spelling.py` rows, which fail on both. Of the 50, the 15 in these files give 13 skipped and 2 passed, none failed.

**The other 59 test files that name `validate-family`** (round one, on the first commit, UTF-8): 3374 passed, 28 skipped, 0 failed. The second commit changes no tool.

**The same launcher started as `python -E`** (W1247's copy of it with `-E` added, used read-only), Latin-1, the 50: on main `bd3e9c148`, **50 failed**, the 50 exactly as #1214 lists them. On the first commit, 0 failed. On this head, **1 failed**, 4 passed, 45 skipped: the S1 row, `test_a_utf8_source_directory_still_adopts_with_local_remotes`, on #1247's traceback (`UnicodeEncodeError` on U+FFFD in `git_filter_repo.py`'s `_migrate_origin_to_heads`, then `REFUSED extracting the spec leg`). It stays red with that launcher until #1251 lands, and the other 49 rows are as with the pip launcher.

## The new rows, and mutants

Each mutant was made in a scratch worktree at the head and restored afterwards, with each file's sha256 checked. "UTF-8" and "Latin-1" name the locale of the run.

**The second commit's rows.** The helper's own rows run in CI's UTF-8 locale, with the three locales emulated.

| Mutant | Run | Result |
|---|---|---|
| none (the head), `test_non_utf8_name_helpers.py` | UTF-8 | 39 passed (19 before, 20 new) |
| the new rows against main's `tests/conftest.py`, which has no helper | UTF-8 | the file does not import: `cannot import name 'skip_where_the_locale_does_not_spell_it_as_utf_8'` |
| A5: the helper's UTF-8 bytes built with `surrogatepass` | UTF-8 | **3 failed**: the `byte-e9` row in each of the three locales. Before, the same mutant made 11 rows skip silently under UTF-8 and failed none (RV1258). |
| A1: the first question's skip taken as UTF-8's bytes | UTF-8 | **5 failed**: `iso8859-1` and `ascii` for `bidi-override` and `ellipsis`, and `ascii-e-acute` |
| A2: the second question dropped | UTF-8 | **1 failed**: `iso8859-1-e-acute` (it reads the bytes back and says "reads", not "writes") |
| A4: only the third question | UTF-8 | **6 failed**: the rows A1 and A2 fail, together |
| A3: the third question dropped | UTF-8 | **1 failed**: `iso8859-1-byte-e9` |
| A6: the third question inverted | UTF-8 | **9 failed** |
| the encoding in the reason named `utf-8` always | UTF-8 | **7 failed** |
| the row's premise left out of the first question's reason | UTF-8 | **5 failed** |
| the UTF-8 bytes built with `strict` | UTF-8 | **4 failed**: the three `byte-e9` rows, and the row that holds the emulation to the real locale |
| the second and third questions swapped | UTF-8 | **1 failed** |
| the first question catching any exception | UTF-8 | survives, and is equivalent: `os.fsencode` of a str raises only `UnicodeEncodeError` |
| D3: `validate-family.py`'s `escape_unencodable_stdout()` moved after `parse_args` | UTF-8 | **1 failed**: the `[validate-family]` row |
| main's `validate-family.py` under the head's tests | UTF-8 | **2 failed**: the `[validate-family]` row and `test_the_gate_passes_on_a_stdout_that_cannot_hold_its_notes` |
| N3's narrowed `if` taken out (main's `if`, with no helper call) | Latin-1 | **1 failed**: `test_surrogateescape_reads_the_issues_branch_as_caf_and_u_dce9` (it passes under UTF-8) |

On the 50 under Latin-1 the helper's mutants are as in round one, re-measured on this head: A3 gives **10 failed** (it was 11; the N3 row no longer asks the helper), the first question unguarded gives **11 failed**, and A1, A2 and A4 survive (5 passed, 45 skipped), because on Linux the third question alone decides there, as RV1258 found. Only the new rows tell them apart.

**The first commit's rows** (mutants made on `c8641c691`, which the second commit does not change):

| Mutant | Run | Result |
|---|---|---|
| none (the head), the new row of `test_family.py` | UTF-8 | 1 passed |
| main's `validate-family.py` under the head's tests (the new row on main) | UTF-8 | **1 failed**: the new row |
| `validate-family.py`'s `main` without the `escape_unencodable_stdout()` call (import kept) | Latin-1 | **4 failed**: the new row, and the `[add]`, `[bump]`, `[remove]` rows of `test_each_act_refuses_the_tracking_branch_then_lands_on_a_branch` |
| the bidi guard taken out of `skip_where_this_system_cannot_name` | Latin-1 | **6 failed**: the 4 bidi rows of `test_clone_url_bytes.py` and the 2 of `test_local_remote_dir_urls.py`, the same `BAD_DIRECTORIES` |
| `windows_names_it` without the `os.fsdecode` emulation | Latin-1 | **1 failed**: `test_where_windows_holds_a_bidi_override_the_name_check_does_not_skip` |
| the guard of `test_the_member_head_is_the_branch_git_wrote` asked of every branch (its `branch != NOT_UTF_8_BRANCH` dropped) | Latin-1 | `[not-utf8]` goes from passed (the head) to skipped; no row fails. A skip fails no run, so only a comparison of outcomes sees this one. |

## Merge-trees

`git merge-tree --write-tree` of the head (`cd9f3cfd1`):
- against `origin/main` `46fe6ac19`: clean;
- against #1209 `13a2c58cb`, #1185 `d193617c7`, #1154 `8a7828332`, #1251 `abeac66de` and #1198 `d38e4e36d`: each clean;
- against the other open PRs that touch any of these 18 files, at their heads: #1263 `9ef8f0ab5`, #1246 `0deac3a65`, #1231 `aca00dfd9`, #1227 `2d56c1906`, #1178 `c4beba193`, #1172 `2eabec8e0` and #1125 `9549006fe` are clean. #1201 `eac177af9` conflicts at `docs/handbook.html`, which this branch does not touch, and conflicts there against `origin/main` alone too.

#1209 changes `skip_where_a_name_cannot_be_not_utf_8` and the callers fixture `a_system_that_carries_the_byte`. The new helper sits more than 100 lines from the first, and `windows_names_it` 65 lines from the second. #1209 also edits `tests/test_non_utf8_name_helpers.py`, where the second commit adds its rows at the end of the file; the two merge without a conflict, and the merged file's rows pass (see "Runs").

## Left, and outside this issue

- **W1214's filter-repo defect is filed separately, as #1247**, and #1251 (a draft for it) is independent of this PR.
  - What W1214 found: `adopt-project.py execute` fails for a Latin-1 user whose source path holds U+00E9. The leg clone's `remote.origin.url` holds the byte 0xE9, git-filter-repo decodes it with `errors='replace'` and prints U+FFFD to a Latin-1 stdout, and `execute` stops at `REFUSED extracting the spec leg`.
  - **Which launcher runs git-filter-repo decides it.** One started as `python -E` ignores the `PYTHONIOENCODING` the tool gives its children; a pip-installed one, as CI installs it, is not started that way. Measured here (see "Runs"): `test_a_utf8_source_directory_still_adopts_with_local_remotes` passes on main under Latin-1 with the pip launcher, and fails there with a `-E` copy of the same launcher. W1196's list of 50 has this row failing, which this bench gives only with the `-E` launcher.
  - **Independent of #1251.** This PR no longer guards that row (RV1258's S1), so it carries nothing for #1251 to drop, and the earlier plan, that whichever of the two PRs lands second drops this PR's guard, is void. #1251 changes `_extract_leg` in `adopt-project.py` and adds `tests/test_adopt_filter_repo_origin_url.py`, and touches none of these 18 files (`git merge-tree` against its head `abeac66de` is clean). The row passes under Latin-1 with the pip launcher whichever lands first. With a `-E` launcher it fails on #1247's traceback until #1251 lands, which is the tool's failure showing, not a premise this PR can judge.
- **N2 (RV1258), known and left:** under emulated Windows codecs, the helper skips the U+DCE9 rows that carry no Windows mark, with a premise that is false on Windows. It is reasoned and emulated, not run on Windows; CI runs Linux only (#597).
- **5 rows of `tests/test_bootstrap_spelling.py` fail under Latin-1** on main, on this head and on the merge with #1209 alike. It is a file #1214 does not list, read from the failure messages only: four rows end in a `UnicodeEncodeError` on U+2028, which Latin-1 cannot encode, and `test_a_branch_name_is_spelled_in_every_line_that_names_it` fails its assertion. They are left for an issue of their own.
- **8 rows in two files #1214 does not list fail under Latin-1** on main, on this head and on the merge with #1209 alike:
  - 6 rows of `test_pinned_copy_text.py`: the tool prints U+2014 or U+2026 escaped on a Latin-1 stdout, and the row compares the character.
  - `test_family.py`'s `test_init_writes_the_holders_agent_files`: it reads the UTF-8 file it checks in the locale's encoding.
  - `test_family.py`'s `test_commit_one_refuses_a_trailer_that_is_no_text_before_it_stages`: `DID NOT RAISE Refusal`, a byte Latin-1 reads as text.
  - These are read from their failure messages only, not classified per test. They are left for an issue of their own.
- **The fourth row of `tests/test_adopt_template_values.py` that fails under Latin-1 on main** is `test_execute_refuses_a_local_source_directory_that_is_not_utf8`. It is not one of the 50, and this PR leaves it alone.
  - It asks `skip_where_a_name_cannot_be_not_utf_8`, and #1209 gives that helper the locale question. So it skips at #1209's head, where the 50 were counted, and it skips on the scratch merge with #1209.
  - It fails on main and on this head alike, so it is #1196's (#1209's) row, not #1214's.
  - The other three rows of that file that fail on main are among the 50: the two U+DCE9 flag rows and `test_plan_and_check_say_the_same_sentence`. Each skips here.
- **#1224 is untouched.** This helper takes none of N1's over-skip; N2 to N5 stay #1224's.

Closes #1214

Lane: openreposhape-4 (openRepoShape-4)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant