Repository navigation
family.py: a failed remove's by-hand lines spell a leg mounted at a path that is not UTF-8 as a printf word of octal escapes ending in a slash, so git -C <member>/<leg> and submodule update -- <leg> typed in any POSIX shell name that leg (#1086) - #1098
Conversation
…ath that is not UTF-8 as a printf word of octal escapes ending in a slash, so `git -C <member>/<leg>` and `submodule update -- <leg>` typed in any POSIX shell name that leg (#1086) When a `remove` whose rollback cannot check the member out again prints the lines to type, a leg's path inside the member is read from the member's `ls-files -z` with `surrogateescape`. For a path that is not UTF-8, `shlex.quote` printed Python's `\udcXX` escapes. Typed, the `submodule update` and the `git -C` named no path. `_path_by_hand` now spells such a path as `"$(printf '<escapes>/')"`: #1084's form for a branch, with a `/` at the end, so a trailing newline is never the last byte `$(...)` strips, and a leading `-` as `\055`, which the `printf` of sh, dash and bash reads as an option. Each word names a directory or a gitlink, and git reads `<dir>/` as `<dir>`. A UTF-8 path keeps `shlex.quote`'s form byte for byte. A new test mounts a leg at such paths in a real holder, runs every printed line in sh, dash, bash and zsh, and reads the leg's commit and branch back as bytes. Closes #1086 Lane: openreposhape-3 (openRepoShape-3) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideRollback instructions now reconstruct non-UTF-8 submodule leg paths byte-for-byte across POSIX shells by using octal-escaped printf substitutions with a trailing slash, while retaining existing UTF-8 quoting; extensive real-repository and cross-shell tests validate the behavior. Sequence diagram for byte-safe rollback commandssequenceDiagram
participant PinRollback
participant Shell
participant Git
participant Filesystem
PinRollback->>PinRollback: _path_by_hand(leg)
alt UTF-8 path
PinRollback-->>Shell: shlex.quote(leg)
else Non-UTF-8 path
PinRollback->>PinRollback: _printf_escapes(raw bytes)
PinRollback-->>Shell: $(printf '<octal escapes>/')
end
PinRollback-->>Shell: git -C <member> submodule update -- <leg>/
Shell->>Git: Execute rollback command
Git->>Filesystem: Resolve exact leg bytes
Filesystem-->>Git: Leg gitlink and checkout
Flow diagram for path spelling selectionflowchart TD
A["Rollback needs a leg path"] --> B{"_is_utf_8(path)?"}
B -->|Yes| C["shlex.quote(path)"]
B -->|No| D["_printf_escapes(raw bytes)"]
D --> E{"Starts with -?"}
E -->|Yes| F["Prefix \055 escape"]
E -->|No| G["Keep octal escapes"]
F --> H["Append trailing slash"]
G --> H
C --> I["Emit one shell word"]
H --> I
I --> J["Use in git -C or submodule update pathspec"]
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
(lane openRepoShape-3, 2026-10-21T13:18:01Z) Independent review RV1098 of #1098 at eaa9e4c: READY. No MUST, no SHOULD, three NITs. Probes (own helpers, not W1086's):
Mutants, each against tests/test_family_leg_path_by_hand_bytes.py, family.py restored and checked by cmp each time:
Tests at the head, one at a time, stub gh: the new file 78 passed with no skips (-rs); test_family_head_by_hand_bytes.py 61 passed; test_family_bump_remove_rollback.py 31 passed. Merges: merge-tree with origin/main 6da757c is clean. No other open PR touches scripts/family.py (live list of 12). The new file and test_family_head_by_hand_bytes.py also pass on a local merge with main: 139 passed. Body: closingIssuesReferences [1086]; draft; no milestone; the follow-up sentence is line 2; the authored text ends Closes #1086, Lane, robot, with no other closing keyword and nothing above U+007F but the robot. NITs:
Lane 3's plan: READY as it stands. NIT-1 is a docstring's wording, and lane 3 takes it in a one-line change before landing, which RV1098 then checks. NIT-2 is unchanged behaviour from main and stays recorded here. NIT-3 needs nothing. #1098 stays a draft with no milestone and lands after the v1.2.0 tag, on a later word. Lane: openreposhape-3 (openRepoShape-3) |
… a guard kept as #1079 spells it, since bash 5.2 and zsh 5.9 with history on expand no `!` inside `"$(printf ...)"` (#1086) Review round 1 of #1098 (RV1098: READY), NIT-1. The docstring said a shell with history on reads the `!` of the double-quoted word. RV1098 measured that bash 5.2.21 (`-i`, from a pipe) and zsh 5.9 (`-f -i`, pipe and pty) expand the `!` of `"x!echo"` but none inside `"$(printf ...)"`. The docstring now says so. No code changes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
|
(lane openRepoShape-3, 2026-10-21T13:23:03Z) RV1098 round 2 at dad7961: READY.
NIT-1 is resolved. NIT-2 (a UTF-8 path holding a newline or a tab keeps shlex.quote's raw byte, as it did before this PR) stays a possible follow-up, outside this PR. Lane 3's plan: #1098 is READY at dad7961. It stays a draft with no milestone and lands after the v1.2.0 tag, on a later word, by the usual pilot, with an explicit squash message. Lane: openreposhape-3 (openRepoShape-3) |
|
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 8 hours and 24 minutes by commenting |
…nt of the commit `--to` names, so a tag above it reads as one that reaches it and a tag below it keeps the plain words, and `--points-at` for `--contains` no longer survives (#1019) (#1107) No test held that a tag at a DESCENDANT of the refused commit counts as a tag that reaches it, so `--points-at` in place of `--contains` survived in `bump-leg.py` and `family.py` (mutant M9 of #988's review, filed as #1019). This adds the rows the issue asks for to the two reachability test files, and no production code changes. Opened as a draft with no milestone: Brett Heap's ruling of 2026-10-21T10:32:04Z ("leave the follow-ups out of v1.2.0") held it until the v1.2.0 tag, and it is now on the v1.2.1 milestone. Measured on main `2a119f28` before any change, and checked again on `16f9a0e81` and `7e00834c` (the tag questions did not change, only their line numbers): - `scripts/bump-leg.py` `_remote_tag_reaches` and `scripts/family.py` `_origin_tag_reaches` list the tags with `git for-each-ref --contains <commit> --format=%(objectname) refs/tags/`. No other copy of either exists (the `--contains` in `on_a_remote_branch` and `_on_a_remote_branch` asks about branches and is not this question). - The mutant (`--contains` -> `--points-at` on that one line in each script) SURVIVES every row on main: `test_bump_leg_reachability_words.py` 34 passed, `test_family_bump_reachability_words.py` 20 passed, 54 rows, as the issue says. - The production code is right: the new rows pass on unmutated main. So they do not "fail on main"; they fail on the mutant, which is the issue's own acceptance ("With `--points-at`, that row must fail"). No defect was found. `tests/test_bump_leg_reachability_words.py`: - `made_in_the_leg(project, name, on="HEAD")` takes an optional `on`, the commit the new commit is made on top of. Every existing call is unchanged. - `test_a_tag_at_a_descendant_of_the_commit_reaches_it`: a commit `made` and a child `above` on top of it, on no branch of the leg's remote. The leg and the remote each tag `above` (`v1-w1019`), made apart, in three kinds: both annotated (the reviewer's case J), leg lightweight and remote annotated, and the reverse. Both runs (dry run and real) refuse `made` `bump-leg-commit-local-only` in the TAG words, through `origin` and through `--local-remote-dir` (3 kinds x 2 routes = 6 rows), with nothing moved and the leg's own tag as it was. The premises say the tag names the child, that no tag is AT `made` (`for-each-ref --points-at`), and, through #1087's `only_a_tag_reaches`, that a tag of the remote reaches it, no branch does and no remote-tracking ref of the leg does. - `test_a_tag_at_an_ancestor_of_the_commit_alone_keeps_the_plain_words`: the control (x 2 routes). The commit named is the child, and the leg and the remote tag only its parent. The plain words stay, "a pin the rest of the world cannot fetch" included. `tests/test_family_bump_reachability_words.py`: - `made_on(holder, env, parent, name)`: a commit never pushed, made in the mount on top of `parent`, through `commit_in_mount` (which checks `parent` out first), so the holder stays clean. - `test_a_tag_at_a_descendant_of_the_commit_reaches_it`: the same three kinds (3 rows), both `bump --dry-run` and the real `bump` refuse `member-to-local-only` in the tag words, with nothing moved and the mount's own tag as it was. - `test_a_tag_at_an_ancestor_of_the_commit_alone_keeps_the_plain_words`: the control (1 row). No assert joins conditions with `and` or `or`; each premise is its own assert. No README, docs, AGENTS.md or handbook text names these tests or their row counts (grep), so none changes. | Mutant | Rows before (main's) | With these rows | | --- | --- | --- | | `--points-at` in `bump-leg.py` | survives: 34 of 34 pass | killed: 6 failed, 36 passed (all six descendant rows; the two controls pass, as they should) | | `--points-at` in `family.py` | survives: 20 of 20 pass | killed: 3 failed, 21 passed (all three descendant rows) | | `--merged` in `bump-leg.py` (extra: a check read the other way round) | survives: 34 of 34 pass | killed: 8 failed (6 descendant rows and both controls) | | `--merged` in `family.py` (extra) | survives: 20 of 20 pass | killed: 4 failed (3 descendant rows and the control) | The failure is the one the issue names: the plain words ("is reachable from no branch of ...") where the tag words ("and a tag of ... reaches it, but no branch ... does") are expected. Logs: `r-mut-points-at-bump.log`, `r-mut-points-at-family.log`, `r-mut-merged-bump.log`, `r-mut-merged-family.log` (and `mut-main-*.log` for the 34 and 20 on `2a119f28`). On the pushed head `01fcb259`: - git 2.43.0 (`/usr/bin/git`): the two test files, 66 passed (42 + 24; 34 + 20 before). - git 2.43.0: the trio `tests/test_repo_hygiene.py`, `tests/test_agents_md_codes.py`, `tests/test_cli_reference.py` and `tests/test_update_shape_kept_helper.py`, 329 passed. On `1201680f` (the same two files on top of `16f9a0e8`, before `7e00834c`, whose three files no row of mine touches or runs): - git 2.43.0: the trio alone, 170 passed; the two test files that import helpers from mine (`test_bump_leg_fetch_refspecs.py`, `test_family_bump_fetch_refspecs.py`), 102 passed; the two test files, 42 and 24 passed. - git 2.47.1 (`$Q/v115/w764/git247/bin/git` first on PATH, `git --version` printed `git version 2.47.1`): the two test files, 66 passed. No script changed, so no other test runs a changed script. - `git merge-tree --write-tree HEAD origin/main` against a re-fetched `origin/main` (`7e00834c`, which is also the merge base): exit 0, tree `3a852e87fcfda41766ece8c1771e47689c622ad6`, equal to this head's tree. Against `16f9a0e8` before the last rebase: exit 0 too. - Open PRs read with `gh pr list --repo opensoft/openRepoShape --state open --json number,headRefName,isDraft,files`: 8 (#1102, #1101, #1098, #1097, #1091, #1090, #1088, #1075). None touches `tests/test_bump_leg_reachability_words.py` or `tests/test_family_bump_reachability_words.py`, so there is no merge-tree to run against any of them. - **The NIT.** The docstrings of the two descendant rows said "Every row before this one tagged the commit itself, so ... survived all 54 of them". 54 counts the two files together (34 + 20), several earlier rows tag nothing (the no-`origin` and prune rows), and a count goes stale with the next row. - **The fix, docstrings only.** Each now says only what holds: "No row before this one tags a descendant of the commit: the tags in them are at the commit itself or below it, so `--points-at` in place of `--contains`, the mutant M9 of #988's review, survived every row of this file." No row, assert or helper changed. The 54 in "What still held on main" above is the two files together, as it says. - **One commit on top of `01fcb259`, a fast-forward push, no rebase:** head `ee48b5fe9693ebda099d1c0aadaca7bdc16b91c1`, read back with `git ls-remote`. Its tree is `615e571bb62fd1cf481e4152278b0e3628bab059`. - **Runs** (git 2.43.0, through `run9.sh`, `[email protected]`): `tests/test_bump_leg_reachability_words.py` 42 passed, `tests/test_family_bump_reachability_words.py` 24 passed. They ran on `7186f3cf`, the same tree as the pushed head; only the commit message was shortened after. - **Merge-tree** against a re-fetched `origin/main` (`6da757cb`, merge base `7e00834c`): exit 0, tree `453566df33c886cf7fc2b1c39af02acbbff365dc`. Main moved by nine files, none of mine; its `scripts/bump-leg.py` change (9 lines added) leaves `_remote_tag_reaches` and its `--contains` line alone (now line 1214). Review: rv1104-1107, lane 5's independent opus reviewer, which wrote none of #1107: READY at `ee48b5fe`, the head that lands (issuecomment-6318124100), with no MUST or SHOULD and one optional test NIT that needs no round. CI (Brett Heap's ruling 27): H0 is the head ee48b5f itself, which passed tests, tests-git-bash and SonarCloud; main has touched none of its files since its base 7e00834; and the local gate passed on its predicted squash tree 2f7f587 over main 422a590: the bump_leg_reachability_words, family_bump_reachability_words, repo_hygiene, agents_md_codes, cli_reference sets, 237 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 #1019 Lane: openreposhape-5 (openRepoShape-5) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ed into a folder this user cannot search is said once in `what is here` or `agent files`, `<name>: cannot be read (<reason>)`, never absent; a `.git` offers no way in (#1110) (#1144) Eight sites in `shape-doctor.py` and `scripts/shape_advisory.py` asked `exists()` or `is_file()` of a name directly in the root, and both calls follow a link. So a `.git` or an agent file that is a link into a folder this user cannot search made the doctor raise on Python 3.12, and, as 3.14's `is_file` answers False to any `OSError`, read as absent there. On 3.12 the doctor said `FINDING .git: cannot be read` four times over, and an unreadable `AGENTS.md` added `agent-files` to the verdict. Under a 3.14-like shim it said `there is no repository here to adopt` and offered the scaffold. - Each site now asks the file's own stat helper, which applies #430's rule: `stat` the path. ENOENT, ENOTDIR, EBADF and ELOOP (and Windows' 21, 123 and 1921) mean nothing is there, and any other `OSError` is raised so the caller can name it. The helper is `is_a` in `shape-doctor.py` and `_is_a` in `scripts/shape_advisory.py`. The four `.git` sites in `shape-doctor.py` share `carries_git(root)`, which accepts a gitdir file, a directory or a link to either. - Such a file is said once, in `what is here` (a directory that is no shape root) or `agent files` (in a project), as `<name>: cannot be read (<reason>)` with the chmod cure, never as absent. In `agent files` it is a `note`, and a FINDING only for the pinned `AGENTS-shape.md`, which the project's own `validate-pins.py` refuses by name. - An unreadable `.git` offers no way in, since it is not known whether there is a repository to adopt. `the way in` has no NEXT and its `detail.git_repository` is `null`. `naming` keeps the policy's own status and says that `origin`'s name was not read. `origin_org`, `repo_local_origin_name` and `repository_names` raise the refused `stat`, and `shape_advisory.read()` keeps its `not-answered` state, whose `why` now names the `.git` and its reason. - `tests/test_doctor_unsearchable_links.py` holds 25 rows, and the eight sites leave `KNOWN_OPEN` in `tests/test_path_guard_hygiene.py`. - Measured with Python 3.12.3 and a 3.14-like `sitecustomize` shim, over a folder `Atlas` whose `.git` links to the git directory of a checkout of `acme/Orbit` in a folder at mode 000: - On base, 3.12: `naming`, `what is here`, `the way in` and `the other way in` are each `FINDING .git: cannot be read (Permission denied)`, with no Triad row, and `NOT A SHAPE ROOT`, exit 2. - On base, the shim: `the way in` reads `there is no repository here to adopt`, with NEXT `setup.sh --org <your-org> --project Atlas`. - On head, 3.12 and the shim give byte-identical reports (`cmp`): the cure is said once, in `what is here`, `the way in` offers neither command, and `naming` says that `origin`'s name is not read. Exit 2. - The new rows: base 2 passed and 23 failed (the 2 are controls), on 3.12 and under the shim; head 25 passed on both. Mutants: 47 of 47 killed, the writer's 18 and the review's 29. - Known limits: - An unreadable leg `AGENTS.md` is still read as absent where `_leg_by_agents_md` reads it (`scripts/shape_advisory.py`), so `the way in` and the Triad row still offer adoption over it, as on main. It is not one of #1110's eleven sites, and #1110 lists it as a twelfth. `_leg_by_agents_md` is unchanged. - A `.git` that is a gitdir file pointing into a folder this user cannot search, and a root `.git` directory at mode 000, still read as a repository, so adoption is offered as before. - Python 3.14 itself and Windows were not run. The 3.14 statements come from the shim, and the mode rows skip on Windows and as root. - `NOT_ANSWERED`'s new `why` is printed by nothing, so it is reachable only in process, where the rows hold it. - Not in this PR: slice B's three sites (`scripts/family.py` `_gitmodules_names` and `_sections_giving`, and `templates/family-root/scripts/siblings.py` `submodule_urls`) stay on `KNOWN_OPEN` under #1110, waiting for other lanes' open DRAFTs on `family.py`'s `remove` (#1117 and #1098). A shape root whose own `.git` is a link into a folder this user cannot search still reads DRIFTED, and both of its pinned validators crash. Base and head behave alike, and it is filed as #1146. Review: lane 1's independent reviewers reviewed each round. r1144 found `eb3f098c` READY on condition, with no MUST, two SHOULDs and six NITs (#1144 issuecomment-6328153279). The SHOULDs were that the title and design point 1 claimed too much for an agent file, and that seven of the reviewer's mutants survived. The round after it narrowed the title, added 8 rows and left the two tools unchanged, and a last commit split two composite asserts for SonarCloud's `python:S9073`. r1144b found `89486f69` READY, with no MUST or SHOULD (issuecomment-6331490548). Each of the seven survivors is killed by its named row, and all 47 mutants are killed. Tests, under a stub `gh` with a bogus token: at `89486f69`, the gate in the PR body gave 1,141 passed and 3 skipped over its 9 rows. They covered the PR's test file, on 3.12 and under the shim, `tests/test_path_guard_hygiene.py`, `tests/test_shape_doctor.py` in 4 shards, `tests/test_scaffold_leg_path_collisions.py`, `tests/test_doctor_unreadable_paths.py` with `tests/test_doctor_unreadable_pin.py`, the other files that import or run `shape_advisory`, the doc trio, and `tests/test_doctor_unreadable_paths.py` under the shim. It lands by fast refresh (Brett Heap, 2026-10-15T22:48:35Z). Its H0 `89486f69` is green on Linux and SonarCloud. The branch was never rebased. After H0, the only commit is update-branch's clean merge of main, giving 5b38c3a, which is green on SonarCloud and Git Bash. Lane 1's gate passed on its tree: 7 pytest calls over `tests/test_doctor_unsearchable_links.py`, `tests/test_path_guard_hygiene.py`, `tests/test_agents_md_codes.py`, `tests/test_cli_reference.py`, `tests/test_repo_hygiene.py`, `tests/test_scaffold_leg_path_collisions.py`, `tests/test_no_auto_maintenance.py` and `tests/test_shape_doctor.py` in 4 shards: 925 passed, 5 skipped. Part of #1110 Lane: openreposhape-1 (openRepoShape-1) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…py: an `id:`, a date or a `repository:` ending in a line feed is refused by name, and a pin's `source_repository:` that is no path or `owner/repo` name is named as the pin's (#1139) (#1166) The value patterns the issue names refuse a value that ends in a line feed, by name, as #1126 (#1017) makes `COMMIT_RE`, `SHA256_RE` and `COMMIT_40` do: - `DATE_RE` and `QUALIFIED_RE` in `validate-manifest.py` and `validate-family.py`, `MEMBER_RE` in `scripts/family.py`, `DATE_RE` in `scripts/shape_advisory.py` and `REPOSITORY_RE` in `update-shape.py`; - `PROJECT_ID_RE`, read with `fullmatch` where the two validators and `family.py add` read an id from a file. A shape pin's `source_repository:` that is neither a path on this machine nor an `owner/repo` name is refused in the pin's name, not `--upstream`'s. Values without a line feed keep their outcome, and no refusal code is added or renamed. Two inputs do move from one existing code to another (see "Behaviour changed", below). **What this PR does not cover, and the title does not claim:** - the naming-policy patterns that `scripts/repo_shape.py` reads from `contracts/repository-naming.yaml`, which `validate-repository-naming.py` still reads with `.match`; - `update-upstream-not-a-repo`, which still says `--upstream` when a pin names a folder that exists and is not a repository. Both are follow-ups, with the other findings of the independent review, under "Follow-ups (not in this PR)". This does not need #1126 and does not touch its files or its test file. Measured on main `038dafba` (Python 3.12.3, git 2.43.0) by a probe of each tool, before any change. Each value is written in the file as a YAML double-quoted `"...\n"`, which the reader takes as the value and a line feed. | Read from | Value | On main | |---|---|---| | `project.yaml` (`validate-manifest.py`) | `id: "atlas\n"` | only `FINDING manifest-topic: topic is 'xf-project-atlas', expected 'xf-project-atlas\n' derived from id 'atlas\n'`, exit 1 | | `project.yaml` | `elected_on: "2026-09-02\n"` | `manifest ok`, exit 0 | | `project.yaml` | a leg's `repository: "testorg/Atlas-spec\n"` | `manifest ok`, exit 0 | | `family.yaml` (`validate-family.py`) | `id: "inkrouter\n"` | `family ok: InkRouter (inkrouter` and a line break, exit 0 | | `family.yaml` | `created_on: "2026-09-04\n"` | `family ok`, exit 0 | | `family.yaml` | a member's `repository: "InkRouter/IRRS\n"` | `FINDING member-repository-name: ... whose name is 'IRRS\n'`, exit 1 | | a member's `project.yaml`, read by `family.py add` | `id: "irqs\n"` | mounted and committed, exit 0, with the row `id: "irqs\n"`; the holder's gate then said `family ok` | | `contracts/shape-pin.yaml`, `update-shape.py check` with no `--upstream` | `source_repository: "opensoft/openRepoShape\n"` | `REFUSED unsafe-value: --upstream is 'opensoft/openRepoShape\n'`, exit 2 | | the same | `source_repository: "opensoft/open Repo"` | `REFUSED update-upstream-unresolvable: --upstream 'opensoft/open Repo' is neither ...`, exit 2 | | the same | `source_repository: "-opensoft/openRepoShape"` | `REFUSED unsafe-value: --upstream is '-opensoft/openRepoShape'`, exit 2 | | an adoption plan (`adopt-project.py check`) | `id: "northwind\n"` | `FINDING plan-manifest-invalid: id is 'northwind\n', which the project's own validate-manifest.py refuses: manifest-topic: ...`, exit 1; `execute` refused it, exit 2, before any leg | In-process on the same main: `repo_shape.PROJECT_ID_RE.match('atlas\n')`, `shape_advisory.DATE_RE.match('2026-09-02\n')` and `REPOSITORY_RE.match('a/b\n')` each matched, and `date.fromisoformat('2026-09-02\n')` raised `ValueError`. - **`DATE_RE` and `QUALIFIED_RE`** in `templates/assembly-root/scripts/validate-manifest.py` and `templates/family-root/scripts/validate-family.py` end in `\Z`. So do `MEMBER_RE` in `scripts/family.py` (the third spelling `tests/test_family_member_name.py` holds equal to the two `QUALIFIED_RE`), `DATE_RE` in `scripts/shape_advisory.py` and `REPOSITORY_RE` in `update-shape.py`. - **`PROJECT_ID_RE` keeps its `$`.** Every id refusal prints its text (`must match ^[a-z0-9][a-z0-9-]*$`, pinned in six test files), the validators run against each project's own copy of `repo_shape.py`, and its definition sits inside #1126's hunk. The three callers that read an id from a file ask it with `fullmatch` instead: `validate-manifest.py` (`manifest-id`), `validate-family.py` (`family-id`) and `family.py`'s reading of a member's `project.yaml` (`member-bad-id`, which `add` now says before anything is mounted). - **`update-shape.py`.** `open_upstream(spec, pin_path=None)` takes the pin the value was read from, which `prepare` passes when no `--upstream` was given. Then `update-upstream-unresolvable` says ``<root>/contracts/shape-pin.yaml: `source_repository:` is '...', which is neither a path on this machine nor an `owner/repo` name``, with a remedy to write the pin's field or pass `--upstream`, and `checked_value` names the same field. **Code kept:** `update-upstream-unresolvable`, the existing code for a value that is not an `owner/repo` name. A line feed now reaches it, since the pattern no longer takes one. Before, `checked_value` refused it as `unsafe-value`. - **One existing test line:** `tests/test_family_init_values.py` finds validate-family's `DATE_RE` line by its text, which now ends `\Z`. - **One existing stand-in:** the `temporaries` fixture in `tests/test_update_shape_unreadable.py` stands in for `open_upstream` with `def opening(spec)`, which the new two-argument call refused with `TypeError: ... takes 1 positional argument but 2 were given`. It now takes `pin_path=None` and hands it on to the real `open_upstream`, so `test_a_read_refused_in_prepare_closes_the_upstream[check|apply]` asks what it asked before. - **The rows** are in a new file of their own, `tests/test_value_pattern_line_break.py`. - **A second guard, in a second commit (`5102b4294`, a test only, no production file).** The first guard holds the four pattern names this PR ends in `\Z`, and nothing held `PROJECT_ID_RE`, which keeps its `$`. `test_every_reader_of_the_id_pattern_is_in_the_table` reads every tracked `.py` outside `tests/` with `ast` (it runs none) and holds each call of a method of `PROJECT_ID_RE` (`PROJECT_ID_RE.x(...)` or `repo_shape.PROJECT_ID_RE.x(...)`) to the table `ID_READERS`: - the three `fullmatch` readers of an id from a file (`validate-manifest.py`, `validate-family.py`, `scripts/family.py`); - the modules that still `match` it, each with its reason: argv `--id` in `scaffold-project.py` and `scripts/family.py`, where `checked_value` refuses a line feed after the pattern; argv `--id` in `adopt-project.py`, which the project's own `validate-manifest.py` refuses (`adopt-manifest-invalid`, below; `ID_READERS` still gives it the `checked_value` reason); and `adopt-project.py`'s two `plan-bad-id` readers, of the plan's `id:` and of the id derived from `legs.assembly`, which a line feed never passes (below). A new reader of `PROJECT_ID_RE`, `fullmatch` included, fails it by file and method until it is listed in `ID_READERS` with its reason. The table is exact both ways, so a reader taken away fails it too. **Left as they are, and why:** - the argv readers of `PROJECT_ID_RE` (`--id` in `scaffold-project.py`, `family.py init` and `adopt-project.py`). The first two hold the id to `checked_value` after the pattern, which refuses a line feed as `unsafe-value` naming `--id`, and `tests/test_derived_id_refusals.py` pins that answer for them. `adopt-project.py` never calls `checked_value` on `--id`: `plan` with `--id` set to `northwind` and a line feed exits 2 with `adopt-manifest-invalid`, in the words of the project's own `validate-manifest.py` (`manifest-id`), and writes no plan (lane 5's re-check, issuecomment-6371408915, NIT 2; measured on `plan` only); - `adopt-project.py`'s reading of a plan's `id:`: `check` and `execute` hold it to the project's own `validate-manifest.py`, which refused it on main (above) and now names it in `manifest-id`'s words. It is the same value, refused under the same code, `plan-manifest-invalid`, before any leg exists. The id derived from `legs.assembly` is read with `.match` too, and a line feed in `legs.assembly` is `unsafe-value` before that id is asked (the review measured both, on main and here alike). This keeps the open PRs on `adopt-project.py` (24 at 12:02Z) clear; - `PIN_ARG_RE`, and `NAME_RE`/`REF_RE`/`PATH_RE` in `setup-project.py`, as the issue says; - `update-upstream-not-a-repo` still says `--upstream`. A pin's value reaches it only when it names a path that exists, not through the pattern. **Behaviour changed, stated plainly, and what the issue's Verify means by "No refusal code changes":** the issue's Verify line reads as no code added or renamed, and none is. Two inputs do move from one existing code to another, exit 2 both before and after: - `update-shape.py --upstream "opensoft/openRepoShape<LF>"` was `unsafe-value` and is now `update-upstream-unresolvable`, still naming `--upstream`; - a pin's `source_repository:` that ends in a line feed, with no `--upstream`, was `unsafe-value` naming `--upstream` and is now `update-upstream-unresolvable` naming the pin's field. No test pinned either old answer: every gate below passed. `family.py add --member` is stripped before `MEMBER_RE`, so `add` answers as before. **Not changed, seen while measuring:** with `--upstream` passed, `update-shape.py` does not read the pin's `source_repository:` through `REPOSITORY_RE` at all, and it keeps the value as the upstream's repository name. `validate-family.py` does not hold a member row's `id:` to `PROJECT_ID_RE`; it compares the row with the member's manifest. Neither is a `$` question. Both are under "Follow-ups (not in this PR)". All in `tests/test_value_pattern_line_break.py`, run against main's production code: the five production files swapped in place from `origin/main` (`961640c68`), then put back with their sha256 matching (`dirty=5` in the run's START line is those five files). On the head `5102b4294` (30 rows) the result is **20 failed, 10 passed in 23.12s, git 2.43.0**. The 10 that pass are baselines: the seven `test_a_pattern_takes_its_value` rows, the spelling-table guard and the two double-quoted-without-a-line-feed rows. The first 19 are the first commit's rows (19 failed, 10 passed in 22.12s on its 29 rows at `038dafba`). The independent review reproduced them from main's bytes of the same five files (19 failed, 10 passed in 26.78s, the same 19 ids). The 20th, `test_every_reader_of_the_id_pattern_is_in_the_table`, is the second commit's: it fails on main because the three readers of an id from a file are `.match` there, not `.fullmatch`. - `test_a_pattern_refuses_its_value_and_a_line_feed[manifest-DATE_RE]` - `test_a_pattern_refuses_its_value_and_a_line_feed[manifest-QUALIFIED_RE]` - `test_a_pattern_refuses_its_value_and_a_line_feed[family-DATE_RE]` - `test_a_pattern_refuses_its_value_and_a_line_feed[family-QUALIFIED_RE]` - `test_a_pattern_refuses_its_value_and_a_line_feed[family.py-MEMBER_RE]` - `test_a_pattern_refuses_its_value_and_a_line_feed[shape_advisory-DATE_RE]` - `test_a_pattern_refuses_its_value_and_a_line_feed[update-shape-REPOSITORY_RE]` - `test_a_manifest_value_that_ends_in_a_line_break_is_a_finding[id]` - `test_a_manifest_value_that_ends_in_a_line_break_is_a_finding[elected_on]` - `test_a_manifest_value_that_ends_in_a_line_break_is_a_finding[leg-repository]` - `test_adopt_check_names_a_plan_id_that_ends_in_a_line_break_as_an_id` - `test_a_family_value_that_ends_in_a_line_break_is_a_finding[id]` - `test_a_family_value_that_ends_in_a_line_break_is_a_finding[created_on]` - `test_a_family_value_that_ends_in_a_line_break_is_a_finding[member-repository]` - `test_add_refuses_a_member_whose_id_ends_in_a_line_break` - `test_a_pins_source_that_is_no_owner_repo_is_named_as_the_pins[line-feed]` - `test_a_pins_source_that_is_no_owner_repo_is_named_as_the_pins[space]` - `test_a_pins_source_checked_value_refuses_is_named_as_the_pins` - `test_an_upstream_passed_with_a_line_feed_is_named_as_passed` - `test_every_reader_of_the_id_pattern_is_in_the_table` **13 of 13 killed.** Each mutant was applied alone to one file of the branch's production bytes (the same bytes as the first commit and as the head, which adds a test only), the rows were run, and the file was put back with its sha256 checked (`restored=yes` for all 13). Each run is `tests/test_value_pattern_line_break.py` plus `tests/test_family_member_name.py::test_every_spelling_of_the_member_name_rule_is_the_same_pattern`, git 2.43.0. | Mutant | File | Killed by | |---|---|---| | M1 `DATE_RE` back to `$` | `validate-manifest.py` | 2: `test_a_pattern_refuses_its_value_and_a_line_feed[manifest-DATE_RE]`, `test_a_manifest_value_that_ends_in_a_line_break_is_a_finding[elected_on]` | | M2 `QUALIFIED_RE` back to `$` | `validate-manifest.py` | 3: `...[manifest-QUALIFIED_RE]`, `...[leg-repository]`, `test_every_spelling_of_the_member_name_rule_is_the_same_pattern` | | M3 the id read with `.match` | `validate-manifest.py` | 2: `test_a_manifest_value_that_ends_in_a_line_break_is_a_finding[id]`, `test_adopt_check_names_a_plan_id_that_ends_in_a_line_break_as_an_id` | | M4 `DATE_RE` back to `$` | `validate-family.py` | 2: `...[family-DATE_RE]`, `test_a_family_value_that_ends_in_a_line_break_is_a_finding[created_on]` | | M5 `QUALIFIED_RE` back to `$` | `validate-family.py` | 3: `...[family-QUALIFIED_RE]`, `...[member-repository]`, `test_every_spelling_of_the_member_name_rule_is_the_same_pattern` | | M6 the id read with `.match` | `validate-family.py` | 1: `test_a_family_value_that_ends_in_a_line_break_is_a_finding[id]` | | M7 `MEMBER_RE` back to `$` | `scripts/family.py` | 2: `...[family.py-MEMBER_RE]`, `test_every_spelling_of_the_member_name_rule_is_the_same_pattern` | | M8 a member's id read with `.match` | `scripts/family.py` | 1: `test_add_refuses_a_member_whose_id_ends_in_a_line_break` | | M9 `DATE_RE` back to `$` | `scripts/shape_advisory.py` | 1: `...[shape_advisory-DATE_RE]` (its pattern row alone: `date.fromisoformat` refuses the line feed after the pattern, so no tool row sees it) | | M10 `REPOSITORY_RE` back to `$` | `update-shape.py` | 3: `...[update-shape-REPOSITORY_RE]`, `test_a_pins_source_that_is_no_owner_repo_is_named_as_the_pins[line-feed]`, `test_an_upstream_passed_with_a_line_feed_is_named_as_passed` | | M11 `prepare` passes no pin | `update-shape.py` | 3: `test_a_pins_source_that_is_no_owner_repo_is_named_as_the_pins[line-feed]` and `[space]`, `test_a_pins_source_checked_value_refuses_is_named_as_the_pins` | | M12 `checked_value` names `--upstream` again | `update-shape.py` | 1: `test_a_pins_source_checked_value_refuses_is_named_as_the_pins` | | M13 the pin's refusal sentence removed | `update-shape.py` | 2: `test_a_pins_source_that_is_no_owner_repo_is_named_as_the_pins[line-feed]` and `[space]` | No mutant is added for the stand-in in `tests/test_update_shape_unreadable.py`: it is a test change. The independent review re-ran M3, M8, M11 and M12, and one mutant of its own (X1: `prepare` names the pin even when `--upstream` is passed). All five were killed, and each file was put back with its sha256 checked. The other nine of the 13 are this writer's runs alone. **The second commit's guard: 6 of 6 probes caught.** Each was applied alone to one tracked file at `5102b4294`, `test_every_reader_of_the_id_pattern_is_in_the_table` was run, and the file was put back with its sha256 checked (`restored=yes` for all six). The first commit's guard, `test_every_spelling_of_a_value_pattern_is_in_the_table`, was run with each plant too: it passes every one of them, which is the gap the second guard closes. | Probe | File | The new guard | The first guard | |---|---|---|---| | P1 a new `PROJECT_ID_RE.match(value)` reader appended | `update-shape.py` | failed: `('update-shape.py', 'match'): 1` is more than the table holds | passed | | P2 a new `repo_shape.PROJECT_ID_RE.search(value)` reader appended | `scripts/shape_advisory.py` | failed | passed | | P3 `fullmatch` back to `match` | `templates/assembly-root/scripts/validate-manifest.py` | failed | passed | | P4 `fullmatch` back to `match` | `templates/family-root/scripts/validate-family.py` | failed | passed | | P5 `fullmatch` back to `match` | `scripts/family.py` | failed | passed | | P6 main's bytes of those three files together (the 20th row above) | the three | failed | not run | **The second commit `5102b4294` (dirty=0)**, Python 3.12.3, with the same stub `gh`, bogus token and no global git config: | Run | Git | Result | |---|---|---| | `tests/test_value_pattern_line_break.py` | 2.43.0 | **30 passed** in 23.00s | | `tests/test_value_pattern_line_break.py` | 2.47.1 | **30 passed** in 23.30s | | `tests/test_pinned_copy_text.py`, `tests/test_path_guard_hygiene.py`, `tests/test_repo_hygiene.py`, `tests/test_agents_md_codes.py`, `tests/test_cli_reference.py` | 2.43.0 | **306 passed** in 61.54s | That commit changes only the test file (62 lines added, no assert that joins conditions with `and` or `or`, ASCII), so the first commit's runs below are not repeated: they hold the production files and every other test file, and those are unchanged. CI on `5102b4294`, and an independent look at the second commit, were not done when this was written. **The independent review of the first commit** (rv1166c, READY, read-only) reports these gates on `2593952c9`, all passing: the stand-in gate's 6 files (298 passed), the new file on 2.47.1 (29 passed), the five hygiene files (306 passed), 15 more test files that name a changed function, pattern or code (1611 passed, 19 skipped) and `tests/test_shape_doctor.py` (445 passed, 3 skipped). It also read CI on that head at about 20:04Z: `tests` (the full suite on 3.14), `tests-git-bash`, `package` and SonarCloud all passed. **The first commit's gates ran on `2593952c` (dirty=0)**, Python 3.12.3, with the real `gh` unreachable (a stub first on `PATH`, a bogus token) and no global git config: | Run | Git | Result | |---|---|---| | the files that held every failure and setup error of the shards below: `tests/test_family.py`, `tests/test_update_shape_pr_base.py`, `tests/test_update_shape_unreadable.py`, `tests/test_update_shape_header_comments.py`, `tests/test_update_shape_messages.py` and the new `tests/test_value_pattern_line_break.py` | 2.43.0 | **298 passed** in 343.60s | | `tests/test_value_pattern_line_break.py` | 2.47.1 | **29 passed** in 21.31s | | `tests/test_pinned_copy_text.py`, `tests/test_path_guard_hygiene.py`, `tests/test_repo_hygiene.py`, `tests/test_agents_md_codes.py`, `tests/test_cli_reference.py` | 2.43.0 | **306 passed** in 69.12s | **The two shards, on the uncommitted tree** holding the same production bytes as the first commit (the 7 files' sha256 checked before and after), git 2.43.0: the validators' test files, the `REPOSITORY_RE`/`source_repository` files and the `update-shape.py`, `shape_advisory.py` and `family.py` files, 125 in all. - shard 1 (62 files): 4 failed, 5290 passed, 13 skipped in 56 min; - shard 2 (63 files): 3 failed, 4 setup errors, 3761 passed, 29 skipped in 50 min. Every failure and setup error is in the five existing files of the first row of the table above, which all pass on the first commit: - 2 were real: `test_a_read_refused_in_prepare_closes_the_upstream[check|apply]`, the `opening(spec)` stand-in under the two-argument call. The stand-in is fixed in the first commit. - The other 5 failures and the 4 setup errors were `update-conflict` on `scripts/validate-family.py` ("not a verbatim copy ... at the pinned commit"). This is an artifact of an uncommitted tree: `tests/test_family.py`'s `upstream_clone` commits the working tree into its clone, while `family.py init` pins the holder at the real `HEAD`, so an uncommitted `templates/family-root/` file is never verbatim at its pin. On the first commit they pass. Every other file of the two shards passed on these production bytes, so the shards were not re-run. `git merge-tree --write-tree <other> 5102b42` (git 2.43.0) at 2026-10-23T12:08Z, after re-fetching main (still `961640c6`; read again at 12:10Z, just before the push) and re-listing the open PRs at 12:02Z (55 open). Main has moved from the `038dafba` that this body measured to `961640c6` by one file, `docs/release-notes/v1.2.0.md`. Each open PR that touches one of this PR's 8 paths, at its current head, plus #1126: | Against | Head | Shares | Result | |---|---|---|---| | origin/main | `961640c6` | | clean, tree `4613729516ff` | | #1098 | `dad7961a` | `scripts/family.py` | clean, tree `4d1ff9517588` | | #1117 | `10dc011c` | `scripts/family.py` | `scripts/family.py` merges clean; conflict in `docs/handbook.html` only, which this PR does not touch (see below) | | #1124 | `8dfa32bd` | `validate-family.py` | clean, tree `cb2ec1073646` | | #1126 | `4c1f80cf` | none (its `scripts/repo_shape.py` and tests) | clean, tree `e82c8945ac37` | | #1133 | `a7bfee1b` | `update-shape.py` | clean, tree `a710870d1ffc` | | #1144 | `89486f69` | `scripts/shape_advisory.py` | clean, tree `2d3e3e1ef43d` | | #1147 | `b75babee` | `validate-manifest.py` | clean, tree `a82ac3b47a3f` | | #1159 | `66e68f94` | `scripts/shape_advisory.py` | clean, tree `4abeb7b38665` | | #1164 | `74096eb4` | `scripts/family.py` | clean, tree `ee285e1cb8cf` | | #1172 | `5aa0f116` | `validate-family.py` | clean, tree `aa32d41e6e2c` | | #1187 | `cc8a87ee` | `update-shape.py`, `tests/test_update_shape_unreadable.py` | clean, tree `25711eb1cac4` | | #1201 | `eac177af` | `scripts/family.py` | `scripts/family.py` merges clean; conflict in `docs/handbook.html` only (see below) | - #1117 and #1201 conflict in `docs/handbook.html` alone. #1201 is stacked on #1117 (their merge-base is #1117's head `10dc011c`). Each of them against origin/main alone gives the same conflict in the same file, so it is theirs: #1117's, from its older base `6da757cb`, which #1201 inherits. - #1187 and #1201 are new since the first merge-trees. #1187 shares `tests/test_update_shape_unreadable.py` with this PR; its diff adds or removes no line that names `open_upstream`, `def opening` or `REPOSITORY_RE`, so it brings no one-argument stand-in for the two-argument call. That was read for all 55 open heads at 12:12Z; only this PR's own lines name them. - No other open PR adds or removes a call of a method of `PROJECT_ID_RE`, which the second guard counts: the lines each of the 55 open heads adds or removes outside `tests/`, `docs/` and `*.md` were read at 12:04Z. Only this PR's own name it, and #1201's one new `MEMBER_RE.fullmatch` is another pattern. So a sibling landing first does not move the guard's table. Each is a candidate for its own issue. They come from the independent review (rv1166c, READY at `2593952c9`, issuecomment-6352173084), which measured each of them on main and at the head unless the item says it did not. The review's finding numbers are in brackets. - **The naming-policy patterns [1].** `scripts/repo_shape.py` reads the families, the roles and the topic pattern of `contracts/repository-naming.yaml` with `.match` (`family["_re"].match(name)`, `family["_split_re"].match(name)`, `role["_re"].match(name)`, and `topic_pattern`, which defaults to `^xf-project-[a-z0-9-]+$`). `validate-repository-naming.py --project project.yaml` runs in the root template's `Makefile` and `validate.yml`. At the head, and on main, it exits 0 on a leg `repository: "testorg/Atlas\n"` and prints the line feed inside its table; `-spec` and `-code` the same. The project's gate as a whole still fails, because `validate-manifest.py` now refuses that manifest. - **`update-upstream-not-a-repo` with a pin [3].** With no `--upstream`, a pin whose `source_repository:` names a folder that exists and is no repository (the review measured `contracts` and `scripts/repo_shape.py`) is `REFUSED update-upstream-not-a-repo: --upstream contracts exists but is not a git repository`, exit 2, on main and here. `pin_path` is in scope at `update-shape.py:686-687`, so that refusal can name the pin as `update-upstream-unresolvable` now does. - **A pin's line feed when `--upstream` is passed [9].** `update-shape.py check --upstream <clone>` over a pin whose `source_repository:` ends in a line feed exits 0, `nothing to do`. The value is kept as `upstream.repository`, which reaches the README shape line's check, `apply`'s commit subject and the pull request words (`update-shape.py:2525`, `3017` and `5121`). The review measured `check`, not `apply`. It belongs with the previous item. - **A member row's `id:` [4].** On main, `add` of a member whose `project.yaml` reads `id: "irqs\n"` commits the row `id: "irqs\n"`, and the holder's `validate-family.py` then says `family ok`. Under mutant M8 (this branch with main's `.match` in `add`) the same row is written, and the gate still says `family ok`. By code reading, not measured end to end: `validate-family.py` compares a row's id with the member manifest's by `str` equality (`member-id-mismatch`, `validate-family.py:1608`), and `_check_member_ids_unique` does the same, so neither asks `PROJECT_ID_RE` of a row. This PR makes `add` refuse such a member, so no new holder gets such a row. - **Values that no pattern reads [8].** The review's sweep found these `manifest ok` or `family ok`, exit 0, with a trailing line feed, at the head and on main alike: - in `project.yaml`: `name`, a spec or code leg's `path`, `shape.repository` and `shape.digests.digest_algorithm`; - in `family.yaml`: `org`, the family's own `repository`, `tracking_branch`, and the shape's and each member pin's `digest_algorithm`. No `^...$` pattern reads them, so they are not this PR's. A leg's `path` is checked only by `_leg_path_findings`, which asks no pattern, and the family's `tracking_branch` is refused in `project.yaml` (`manifest-tracking-branch`, U+000A) but not in `family.yaml`. `shape.commit` and `tree_sha256` with a line feed are also `manifest ok`; that is #1126's. The first commit's message says "the three readers of an id from a file ask it with `fullmatch` (`manifest-id`, `family-id`, `member-bad-id`)". That is true of those three, but it reads as if there were no others [2]. What the review measured instead: - `adopt-project.py` still reads the id derived from `legs.assembly` (`:6780`) and the plan's `id:` (`:6791`), both `plan-bad-id`, with `.match`; - neither lets a line feed through. A plan `id: "northwind\n"` is `plan-manifest-invalid`, now in `manifest-id`'s words. A plan with no `id:` and `legs.assembly: "NorthWind\n"` is `REFUSED unsafe-value: legs.assembly is 'NorthWind\n'`, exit 2, before the derived id is asked, on main and here alike. So it is the wording alone that overstates. The second commit's `ID_READERS` lists both readers with that reason. The title's pin clause is the narrower one (the pin's name only where the value is no path and no `owner/repo` name), and two inputs change from `unsafe-value` to `update-upstream-unresolvable` (see "Behaviour changed", above). Review: rv1166 and rv1166c, lane 5's independent opus reviewers, at `2593952c` (issuecomment-6352173084); then rc1166b, lane 5's independent sonnet re-checker, which wrote none of #1166: READY at `5102b429`, H0 of this landing (issuecomment-6371408915), with no MUST or SHOULD; its NITs 1 and 2 are corrected in the body. CI (Brett Heap's ruling 27 and his fast-refresh ruling of 2026-10-15T22:48:35Z): H0 5102b42 passed tests, tests-git-bash and SonarCloud; the head 5c8afef is a clean update-branch merge of main 93d2931, with tests-git-bash and SonarCloud green; and the local gate passed on its predicted squash tree 3c89065 over main 11560eb: the family_init_values, update_shape_unreadable, value_pattern_line_break, repo_hygiene, agents_md_codes, cli_reference sets, 365 passed, 19 skipped. 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 #1139 Lane: openreposhape-5 (openRepoShape-5) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s message spells a path byte that is not UTF-8 as `_shown` does, an escape, and no longer says it names it with a `?` in its place, which #900 replaced (#1018) (#1104) `env_commit`'s docstring in `scripts/shape_materialize.py` says what the split commit's message does with a `root` or `drop` path that holds a byte that is not UTF-8, as the code does since #900. It said the message names such a path "with a `?` in place of that byte, a path that does not exist". That was true before #900, and it is not true now. A reader of the docstring is told about a `caf?.md` the tool no longer writes. Found by lane 1's writer on #900 and filed as #1018. Lane 5 took it outside v1.2.0, under Brett Heap's ruling of 2026-10-21T10:32:04Z. Measured on main `2a119f281` and again on `16f9a0e81` (main after #1087), with a small script that calls: `adopt-project.py`'s own `_split_message` and `_shown`, then `env_commit` and a real `git commit`, read back with `cat -A`. - The issue's claim held: the docstring (about line 2103 when filed, line 2268 on `2a119f281`, line 2349 on this branch) still said the message names the byte with a `?`. - The code does not. `_shown("caf\udce9.md")` is `` `caf\udce9.md` ``, and the split message for a `root` and a `drop` entry named that holds no lone surrogate. Through `env_commit` and `git cat-file commit HEAD`, `cat -A`: ``` DROPPED (in no leg and no longer here):$ `caf\udce9.md`$ STAYS IN THE ASSEMBLY ROOT:$ README.md$ `caf\udce9.md`$ ``` - What stays true of `env_commit` itself: a message that holds the lone surrogate, handed to it directly, is still written as `?`. `cat -A` reads `Name: caf?.md$`. So the `errors="replace"` paragraph is kept, and what changes is who it describes. - #1087 (main `16f9a0e81`) changed `scripts/shape_materialize.py` by 128 lines, none of them in `env_commit`, `COMMIT_COMMAND` or the message, and changed nothing in `adopt-project.py` (0 diff lines). The rebase onto it was clean and the docstring needed no other change. One file, `env_commit`'s docstring, in two paragraphs: the `errors="replace"` paragraph (round 1, 11 lines added and 7 removed) and the sentence above it (round 2, below; 3 added and 2 removed). Together 14 added and 9 removed against main `6da757cb`. The `errors="replace"` paragraph now says: - encoding, a character UTF-8 cannot carry is written as `?`, and nothing raises after both legs are pushed, as before; - `adopt-project.py` refuses a lone surrogate in a path it extracts (`entry_path_problem`), and a `root` or `drop` entry that holds one is listed in the split message but never raw: the message names each path as `plan`'s report does (`_shown`, #900), so the byte 0xE9 reads as an escape with no surrogate in it, `` `caf\\udce9.md` ``, the path the source holds; - written raw it would be a `?`, `caf?.md`, a path that does not exist, which is what `env_commit` still writes for a lone surrogate it is handed. The backslash is doubled in the source, as the neighbouring docstrings write `\\udcc3`. A single `\u` in a non-raw docstring would be an escape that makes a lone surrogate. Measured: the docstring holds no character from U+D800 to U+DFFF and holds the six characters `\udce9`. The longest docstring line is 78 characters. **The code is unchanged.** A script compares the AST of `scripts/shape_materialize.py` with every docstring blanked: the branch's file is identical to `origin/main`'s after the rebase onto `16f9a0e81` (round 1), and the merge of this head into `origin/main` `6da757cb` is identical to `6da757cb`'s file (round 2). **No pin moves.** `scripts/shape_materialize.py` is not a pinned copy. `COPIED_VERBATIM`, `COPIED_FROM_SHAPE`, `FAMILY_COPIED_VERBATIM` and `FAMILY_COPIED_FROM_SHAPE` do not list it, and `templates/assembly-root/scripts/validate-pins.py` says of it "which no project carries". So no `upstream-changed` row, no digest, no assembly copy and no `tests/test_pinned_copy_text.py` entry changes. **No other text pins these words.** Searched in `tests/`, `README.md`, `docs/`, `docs/handbook.html`, `AGENTS.md` and `templates/`: no test reads `env_commit`'s docstring (`__doc__`, `getdoc`), and none of them holds "in place of that byte" or "a path that does not exist" for this. The other places that name the `?` are about this function's behaviour or about history, and are still true: `_split_message`'s docstring says `caf\\udce9.md` "was `caf?.md`" (before #900), `_refused_by_policy` already says the message "lists it as `_shown` does (#900)", and `tests/test_adopt_spelled_names.py` quotes the message as it was on `c7a3ff16`. The `?` in `argv_text`, `trailer_line` and the commit-trailer text is about a `--trailer`, not the split message. No rows and no mutants: the change is a docstring, the code is the same AST, and no test pins the docstring. So there is no row to fail on main and nothing to mutate. All with `$Q/v110/run9.sh`, `[email protected]`, `GIT_SSH_COMMAND=false`, `GIT_CONFIG_GLOBAL=/dev/null`, the stub `gh`, a fake token, git 2.43.0 (`/usr/bin/git`). Two shards, run before the rebase, at the `2a119f281` base with this one-file change in the tree. Together they are every `tests/*.py` that names `shape_materialize` or `env_commit` (86 files, including `tests/test_adopt_spelled_names.py` and `tests/test_adopt_entry_paths.py`, which run `env_commit` and the #900 message) and `tests/test_agents_md_codes.py`: | run | files | result | |---|---|---| | shard A | 43 | 2873 passed, 4 skipped in 1707.51s, rc=0 | | shard B | 44 | 4611 passed, 31 skipped in 2462.01s, rc=0 | After the rebase onto `16f9a0e81`, on the committed head `e32b2703d733f6c60c1b2cba2d62d164d93d7b9a` (`dirty=0`): the trio, `tests/test_repo_hygiene.py`, `tests/test_agents_md_codes.py` and `tests/test_cli_reference.py`, **170 passed in 55.67s**, rc=0. The docstring-only change needed no new shards: the shards' counts are runs at the `2a119f281` base, and #1087 did not touch `env_commit`. Round 2, on the committed head `de89aa81b1533e32f1007f991aeae05cd915b36d` (`dirty=0`): the same trio, **170 passed in 61.77s**, rc=0. The round 2 commit is one docstring sentence, so it needed no new shards either. git 2.47.1: no run. The change adds no test file of its own, so there is none to run on it. `git merge-tree --write-tree HEAD <other>` with HEAD at `de89aa81b1533e32f1007f991aeae05cd915b36d`, after a re-fetch of `origin main` with `-c gc.auto=0 -c maintenance.auto=false` (round 2, about 14:03Z on 2026-10-21): | against | result | |---|---| | `origin/main` `6da757cbe9a4eb66d60c34f38dcc2b332d175e8b` | clean, rc 0, tree `15c11b6c959fc4c7540105d5d62e3f961c8e27fd` | | #1105 `fix/1048-makefile-follow-up-gnu-read-order` `5a4de7f763b5a3c32adce9614a3a539508416eb4`, an open PR that touches `scripts/shape_materialize.py` | clean, rc 0, tree `db05aead67052643942e35a9689d9dd4a0873fda` | | #1118 `fix/1089-named-link-skip-tests` `c60066cbeec18b8b6c926e254ed4bee6b9a486c2`, the other open PR that touches `scripts/shape_materialize.py` | clean, rc 0, tree `a40df3b63c32c2a3d8f4c40587b094940c8d6567` | Read with `gh pr list --state open --json number,headRefName,headRefOid,files`: 16 open PRs, three of them (this one, #1105 and #1118) touch `scripts/shape_materialize.py`, the only file this change touches. The other 13 (#1120, #1119, #1117, #1111, #1109, #1107, #1106, #1102, #1101, #1098, #1097, #1091, #1088) touch no file this change touches. The same command with HEAD at the reviewed head `e32b2703` gives rv1104's trees: `de31d857` against `6da757cb` and `195ffe19` against #1105. The round 1 merge against #1090 is moot: #1090 has landed in `6da757cb`. Held as a draft until the v1.2.0 tag; it is now on the v1.2.1 milestone. - **NIT 1, `scripts/shape_materialize.py` lines 2340-2343, a line round 1 did not change.** The paragraph above the reworded one said the adoption's split message "names each entry path as the source spells it". Since #900 that is true of a printable path alone: `_split_message` lists any other through `_shown`, as the escape the next paragraph describes. It now says "as the source spells it (a printable one; see below)". One new commit on top of `e32b2703`, `de89aa81b1533e32f1007f991aeae05cd915b36d`, 3 lines added and 2 removed, docstring only, pushed as a fast-forward (no rebase, the PR is open). - Measured: the AST with docstrings blanked is identical to `e32b2703`'s and, merged into `6da757cb`, to `6da757cb`'s. The docstring holds no lone surrogate, still holds the six characters `\udce9`, and its longest line is 78 characters. - Searched `tests/`, `README.md`, `docs/`, the handbook mirror, `AGENTS.md`, `templates/` and the scripts for "names each entry path", "as the source spells" and the new words: only `tests/test_adopt_entry_paths.py` line 233 matches, a test's docstring about `execute` handing each path on as the source spells it, which is another sentence and pins nothing here. - **NIT 2, this body.** It named main as `16f9a0e81` and #1090 as the one open PR that touches the file. #1090 has landed. Main is `6da757cb`, and the merge-trees above are redone against it, against #1105 and against #1118, a draft that opened since and also touches the file. Review: rv1104-1107, lane 5's independent opus reviewer, which wrote none of #1104: READY at `de89aa81`, H0 of this landing (issuecomment-6318111413), with no finding; NIT 1 and NIT 2 of the round before are fixed. CI (Brett Heap's ruling 27 and his fast-refresh ruling of 2026-10-15T22:48:35Z): H0 de89aa8 passed tests, tests-git-bash and SonarCloud; the head 92285d4 is a clean update-branch merge of main b66d8f0, with tests-git-bash and SonarCloud green; and the local gate passed on its predicted squash tree 6bd2128 over main b66d8f0: the repo_hygiene, agents_md_codes, cli_reference sets, 171 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 #1018 Lane: openreposhape-5 (openRepoShape-5) Co-Authored-By: Claude Opus 5.5 <[email protected]>
… and the `add` that `bump`'s `member-unknown` names carry `--family-root <holder>`, quoted for the host, so each runs as printed (#1005) (#1117) ## What `remove` and `add` require `--family-root`, as `bump` does. #1002 gave every remedy that names `family.py bump` the holder and left three that name another verb without it. Typed as printed, each ended in `family.py <verb>: error: the following arguments are required: --family-root`. Each now names `--family-root` and the resolved `family.root`, spelled by `shell_quoted`, as #1002's `bump` line and `_add_command` are. - **`scripts/family.py`:** - `add`'s `member-duplicate-id` (`_checked_member_id`): the `remove` it names is now `family.py remove --family-root <holder> --member <row>`. Its `bump` line was already right. - `bump`'s own `member-duplicate-id` (`_checked_bumped_id`): the `remove` it names is now `family.py remove --family-root <holder> --member <held row>`. - `bump`'s `member-unknown` (`cmd_bump`): the `add` it names is now `family.py add --family-root <holder> --member <org>/<P>`. `<org>` stays a blank for the person to fill in, as `<commit>` does. - **`README.md` and `docs/handbook.html`:** the "Windows, natively" sentence now names `family.py`'s `remove` line beside `bump`, since the new lines quote the holder for the shell they are printed in (`add` was already named). The handbook's seven `reads README.md` markers for the README section carry its new hash. - **`tests/test_readme_windows_quoting_sentence.py`:** the `NAMED` table counts the new host-dialect calls: `_checked_member_id` 2, `_checked_bumped_id` 1, `cmd_bump` 1. CI's full suite is where that table fails first, as it did on #1002, so it is in the gate here. The lines start with a bare `family.py`, as #1002's `bump` line does and as the lines in the same remedy sentence do. `validate-family.py`'s template copy already prints `--family-root` and the interpreter and script path, and is unchanged. ## Tests All runs used `/usr/bin/python3 -m pytest` under a stub `gh`, a bogus `GH_TOKEN`, an empty `GH_CONFIG_DIR`, `GIT_CONFIG_GLOBAL` an empty file, `GIT_CONFIG_NOSYSTEM=1` and no `GIT_SSH_COMMAND`. - **`tests/test_remove_add_remedies_family_root.py`, 45 rows:** each of the three refusals, over a holder in a plain folder, under `my work`, under `Dana's work`, reached by a relative `--family-root`, and reached through a symlink (skipped on Windows). Each checks three things: - the printed line is the expected text, and the host's own word-splitting gives the holder back as one word; - `family.py`'s own parser accepts it, with `<org>` filled in; - typed as printed from a folder that is not the holder's, it exits 0, leaves the holder clean and its gate green, and does what the remedy says: the refused `add` then goes through, or the refused `bump` then moves the row, or the member the refused `bump` named is in the family. - **Against main `2a119f281`:** all 45 fail and all 45 pass on this head. The `parses` and `runs` rows fail on `the following arguments are required: --family-root`, and the `carries the holder whole` rows fail on the printed line. - **`tests/test_family_add_member_id.py` and `tests/test_family_bump_to_checks.py`** follow the new words. The former's `remove` row now runs the printed line as it is, with no `--family-root` added by the test. - **Gate, at head `10dc011c9`, 1293 passed and 0 failed in three runs:** 927 (the new file, the doc and quoting files, and the family files that run `add`, `bump` and these codes), 178 and 188 (the validate-family, remedy and holder-state files). - Doc files in the gate: `test_readme_windows_quoting_sentence`, `test_repo_hygiene`, `test_readme_sections`, `test_setup_by_hand_commands`, `test_agents_md_codes`, `test_update_add_codes_documented`, `test_family_docs_one_spelling`, `test_family_printed_quoting` and `test_git_bash_dialect`. - **Mutants, 16 of 16 caught, each restored with its sha256 checked:** each remedy without `--family-root`; each with the holder unquoted; the wrong `--member`; `<org>/` dropped; each `shell_quoted` call told `'posix'` (the `NAMED` table); README or the handbook without `remove`; the handbook marker with the old hash; and the `NAMED` table without the new counts. ## Merges - **Main** `6da757cbe`: clean. - **#1098** (`scripts/family.py`): clean. - **#1101** (README and handbook, a lane 3 draft): conflicts in `docs/handbook.html` only, at the seven `reads README.md` markers of its `Starting a project in a new organisation` section, because both change that README section and so its hash. It is the known serialization of two README pull requests: the second to land recomputes the hash from the merged README. ## Notes - Outside this issue: `member-already-present`'s remedy says "`remove` takes it out" as a bare verb with no line to type. It is not one of the issue's three, so it is unchanged. Closes #1005 Lane: openreposhape-4 (openRepoShape-4) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…in with the interpreter and the script's path, quote the row's name, fill in the family's org, say the branch they run on, and `member-already-present` prints its `remove` (#1127) (#1201) **#1127: the `add`, `bump` and `remove` lines that `family.py`'s remedies name are one spelling, `_family_line`, and each line a real `add`, `bump` or `remove` prints runs as printed, including from the branch a fresh clone stands on, as do the dry runs' `member-unknown` and `member-already-present` lines (three other lines are in Limits). A line begins with the interpreter and the script's path, quotes the row's name, names the family's org where it is known, and says which branch it runs on, and `member-already-present` prints its `remove` beside its `bump`.** **Was stacked on #1117 at `10dc011c9`, and is restacked after #1117 landed as `9252ef20`** (see "Restacked after #1117 landed"). Before that, its base was #1117's branch, `fix/1005-family-remove-add-family-root`, and it showed one commit, `eac177af9`: 9 files, 638 insertions and 74 deletions (`git diff --stat 10dc011 eac177a`). It answers the seven follow-ups of RV1117's review of #1117 (#1005), N1 to N7 of #1127, and one more that measuring found, N1b. Main is `961640c6` and #1117's head is `10dc011c9`. The probe is `tests/test_zz_probe1127.py`, run untracked through `run9.sh` (stub `gh`, bogus token, no global git config, no ssh) on each, from 20:13Z to 20:16Z on 2026-10-22. Its scripts and logs are in lane 5's scratch `v124/n1127/` (`probe/`, `logs/probe-main.log`, `logs/probe-parent.log`, `logs/n5-measure-main.log`, `logs/n5-measure-parent.log`). | item | on main | on #1117's head | |---|---|---| | **N1** `member-unknown`'s `add`, typed on the tracking branch | not in that form: the line has no `--family-root`, so typed from a holder it exits 2 with argparse's `the following arguments are required: --family-root`, on any branch | holds: `add --family-root <holder> --member <org>/IRQS` from a holder on `main` exits 2 `family-on-tracking-branch` | | **N1b** (found by measuring) `member-already-present`'s `bump`, typed on the tracking branch | holds | holds: `add --member InkRouter/IRRS` on `main` is refused `member-already-present`; its `bump` line, with a real commit, exits 2 `family-on-tracking-branch`. `add` asks `_checked_add_target` before `_checked_branch` | | **N2** a bare `family.py` | holds: the `member-unknown` and `member-already-present` lines start `family.py` | holds, and so do #1117's two `remove` lines | | **N3** `<org>` left blank | holds: `family.yaml` says `org: InkRouter`, the line says `<org>/IRQS` | holds | | **N4** `--member` printed raw | holds: with the row's project hand-edited to `IR RS`, the `bump` line reads `--member IR RS`, which `shlex` splits into `IR` and `RS` | holds | | **N5** the README sentence's verbs tied to nothing | holds: dropping `bump` from README and the handbook leaves `tests/test_readme_windows_quoting_sentence.py` at 44 passed | holds: dropping `remove` leaves it at 44 passed | | **N6** a backtick in the holder's path | holds: the first backticked span of the remedy is `family.py bump --family-root '<...>/a`, cut at the path's backtick | holds | | **N7** `remove` takes it out, with no line | holds: the `member-already-present` remedy says "`remove` takes it out" and prints no `remove` line | holds, the same text | So both kinds are present. N1 exists only in #1117's `add` line, since main's has no `--family-root` to be refused for. The other seven (N1b and N2 to N7) hold on both, and #1117 rewrites three of the lines they concern. That is why this is stacked on #1117. Item by item, with the row that pins it and the mutants aimed at it (the results are in the Mutants section; each run stopped at its first failing row): | item | what holds now | pinned by | mutants | |---|---|---|---| | N1 | `member-unknown`'s remedy opens with the branch clause and the `git switch -c`; typed in order from the tracking branch, the `switch -c` then the `add` exit 0 | `test_member_unknowns_add_runs_as_printed_from_the_tracking_branch` | M5, M11, M13, M15 | | N1b | the same for `member-already-present`'s `bump` and `remove` | `test_member_already_presents_lines_run_as_printed_from_the_tracking_branch` (`bump`, `remove`) | M14 | | N2 | every line begins with the interpreter and the script's path | the new file's rows, and the rows of five existing files that now read that lead | M1, M12 | | N3 | the owner is the typed one, else `family.yaml`'s `org:`, else the blank | `test_member_unknowns_add_names_the_owner_where_it_is_known` (7 params) | M6, M7, M8, M9 | | N4 | the row's name is one quoted word | `test_a_rows_name_with_a_space_is_one_word_in_both_lines` | M2, M16 | | N5 | the README sentence's verbs are tied to `NAMED` and to the verbs `_family_line` is called with | `test_the_kinds_of_family_lines_are_the_ones_the_sentence_lists` | D1, D2, D3 | | N6 | a command holding a backtick is printed bare | `test_a_command_holding_a_backtick_is_printed_bare` | M3, M4 | | N7 | `member-already-present` prints the `remove` line | the `[remove]` param of the N1b row | M10 | The code, in `scripts/family.py`: - **One spelling for the lines, `_family_line(verb, holder, *words)` (N2, N4).** It prints `<python> <this file's path from where the run stood> <verb> --family-root <holder> <words>`, every word spelled by `shell_quoted` for the reader's shell. That is how `init`'s NEXT STEPS' `add` was already printed (`_add_command`, #486), now shared. `_add_command` is built on it and prints the same bytes. - It is called for `bump`'s `member-unknown` (its `add`), `add`'s `member-already-present` (its `bump` and `remove`), `add`'s `member-duplicate-id` (its `remove` and `bump`) and `bump`'s `member-duplicate-id` (its `remove`). - The row's `project:` is passed as a word, so a row `IR RS` prints `'IR RS'`, one word (N4). - A placeholder (`<commit>`, `<org>/...`) is added after the line, bare: quoted, it would read as a value. - **The branch the line runs on, `_off_the_tracking_branch` (N1, N1b).** `member-unknown` and `member-already-present` are refused before `_checked_branch` reads the branch, so a person on the tracking branch, where `init` and a fresh clone leave them, typed a line that was refused. Each remedy now opens with `on a branch other than the holder's tracking branch, which <verb> refuse(s) (<git -C holder switch -c branch> makes one), `, and ends with `BRANCH_LEFT` (#607). - `member-unknown`: `` `add` refuses ``, branch `family/add-<project>`. - `member-already-present`: `` `bump` and `remove` refuse ``, branch `family/bump-<id>`. The issue named only the `add` (N1); this is N1b. - The words are true on any branch: the refusal is said before the branch is read, and reading it there could refuse in its place. The two `member-duplicate-id` remedies name no branch: a real `add` or `bump` asks them after `_checked_branch`. - **The owner of `member-unknown`'s `add`, `_unknown_members_repository` (N3).** The owner `--member` was typed with (`<org>/<project>`), else `family.yaml`'s `org:`, else the blank `<org>`. Each is used only where `MEMBER_RE.fullmatch("<owner>/<project>")`, so an empty org or an org holding a space leaves the blank, and a typed owner `add` refuses falls through to the family's org. The value is one word for the shell. - **A command holding a backtick is printed bare, `_cited` (N6).** Every shell reads the line the same either way. - **`member-already-present` prints the `remove` line beside the `bump` line (N7).** `` `<bump line> --to <commit>` moves an existing member and `<remove line>` takes it out. `` The remedy of `bump --member IRQS` on a family whose `org:` is InkRouter, before and after. The "after" is from the working tree's probe before the commit (`logs/probe-wip.log`), and the tests pin it on the head. `BRANCH_LEFT` follows it. ``` before (#1117's head): Remediation: `family.py add --family-root <holder> --member <org>/IRQS` puts it in the family first. after: Remediation: on a branch other than the holder's tracking branch, which `add` refuses (`git -C <holder> switch -c family/add-irqs` makes one), `python3 <path to family.py> add --family-root <holder> --member InkRouter/IRQS` puts it in the family first. ``` Tests: - **`tests/test_family_remedy_lines.py` (new, 12 rows) types each line as printed.** The holder is the suite's family, copied and put back on its tracking branch, as `tests/test_family_tracking_branch.py` does, and the lines are typed from a folder with a space in its name, by the interpreter and the script path they print. - `member-unknown`: the exact remediation; the `add` typed alone is refused `family-on-tracking-branch`; its `switch -c` then the `add` exit 0, pin IRQS on `family/add-irqs`, leave the holder clean and `validate-family.py` green (N1, N2). - `member-already-present`, for `bump` and for `remove`: the same, with the pin moved to `main~1` or the row gone (N1b, N7). - The owner, 7 params (the family's org; a typed owner; a typed owner `add` refuses; no org; an empty org; an org holding a space; no org but a typed owner), each pinned to the exact line (N3). - A row `IR RS`: both lines carry `'IR RS'` as one word (N4). - A holder under a folder `a`b`: both remediations print bare commands, and the `add` runs (N6). - **`tests/test_readme_windows_quoting_sentence.py` ties the sentence's verbs to the code (N5).** `NAMED` is re-counted for the new helpers (`_family_line` 3, `_add_command` 1, `_unknown_members_repository` 2). A new `FAMILY_LINES` says what each function prints, and a new `family_line_verbs` reads each `_family_line` call's verb from the source. `test_the_kinds_of_family_lines_are_the_ones_the_sentence_lists` checks those kinds against the verbs README lists for `family.py` (`NEXT`, `switch -c`, `add`, `cd`, `git rm -r --cached`, `bump`, `remove`), no more and no fewer, and refuses a verb that is not a string constant. A second test checks the reader on a small source. README and the handbook are not touched. - **Five existing test files read the new lead.** `family_lead(cwd=None)` is a new helper in `tests/test_family_printed_quoting.py`: the interpreter and the path to `family.py` from where the refused run stood. `tests/test_bump_remedies_family_root.py`, `tests/test_family.py`, `tests/test_family_add_member_id.py`, `tests/test_family_bump_to_checks.py` and `tests/test_remove_add_remedies_family_root.py` expect it where they expected a bare `family.py`; that last file's `bump-member-unknown` case now expects the org filled in. - **No assert joins conditions with `and` or `or`.** Read on the syntax tree: the new file has 43 asserts and the sentence file gains 7, none of them composite. The diff adds no non-ASCII byte. `10dc011c9`'s `family.py` was put under the committed tests of `eac177af9` (`git show 10dc011:scripts/family.py > scripts/family.py`), with `tests/test_family.py` narrowed to its one changed test, and the 8 changed or new files run through `run9.sh` with `-rA`: **90 failed, 142 passed** in 148.64s (`logs/rows-parent.log`; the failing ids are in `logs/rows-parent-failed.txt`). `family.py` was restored and its sha256 checked afterwards. The same 232 rows pass on the head, inside the gates below. The rows were not run against main's `family.py`: this PR's base is #1117's branch. | file | failed of run | the rows | |---|---|---| | `tests/test_remove_add_remedies_family_root.py` | 45 of 45 | `test_the_line_a_remedy_names_carries_the_holder_whole`, `..._parses` and `..._runs_as_printed_and_does_what_it_says`, 15 each: 5 holders (`plain`, `my work`, `Dana's work`, `relative`, `symlink`) x the cases `add-member-duplicate-id`, `bump-member-duplicate-id`, `bump-member-unknown` | | `tests/test_bump_remedies_family_root.py` | 18 of 21 | `test_the_bump_a_remedy_names_carries_the_holder_whole`, `..._parses` and `..._runs_as_printed`, 6 each: 3 holders (`plain`, `my work`, `Dana's work`) x `member-already-present`, `member-duplicate-id` | | `tests/test_family_remedy_lines.py` (new) | 12 of 12 | `test_member_unknowns_add_runs_as_printed_from_the_tracking_branch`; `test_member_already_presents_lines_run_as_printed_from_the_tracking_branch[bump]` and `[remove]`; `test_member_unknowns_add_names_the_owner_where_it_is_known` (all 7 params); `test_a_rows_name_with_a_space_is_one_word_in_both_lines`; `test_a_command_holding_a_backtick_is_printed_bare` | | `tests/test_family_add_member_id.py` | 6 of 14 | `test_a_linked_manifest_with_a_pinned_id_is_refused_by_the_mount_unwound`, `test_a_member_whose_id_changes_between_the_probe_and_the_mount_is_unwound`, `test_a_renamed_repository_is_refused_before_anything_is_mounted`, `test_a_section_already_at_the_mount_path_is_refused_first_then_the_id`, and `test_each_command_the_refusal_names_runs_on_the_row_it_names[bump]` and `[remove]` | | `tests/test_family.py` | 4 of 4 | `test_add_refuses_a_spelling_of_a_member_the_family_already_pins[INKROUTER/IRRS]`, `[InkRouter/irrs]`, `[OtherOrg/Irrs]`, `[inkrouter/irrs]` | | `tests/test_family_bump_to_checks.py` | 3 of 6 | `test_a_duplicate_id_behind_a_tag_is_refused_after_the_peel_line`, `test_a_duplicate_id_read_through_a_linked_manifest_is_put_back`, `test_bump_to_a_commit_recording_another_rows_id_is_refused_alike` | | `tests/test_readme_windows_quoting_sentence.py` | 2 of 46 | `test_the_functions_that_quote_for_the_host_are_the_ones_the_sentence_names[scripts/family.py]` (`NAMED` no longer matches #1117's `family.py`: `_add_command` is counted 3 there, where `NAMED` now says 1, and four more functions are counted) and the new `test_the_kinds_of_family_lines_are_the_ones_the_sentence_lists` | | `tests/test_family_printed_quoting.py` | 0 of 84 | gains the `family_lead` helper only | 19 of 19 killed. Each was applied alone to the committed tree with `mut/mutants1127.py` (lane 5's scratch `v124/n1127/mut/`), run through `run9.sh` with `-x -q` on the named file, and restored byte for byte, with the sha256 checked by an assert in the driver. `git status --porcelain --untracked-files=no` was empty after the last one (`logs/mutants.log`). With `-x` a run stops at its first failing row, so the table names that row, not every row that would fail. Every failure is an `AssertionError` at an assert of the named file, read in `logs/mut-<id>.log`, never an import or syntax error. No survivor. | mutant | what it does | result | first failing row | |---|---|---|---| | M1 | `_family_line` drops the interpreter and the script | killed, rc 1 | `test_member_unknowns_add_runs_as_printed_from_the_tracking_branch` | | M2 | words unquoted in `_family_line` | killed, rc 1 | `test_a_rows_name_with_a_space_is_one_word_in_both_lines` | | M3 | holder unquoted in `_family_line` | killed, rc 1 | `test_a_command_holding_a_backtick_is_printed_bare` | | M4 | `_cited` always backticks | killed, rc 1 | `test_a_command_holding_a_backtick_is_printed_bare` | | M5 | no branch clause | killed, rc 1 | `test_member_unknowns_add_runs_as_printed_from_the_tracking_branch` | | M6 | org blank always | killed, rc 1 | `test_member_unknowns_add_runs_as_printed_from_the_tracking_branch` | | M7 | typed owner ignored | killed, rc 1 | `test_member_unknowns_add_names_the_owner_where_it_is_known[the-typed-owner]` | | M8 | owner not checked against `MEMBER_RE` | killed, rc 1 | `...owner_where_it_is_known[a-typed-owner-add-refuses]` | | M9 | typed owner after the family's org | killed, rc 1 | `...owner_where_it_is_known[the-typed-owner]` | | M10 | no `remove` line in `member-already-present` (#1117's words) | killed, rc 1 | `test_member_already_presents_lines_run_as_printed_from_the_tracking_branch[bump]` | | M11 | `BRANCH_LEFT` dropped from `member-unknown` | killed, rc 1 | `test_member_unknowns_add_runs_as_printed_from_the_tracking_branch` | | M12 | script named bare (#1117's `family.py`) | killed, rc 1 | `test_member_unknowns_add_runs_as_printed_from_the_tracking_branch` | | M13 | `member-unknown`'s `switch -c` suggests `bump`'s branch | killed, rc 1 | `test_member_unknowns_add_runs_as_printed_from_the_tracking_branch` | | M14 | `member-already-present`'s `switch -c` suggests `add`'s branch | killed, rc 1 | `test_member_already_presents_lines_run_as_printed_from_the_tracking_branch[bump]` | | M15 | `member-unknown`'s clause names the wrong verb | killed, rc 1 | `test_member_unknowns_add_runs_as_printed_from_the_tracking_branch` | | M16 | `member-already-present`'s row name raw in its lines | killed, rc 1 | `test_a_rows_name_with_a_space_is_one_word_in_both_lines` | | D1 | README and the handbook drop `remove` from the sentence (N5) | killed, rc 1 | `test_the_kinds_of_family_lines_are_the_ones_the_sentence_lists` | | D2 | a `_family_line` call of a verb the sentence does not list (N5) | killed, rc 1 | `test_the_kinds_of_family_lines_are_the_ones_the_sentence_lists` | | D3 | a `_family_line` call whose verb is not a constant (N5) | killed, rc 1 | `test_the_kinds_of_family_lines_are_the_ones_the_sentence_lists` | M1 to M16 ran on `tests/test_family_remedy_lines.py`, D1 to D3 on `tests/test_readme_windows_quoting_sentence.py`. D1 is the N5 measurement made into a mutant: on #1117's head the same documentation edit left that file at 44 passed. All through lane 5's `run9.sh` with `EMAIL` exported, run by `gate-n1127.sh` from the main loop. Every `START` line reads `head=eac177af934b9606db83e5a31e62cd5a98b5270c` and `dirty=0`, or, for the hygiene run, the scratch commit below. The 17 files: `tests/test_family_remedy_lines.py`, `tests/test_bump_remedies_family_root.py`, `tests/test_family_add_member_id.py`, `tests/test_family_bump_to_checks.py`, `tests/test_family_printed_quoting.py`, `tests/test_readme_windows_quoting_sentence.py`, `tests/test_remove_add_remedies_family_root.py`, `tests/test_family.py` (the 8 this commit changes or adds), and `tests/test_family_init_landing.py`, `tests/test_git_bash_dialect.py`, `tests/test_validate_family_branch_step.py`, `tests/test_validate_family_remedies_typed.py`, `tests/test_validate_family_duplicates.py`, `tests/test_family_dry_run.py`, `tests/test_family_members_not_a_list.py`, `tests/test_family_switch_branch_exists.py`, `tests/test_family_tracking_branch.py` (the 9 that name the changed functions or codes). | run | git | result | log | |---|---|---|---| | the 17 files and the trio (`tests/test_repo_hygiene.py`, `tests/test_agents_md_codes.py`, `tests/test_cli_reference.py`) | 2.43 | **953 passed** in 656.46s | `logs/gate243.log` | | the 17 files | 2.47.1 (`git version 2.47.1` is the log's first line) | **783 passed** in 613.17s | `logs/gate247.log` | | `tests/test_path_guard_hygiene.py`, in the scratch worktree `n1127-hyg-scratch`: main `961640c68` with this `family.py` committed there as `ea72f4b98` (blob `ab41b42ec`, the same as `eac177af9`'s) | 2.43 | **49 passed** in 16.91s | `logs/hyg243.log` | The hygiene run is on a scratch commit because #1117's base, `6da757cbe`, predates #1111's `tests/test_path_guard_hygiene.py`: the file is not in `eac177af9`, and it is in main. No failure and no skip in any run. The full suite was not run. Read again on 2026-10-23 at about 11:10Z, with git 2.43.0 and no global git config, after `git ls-remote` read main at `961640c68`, #1117's branch at `10dc011c9` and this branch at `eac177af9`: | `git merge-tree --write-tree <other> eac177a` | exit | result | |---|---|---| | `origin/main` (`961640c68`) | 1 | one conflict, `docs/handbook.html` | | #1117, `10dc011c9` | 0 | clean, tree `0abd5f5d4fc2` | | #1098, `dad7961a98` | 0 | clean, tree `4ef018a9b508` | | #1166, `2593952c95` | 1 | one conflict, `docs/handbook.html` | | #1164, `74096eb47833` | 1 | one conflict, `docs/handbook.html` | - **The one conflict is #1117's own, and this commit does not touch the handbook.** #1117 alone (`git merge-tree --write-tree <other> 10dc011`) conflicts in `docs/handbook.html` and nowhere else against main, #1166 and #1164, and is clean against #1098. `git diff --name-only 10dc011 eac177a` names no file under `docs/`. - **#1164's head moved to `74096eb47833`, from `3162b523be`, after the gate run.** The gate run's merge-tree was at `3162b523be` and read the same: one conflict, `docs/handbook.html`. - **Open PRs.** 54 were listed with `gh pr list --state open --limit 100 --json number,headRefName,headRefOid,files`. Four touch `scripts/family.py`: #1166, #1164, #1117 and #1098. Of this commit's 9 files, #1117 touches 5 (`scripts/family.py` and four test files); no other PR touches a test file of this commit's. Every one of those heads is above. #1117 landed on 2026-11-08 at 19:15:56Z as `9252ef208`, from its final head `8cb9c729a` (a merge of main into its branch after `219e57c28`). Lane 5's pilot restacked this branch at 19:31Z with two real merges and no rebase: 1. `85909e973` merges #1117's final head `8cb9c729a`. 2. `24b6a0af6` merges #1117's squash `9252ef208`, taking this branch's side for the five files the squash and the branch both carry: `scripts/family.py`, `tests/test_family_add_member_id.py`, `tests/test_family_bump_to_checks.py`, `tests/test_readme_windows_quoting_sentence.py` and `tests/test_remove_add_remedies_family_root.py`. No third merge was needed: main was still `9252ef208`. The new head `24b6a0af6` differs from main in exactly this PR's 9 files, 638 insertions and 74 deletions. That change is byte for byte the one rv1201 found READY: `git diff 10dc011 eac177a` and `git diff 9252ef2 24b6a0a` have the same `+` and `-` lines and the same patch-id, `ceddd1c4ddae`. Its tree, `85563cdb`, is the one the pilot's dry run predicted. - **The `init` remedies are left as follow-ups.** `scripts/family.py` lines 558 (`Family.open`'s `family-root-missing`) and 10386 (`cmd_siblings`'s `family-root-missing`) say `` `family.py init --org <org> --family <Name>` `` with a bare `family.py`. `_family_line` always prints `--family-root`, which `init` does not take, so they need a spelling of their own. - **`member-ambiguous`'s remedy is left as a follow-up.** It is raised at line 607 and says "`remove` takes the extra one out" with no line to type, the shape N7 had in `member-already-present`. It is not in the issue. - **Three printed lines name no branch, so typed on the tracking branch they are refused** (rv1201's review, issuecomment-6372152028, SHOULD-1). (a) `add --dry-run`'s `member-duplicate-id`: under `--dry-run`, `cmd_add` skips `_checked_branch` but still asks `_checked_member_id`, and the `remove` line its remedy prints, typed on the tracking branch, is `REFUSED family-on-tracking-branch`. (b) `bump --dry-run`'s `member-duplicate-id`, the same way through `_bump_dry_run`. (c) `init`'s `family-holder-already-here` prints `_add_command`'s line between plain backticks, with no branch clause and not through `_cited`, so it is refused typed on the holder `init` just made, and a folder name that holds a backtick ends the span early. Each chain still ends in a refusal that prints its own `switch -c`. They are left as follow-ups, with rv1201's three NITs. - **The family's `org:` is the likeliest owner, not a certain one.** A member may live in another organisation (`MEMBER_RE`), and the `add` of a repository that is not there is refused before it touches the holder. `<org>` stays blank where no owner is a `--member` that `add` takes. - **The clause says "a branch other than the tracking branch".** It is worded to be true on any branch, since the refusal is said before the branch is read, so a person already off the tracking branch reads a clause that does not apply to them. - **#1117's head is expected to move before it lands** (its handbook conflict with main is its own to mend). When it does, this branch takes a merge of the new head, never a rebase, and the gates run again. It did: see "Restacked after #1117 landed". - **The runs are on the bench's Python 3.12; CI runs 3.14.** No test line this commit adds uses `ast.dump`, `repr(` or `sys.version`, so no assert reads text that depends on the Python version. - **A post-tag DRAFT.** Brett Heap ruled on 2026-10-21T10:32:04Z to leave the follow-ups out of v1.2.0. It is on the v1.2.1 milestone, and it lands after its base #1117, under his v1.2.1 merge word of 2026-10-23T13:10:26Z. Review: rv1201, lane 5's independent opus reviewer, which wrote none of #1201: READY at `eac177af`, H0 of this landing before its restack (issuecomment-6372152028), with no MUST; its one SHOULD (the Goal's claim) is fixed in the body, and its three NITs go to a follow-up. CI (Brett Heap's ruling 27 and his fast-refresh ruling of 2026-10-15T22:48:35Z): H0 24b6a0a (the restack of the branch onto main after #1117 landed) passed tests, tests-git-bash and SonarCloud; the head d1ecf81 is a clean update-branch merge of main 3ee5bb4, with tests-git-bash and SonarCloud green; and the local gate passed on its predicted squash tree 4daf6ff over main 3ee5bb4: the bump_remedies_family_root, family, family_add_member_id, family_bump_to_checks, family_printed_quoting, family_remedy_lines, readme_windows_quoting_sentence, remove_add_remedies_family_root, repo_hygiene, agents_md_codes, cli_reference sets, 512 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 #1127 Lane: openreposhape-5 (openRepoShape-5) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…`family-holder-already-here` say the branch their lines run on, and that `add` line is `_cited`, so each runs as printed from the tracking branch (#1228) (#1264) **#1228: every `add`, `bump` and `remove` line that a `family.py` remedy prints says the branch it runs on, whichever route reached the refusal. The dry runs of `add` and `bump` that end in `member-duplicate-id`, and the `family-holder-already-here` that `init` ends in, now say it as #1201 makes `member-unknown` and `member-already-present` say it, and that `add` line is `_cited`. rv1201's one surviving mutant of #1201's rows, R5, is killed.** **Built on #1201 at `eac177af` (itself on #1117 at `219e57c2`). Both have landed, and this PR is restacked on `main`** (#1117 as `9252ef208`, #1201 as `8cf6477fe`; see "Restacked after #1201 landed"). Its change is two commits: `b54520cea` (5 files, 442 insertions and 57 deletions) and the review round's `43d2e8b26`, 5 files, 503 insertions and 64 deletions in all (`git diff --stat eac177a 43d2e8b`). Against main `370a23cd2`, the restacked head `54b9cb20a` gives the same 5 files, the same lines and the same patch-id. It answers lane 5's review of #1201 (issuecomment-6372152028): SHOULD-1's optional code fix, and NIT-1 to NIT-3. At `eac177af9`, as rv1201 measured it (probes p6, p7, p9) and as this PR's rows show failing there (below), three printed lines were reached with no branch read, named none, and were refused `family-on-tracking-branch` when typed where a fresh clone stands: - **(a) `add --dry-run`'s `member-duplicate-id`.** Under `--dry-run`, `cmd_add` skips `_checked_branch` and still asks `_checked_member_id`. Its remedy printed a `remove` line and a `bump` line and no branch. - **(b) `bump --dry-run`'s `member-duplicate-id`.** `_bump_dry_run` asks `_checked_bumped_id` before anything reads the branch. Its remedy printed a `remove` line and no branch. - **(c) `init`'s `family-holder-already-here`.** Its remedy printed `_add_command`'s line between plain backticks: no branch clause, and not through `_cited`, so under a folder named with a backtick the first span ended at the path's backtick (RV1117's N6 shape). - **`scripts/family.py`, (a) and (b).** `_checked_member_id` and `_checked_bumped_id` take a keyword-only `dry_run`, false by default. `cmd_add` passes `args.dry_run`, and `_bump_dry_run` passes true. The real runs' calls (`_mount_and_pin`, and `cmd_bump`'s) are unchanged, and so are their words. Set, the remedy puts `_off_the_tracking_branch` before its line or lines and ends with `BRANCH_LEFT`, as `member-already-present` does. The clause names "`bump` and `remove` refuse" for (a), whose remedy names both lines, and "`remove` refuses" for (b). Its `switch -c` names `family/remove-<id>`, the branch the `remove` line's own refusal names, so the clause and the refusal after it agree. - **`scripts/family.py`, (c).** The remedy now says the clause with `init`'s own `git -C <holder> switch -c family/add-<Project>`, then the `add` through `_cited`, then `BRANCH_LEFT`. The issue left the branch word to the owner. This PR takes `family/add-<Project>`, bare, as the NEXT STEPS block prints it: quoted, it would read as a value. - Two helpers carry it. `_add_branch_switch` spells that `switch -c` line, and NEXT STEPS now calls it too, with the same bytes as before. `_branch_clause` holds the clause's words around a `switch -c` line already spelled, and `_off_the_tracking_branch` now calls it. - The code comments at the two `member-duplicate-id` asks and `_off_the_tracking_branch`'s docstring now say that a dry run states the refusal before the branch is read, and a real run after it. - **`tests/test_readme_windows_quoting_sentence.py`.** `NAMED` moves one host-quoter call from `_print_next_steps` to `_add_branch_switch`, and `FAMILY_LINES` moves the `switch -c` kind with it. README's sentence already lists `switch -c`, so README.md and `docs/handbook.html` are unchanged. The changed remedies' words appear in no doc. The release notes name `member-duplicate-id` as a code (v1.0.0) and the `family/add-<Project>` spelling (v1.1.0). AGENTS.md and `templates/family-root/` show `git -C <path> switch -c family/add-<Project>` as NEXT STEPS print it. None of that changes. - **`tests/test_family_remedy_lines.py`.** The new rows type each line as printed from the tracking branch. Typed alone, each line is refused `family-on-tracking-branch`. Typed after the clause's `switch -c`, it exits 0, and the holder is clean and its gate green: - (a): `test_add_dry_runs_duplicate_id_lines_run_from_the_tracking_branch`, `[remove]` and `[bump]`; - (b): `test_bump_dry_runs_duplicate_id_remove_runs_from_the_tracking_branch`; - (c): `test_init_holder_already_heres_add_runs_as_printed_after_its_switch`, `[plain]` and ``[a`b]``. - **NIT-1:** `test_a_rows_name_with_a_space_is_one_word_in_both_lines` now asserts the `switch -c` line, `family/bump-irrs`, which is built from the row's `id:`. That kills R5, which builds it from the name and gets `family/bump-member`. - **NIT-2:** `typed()`'s docstring says that it asserts the interpreter's name and does not look it up on PATH. - **`tests/test_family_bump_to_checks.py`.** Its two `member-duplicate-id` rows used to assert that both runs print the same words. They now pin the real run's words as at `eac177af9` and the dry run's with the clause (`both_refused`, `duplicate_id_refusal(dry_run=True)`). - **`tests/test_family_dry_run.py`.** `duplicate-id` leaves the parametrized "same under `--dry-run`" row and gets a row of its own, `test_add_dry_runs_duplicate_id_names_the_branch_the_real_run_has_read`. It pins the same code, detail, stdout and exit for both runs, and the dry run's remedy as the real one with the clause added and `BRANCH_LEFT` at the end. - **NIT-3 is left.** `member-already-present` still suggests `family/bump-<id>` for both of its lines. (a)'s clause likewise names one branch, `family/remove-<id>`, for both its `remove` and its `bump`. Either branch works for both verbs, since anything but the tracking branch does. rv1264 (opus) found this PR READY at `b54520cea` with two NITs (issuecomment-6724775227). The round's commit, `43d2e8b26`, is the PR's second: 2 files, 67 insertions and 13 deletions (`git diff --stat b54520c 43d2e8b`), `scripts/family.py` and `tests/test_family_remedy_lines.py`. With both commits the change is 5 files, 503 insertions and 64 deletions (`git diff --stat eac177a 43d2e8b`). The Goal, `What held on #1201's head`, `What changed` and `Rows that fail on #1201's head` describe `b54520cea`, the first commit. Mutants, Runs, Merge-trees and one bullet of Limits are read again at `43d2e8b26`. - **NIT-1: the fourth bare `"Remediation: "`.** SonarCloud reported it on this PR as python:S1192 (key `AaG7-FM2kL7yTWvgodeV`): the (c) hunk's `"Remediation: "` at `scripts/family.py:2530` was a fourth copy of that literal after #1201's three (`:1713`, `:6577`, `:9497`). `_landing` now builds the clause first, ``clause = _branch_clause(_add_branch_switch(into / family), "`add` refuses")``, and the third argument of the `Refusal` starts `f"Remediation: {clause}"`. #1201's three are untouched, and `grep -n '"Remediation: "' scripts/family.py` lists exactly those three. SonarCloud's analysis of `43d2e8b26` is not read here. - **The refusal's words are byte for byte what they were.** A probe (`probe/remedy.sh`) ran `init` over a family folder that already holds its holder, once with `b54520cea`'s `family.py` and once with this commit's, swapped into the same detached tree, from the same working directory and by the same script path, for a plain folder and for one named ``a`b``. The two refusal lines (the `REFUSED` line and the remediation) are identical under `cmp`: plain 1156 bytes, ``a`b`` 1148 bytes, each with exit 2 and an empty stdout. The swapped run printed one `WARNING ... DIRTY` line before them, which the swap itself caused (it dirtied that tree); the file was restored with its sha256 checked (`88ad8766f4e2...`) and `git status` clean. - **The rows that pin the text pass.** `test_init_holder_already_heres_add_runs_as_printed_after_its_switch[plain]` and ``[a`b]`` compare the remediation with the expected words and pass at `43d2e8b26` (gate A, below), on git 2.43.0 and 2.47.1. - **NIT-2: M10a and M10b are killed.** They survived because every fixture row's `id:` is its name lowercased, so a branch built from the name is the same word. Two rows in `tests/test_family_remedy_lines.py`, after (a) and (b)'s dry-run rows, rename a row by hand to a valid name that is not its id, and assert the clause's `switch -c` line as printed: - `test_add_dry_runs_clause_branch_is_made_from_the_rows_id`: `IRRS` renamed `Orrs`. `add --dry-run` of `IRRS2` is refused `member-duplicate-id`, and the clause names `family/remove-irrs`, not `family/remove-orrs`. - `test_bump_dry_runs_clause_branch_is_made_from_the_other_rows_id`: `IRSS` renamed `Osss`. `bump --dry-run` of `IRRS` to the commit whose `project.yaml` records `irss` is refused the same way, and the clause names `family/remove-irss`, not `family/remove-osss`. - The hand edit of the row's `project:` line is a helper, `renamed_by_hand(holder, project, name)`, which the ``IR RS`` row (RV1201's NIT-1) now calls too, so it is written once. That row's asserts are unchanged. - **Each row fails on its mutant and passes at the head.** M10a alone fails the first row and only that row (`family/remove-orrs` against `family/remove-irrs`), and M10b alone fails the second row and only that row (`family/remove-osss` against `family/remove-irss`): 1 failed, 18 passed in each run of the file's 19 ids. `scripts/family.py` came back to sha256 `b7f0d8c5f2db...` after each, with `git status` clean. - **Both rows fail on #1201's production code.** With `eac177af9`'s `family.py` (sha256 `b8199379c23f...`) swapped in under this commit's tests, in the same detached tree: 2 failed, each on `[] == [the switch line]`, since #1201's dry runs print no clause. Restored (sha256 `b7f0d8c5f2db...`), `git status` clean. #1201 landed as the squash `8cf6477fe`. Its final head was `d1ecf815`, a fast refresh of `24b6a0af`. #1117 had landed before it, as `9252ef208`, and #1201's head already carried #1117's final head, its squash and main (`85909e973`, `24b6a0af6`, `d1ecf8159`), so the first step of the restack plan this body named on 2026-11-08 was #1201's own. Once #1201's branch was deleted, GitHub retargeted this PR to `main`, where it was CONFLICTING. The restack is three merges on top of `43d2e8b26`, with no rebase, amend or force: | step | merged | commit | result | |---|---|---|---| | 1 | #1201's final head `d1ecf815` | `5b5e652a9` | clean; tree `913e2e4b5`, as `git merge-tree` predicted | | 2 | #1201's squash `8cf6477fe` | `db82ce1d4` | 21 blocks in 4 files, all #1201's own, each resolved to this branch's side; the tree stays `913e2e4b5` | | 3 | main `370a23cd2` (#1164) | `54b9cb20a` | clean, no block to resolve; tree `245b4d057`, as `git merge-tree` predicted on git 2.43.0 and 2.47.1 | - **Step 2's resolutions.** The 21 blocks are 7 in `scripts/family.py`, 2 in `tests/test_family_bump_to_checks.py`, 10 in `tests/test_family_remedy_lines.py` (add/add) and 2 in `tests/test_readme_windows_quoting_sentence.py`. All four are files of #1201's squash. Each block takes this branch's side, because that side already holds all of #1201: step 1 merged `d1ecf815`, and the squash's tree is `d1ecf815`'s tree (`4daf6ffbc` both). So the merge changed no file (`git diff 5b5e652 db82ce1` is empty). The blocks arise only because the squash has another history, so git meets #1201's lines from both parents. - **Step 3.** Main was still the squash itself when steps 1 and 2 were made, so step 3 was first a no-op. #1164 (for #1110, lane 1's) landed after, as `370a23cd2`. It changes `scripts/family.py` (121 insertions, 19 deletions), `templates/family-root/scripts/siblings.py`, `tests/test_family_gitmodules_unreadable.py` (new) and `tests/test_path_guard_hygiene.py`. Git merged `scripts/family.py` by itself, and no block needed a resolution: - #1164's hunks are the `.gitmodules` readers (`_gitmodules_on_disk`, `_gitmodules_names`, `_sections_giving`, `_stages_as`), `PinRollback`, and two new constants. None is one of this PR's functions. - #1164 gives `_stages_as` a third argument, and nothing in this PR calls it. - `gitmodules-unreadable`'s remedy names no `add`, `bump` or `remove` line, so #1228's rule does not reach it. - Main's side arrives whole: `git diff db82ce1 54b9cb2` has #1164's own patch-id (`6e4840bd5eb9` stable, `f7efc1a3949e` verbatim, as `git diff 8cf6477 370a23c` has). - **The diff is the reviewed one.** The PR's diff against main is rv1264b's reviewed change, `eac177af9..43d2e8b`, line for line: | diff | files | lines | `git patch-id --stable` | `--verbatim` | |---|---|---|---|---| | reviewed, `git diff eac177a 43d2e8b` | 5 | +503/-64 | `1b6607fb4fb6` | `cd18d2c2923a` | | restacked, `git diff 370a23c 54b9cb2` | 5 | +503/-64 | `1b6607fb4fb6` | `cd18d2c2923a` | - Per file, both ids match for each of the five: `scripts/family.py` `c7ba1df7d359`/`5493f2e74dc9`, `tests/test_family_bump_to_checks.py` `aae56e7a6cc6`/`1f54d542931a`, `tests/test_family_dry_run.py` `b616211c203d`/`9e7124f21c75`, `tests/test_family_remedy_lines.py` `1820a6895cf4`/`9f3e05c13738`, `tests/test_readme_windows_quoting_sentence.py` `dc8eb3e39264`/`1d81e0e45ca9`. The same ids come out of git 2.43.0 and 2.47.1. - The four test files have the same blobs on both sides of both diffs. - `scripts/family.py`'s pre-image is main's, so its hunks start later by the lines main added above them: 6 lines (#1166's `105b5daf9`, for #1139) up to `cmd_add`, and 89 from `_checked_bumped_id` on (46 more from #1098's `ac5f28d2a`, for #1086, 37 from #1164). With the `index` lines and the hunk line numbers masked, the two diffs are byte-identical (888 lines); unmasked, they differ in 34 lines, all `index` and `@@` lines. - No hunk differs, so no file's patch-id changed, and no resolution in the three merges touched this PR's lines. - **The PR lists 12 commits now.** A squash does not carry its branch's commits by ancestry, so GitHub also lists #1117's and #1201's own commits (`10dc011c9`, `eac177af9`, `219e57c28`, `8cb9c729a`, `85909e973`, `24b6a0af6`, `d1ecf8159`) beside this PR's two and its three merges. Its diff is the 5 files above. The commit's new and changed rows (73 ids: the 5 new `test_family_remedy_lines.py` ids and the NIT-1 row, the 2 `test_family_bump_to_checks.py` rows, `test_family_dry_run.py`'s new row and the 18 ids of its parametrized row, and the 46 ids of `test_readme_windows_quoting_sentence.py`) were run with `eac177af9`'s `scripts/family.py` (sha256 `b8199379c23f...`) swapped in under this commit's tests, in a second worktree. The file was restored after the run and its sha256 checked: `88ad8766f4e2...`, matching, with `git status` clean. Result: **9 failed, 64 passed**, every failure an `AssertionError` on the remedy text: | row | on `eac177af9`'s `family.py` | |---|---| | (a) `[remove]`, `[bump]` | fail: the remedy ends "...not in the family." with no clause and no `BRANCH_LEFT` | | (b) | fail, the same way | | (c) `[plain]`, ``[a`b]`` | fail: the remedy ends "There is no --force." with no clause | | `test_family_dry_run.py`'s new row | fail, as (a) | | the 2 `test_family_bump_to_checks.py` rows | fail on the dry run's assert; the real run's assert just before it passes, so the real run's words are unchanged | | `NAMED[scripts/family.py]` | fail: there is no `_add_branch_switch` | | the NIT-1 row, the 18 parametrized ids, the other 45 sentence ids | pass, as they should: #1201 already builds the branch from the `id:` (the assert kills R5, below), and the rest pin unchanged behaviour | Each was applied alone in the second worktree at `b54520cea` (clean), run through lane 5's runner, and restored, with the sha256 of every touched file checked and `git status` clean after each. The #1228 mutants ran against all 73 ids above (84 with the rest of `test_family_remedy_lines.py`); M8 also ran against `tests/test_git_bash_dialect.py` and `tests/test_family_switch_branch_exists.py`, which read NEXT STEPS. | id | mutation | result | |---|---|---| | M1 | (a)'s clause dropped | killed, 3: (a) `[remove]`, `[bump]`, `test_family_dry_run.py`'s new row | | M2 | (b)'s clause dropped | killed, 3: (b), the 2 `test_family_bump_to_checks.py` rows | | M3 | (c)'s clause dropped | killed, 2: (c) `[plain]`, ``[a`b]`` | | M4a | `dry_run` ignored in `add` (always false) | killed, 3, as M1 | | M4b | `dry_run` ignored in `bump` (always false) | killed, 3, as M2 | | M5 | (c) without `_cited`: the `add` between plain backticks | killed, 1: (c) ``[a`b]`` | | M6 | (a)'s branch is `bump`'s, not `remove`'s | killed, 3, as M1 | | M7 | (a) without `BRANCH_LEFT` | killed, 3, as M1 | | M8 | (c)'s placeholder branch quoted for the shell | killed, 2: (c) both; the two NEXT STEPS files pass (the shell reads the quoted word the same) | | M9 | (c) without `BRANCH_LEFT` | killed, 2: (c) both | | M10a | (a)'s branch from the row's name, not its `id:` | **killed**, 1: `test_add_dry_runs_clause_branch_is_made_from_the_rows_id` (it survived at `b54520cea`, 84 passed) | | M10b | (b)'s branch from the row's name, not its `id:` | **killed**, 1: `test_bump_dry_runs_clause_branch_is_made_from_the_other_rows_id` (it survived at `b54520cea`, 84 passed) | | M11 | (a)'s `dry_run` inverted: the real run gets the clause | killed, 3, as M1 | | M12 | (c)'s `switch -c` names `--into`, not the holder | killed, 2: (c) both | | M14 | (a)'s clause names one verb, "`remove` refuses" | killed, 3, as M1 | | M15 | `_branch_clause` prints its `switch -c` bare | killed, 11, across every clause row | | M3b | NIT-1's `f"Remediation: {clause}"` without its clause | killed, 2: (c) `[plain]`, ``[a`b]`` | | R1 | rv1201's: `_cited` always prints the command bare | killed, 15 of the file's 17 | | R2 | rv1201's: the typed owner is the first path segment | killed, 6 | | R3 | rv1201's: `_family_line` quotes for `sh` on every host | killed, `NAMED[scripts/family.py]` | | R4 | rv1201's: `member-already-present` loses its clause | killed, 4 | | R5 | rv1201's: `member-already-present`'s branch from the name | **killed** by NIT-1's assert, `test_a_rows_name_with_a_space_is_one_word_in_both_lines` (it survived at `eac177af9`) | | R6 | rv1201's: `member-already-present` names the typed project | killed, 4 (3 in `test_family.py`) | | R7 | rv1201's: README and the handbook drop `cd` from the sentence | killed, `test_the_kinds_of_family_lines_are_the_ones_the_sentence_lists` | M1 to M9 are n1228's, and they cover the issue's list: the clause dropped from each of (a), (b) and (c), `dry_run` ignored, and `_cited` dropped from (c). M10a to M15 are the first commit's own, and M3b the second's. R1 to R7 are rv1201's again: R1 to R6 against `test_family_remedy_lines.py`, with R6 also against `test_family.py`'s spelling row, and R3 and R7 against the sentence file. `scripts/family.py` came back to sha256 `88ad8766f4e2...` after each run, README.md to `71d9fecafbd6...` and `docs/handbook.html` to `1d01f0823e60...` after R7, and `git status` was clean after the last one. At `43d2e8b26`, M10a, M10b and M3b each ran alone in the same detached tree, clean at that commit, over `tests/test_family_remedy_lines.py`'s 19 ids (1 failed and 18 passed, 1 failed and 18 passed, 2 failed and 17 passed), with `scripts/family.py` back to sha256 `b7f0d8c5f2db...` after each and `git status` clean after the last. The other rows' results are those of `b54520cea`, which rv1264 re-ran and matched. ### At the restacked head `54b9cb20a` (after #1201 landed) All through lane 5's `run10.sh`, in the environment the next section names. Every `START` line reads `head=54b9cb20ac18be672fedad4f69e648f97a85e4e8` and `dirty=0`, on Python 3.12.3, with git-filter-repo 2.47.0 (CI's pin) on PATH. Each run held at most 100 ids, taken from a fresh collect at the head. The 2.47.1 runs put lane 5's git 2.47.1 first on PATH, and each log's first line reads `git version 2.47.1`. - **The gate** (32 files, 1712 ids, 18 runs on each git): - this PR's four test files; - every file that names `family.py`'s remedy lines or the codes and functions this PR changes, and `test_windows_paths.py` for the family landing: `test_bump_remedies_family_root.py`, `test_remove_add_remedies_family_root.py`, `test_family.py`, `test_family_add_member_id.py`, `test_family_printed_quoting.py`, `test_family_init_landing.py`, `test_family_init_values.py`, `test_family_members_not_a_list.py`, `test_family_bump_to_a_tag.py`, `test_family_switch_branch_exists.py`, `test_family_tracking_branch.py`, `test_git_bash_dialect.py`, `test_branch_left_bump_leg_setup.py`, `test_bump_leg_paste_lines.py`, `test_dry_run_parity.py`, `test_windows_paths.py`, and the `test_validate_family_*` five (`branch_step`, `duplicates`, `remedies_typed`, `typed_states`, `unnamed_mounts`); - the hygiene five (`test_repo_hygiene.py`, `test_agents_md_codes.py`, `test_cli_reference.py`, `test_pinned_copy_text.py`, `test_path_guard_hygiene.py`) and `tests/test_no_auto_maintenance.py`; - and #1164's new `tests/test_family_gitmodules_unreadable.py`. - **#1164's `family.py` files** (2 files, 106 ids, 2 runs on each git): `tests/test_family_py_unreadable.py` and `tests/test_family_bump_remove_rollback.py`. #1164's own gate ran them for the `family.py` code it changes, so main's side is shown to hold on the merged tree. | run | git | result | logs | |---|---|---|---| | the gate, 1712 ids in 18 runs | 2.43.0 | **1691 passed, 21 skipped**, none failed (1056.2s in all) | `work/n1228g/logs/g243-gate-part-00.log` to `-17.log` | | the gate, 1712 ids in 18 runs | 2.47.1 | **1691 passed, 21 skipped**, none failed (1047.2s in all) | `work/n1228g/logs/g2471-gate-part-00.log` to `-17.log` | | #1164's two `family.py` files, 106 ids in 2 runs | 2.43.0 | **106 passed** (99.6s) | `work/n1228g/logs/g243-extra-part-00.log`, `-01.log` | | #1164's two `family.py` files, 106 ids in 2 runs | 2.47.1 | **106 passed** (98.1s) | `work/n1228g/logs/g2471-extra-part-00.log`, `-01.log` | - **The 21 skips are the same on both gits:** - 16 at `tests/test_family_init_values.py:229`: "this template quotes the placeholder: the run is fine, and test_a_quoted_value_is_held_as_typed runs it"; - 3 at `tests/test_family_init_values.py:301`: "this template quotes `id:`: the derived id reads back"; - 2 at `tests/test_no_auto_maintenance.py:222`: "the session began with GIT_CONFIG_GLOBAL set, and its file includes that one" (the runner sets `GIT_CONFIG_GLOBAL=/dev/null`). - **No run failed, and none was run again.** `tests/test_family_dry_run.py::test_bump_dry_run_of_a_repair_to_the_pinned_commit_is_a_move[digest]`, which failed once before the restack (see Limits), passed on both gits. The full suite was not run. ### Before the restack (`b54520cea` and `43d2e8b26`) All through lane 5's `run10.sh`: a `gh` stub first on PATH, `GH_TOKEN` bogus, an empty `GH_CONFIG_DIR`, a blank git identity, `GIT_SSH_COMMAND=false`, `GIT_CONFIG_GLOBAL=/dev/null`, `EMAIL` exported, and git-filter-repo 2.47.0 (CI's pin) on PATH. Every `START` line reads `head=b54520cea716b44df1a95139a46901a478d616fd` and `dirty=0`, with three exceptions. The swapped run and each mutant read `dirty=1`, the one file changed, except R7, which changes two and reads `dirty=2`. The predicted merge's run names its own head. Python 3.12. The second commit's runs, marked in the table, read `head=43d2e8b26...` and `dirty=0`, except the mutants' and the swapped runs, which read `dirty=1`, and the pre-commit run of the new rows, which read `head=b54520cea...` and `dirty=2`. - **Gate A** (13 files): the issue's eight (`test_family_remedy_lines.py`, `test_readme_windows_quoting_sentence.py`, `test_remove_add_remedies_family_root.py`, `test_bump_remedies_family_root.py`, `test_family.py`, `test_family_add_member_id.py`, `test_family_bump_to_checks.py`, `test_family_printed_quoting.py`), `test_family_dry_run.py`, which this commit changes, and four of the hygiene five (`test_repo_hygiene.py`, `test_agents_md_codes.py`, `test_cli_reference.py`, `test_pinned_copy_text.py`). The fifth, `test_path_guard_hygiene.py`, is not at this head. #1201 sits on #1117's older head `10dc011c9`, whose base `6da757cbe` predates #1111. #1117's current head, `219e57c28`, has it from its merge of main. It runs on the predicted merge instead. - **Gate B** (9 files), which name the changed functions and codes: `test_family_init_landing.py`, `test_git_bash_dialect.py`, `test_family_switch_branch_exists.py`, `test_family_tracking_branch.py`, `test_validate_family_branch_step.py`, `test_validate_family_remedies_typed.py`, `test_validate_family_duplicates.py`, `test_family_members_not_a_list.py`, `test_family_bump_to_a_tag.py`. | run | git | result | log | |---|---|---|---| | the commit's new and changed rows (73 ids) | 2.43.0 | **73 passed** in 69.23s | `logs/rows.log` | | the same 73 ids, `eac177af9`'s `family.py` swapped in | 2.43.0 | **9 failed, 64 passed** (above) | `logs/baserows.log` | | gate A | 2.43.0 | 1 failed, 662 passed in 413.56s (the one failure is in Limits) | `logs/gateA243.log` | | gate A again | 2.43.0 | **663 passed** in 509.19s | `logs/gateA243b.log` | | gate A | 2.47.1 | **663 passed** in 421.81s | `logs/gateA247.log` | | gate B | 2.43.0 | **389 passed** in 261.02s | `logs/gateB243.log` | | gate B | 2.47.1 | **389 passed** in 340.68s | `logs/gateB247.log` | | gate A, gate B and `test_path_guard_hygiene.py` (23 files) on the predicted merge, scratch commit `e22074def` (below), `head=e22074def...` | 2.43.0 | **1174 passed** in 790.16s | `logs/merged243.log` | | the row that failed once, alone, 10 runs of its 2 ids | 2.43.0 | **20 of 20 passed** | `logs/rep-head243-*.log` | | *The review round, `43d2e8b26`:* the two new rows and the ``IR RS`` row, before the commit (tree dirty) | 2.43.0 | **3 passed**, 16 deselected in 7.50s | `work/n1228e/logs/newrows-head.log` | | the two new rows, `eac177af9`'s `family.py` swapped in | 2.43.0 | **2 failed**, 17 deselected | `work/n1228e/logs/newrows-on-eac177af9.log` | | M10a, M10b, M3b, each alone, over `tests/test_family_remedy_lines.py` | 2.43.0 | 1 failed 18 passed; 1 failed 18 passed; 2 failed 17 passed | `work/n1228e/logs/mut-*.log` | | gate A (13 files), the head | 2.43.0 | **665 passed in 379.55s** | `work/n1228e/logs/gateA243.log` | | gate A (13 files), the head | 2.47.1 | **665 passed in 372.06s** | `work/n1228e/logs/gateA247.log` | | gate A and `tests/test_path_guard_hygiene.py` (14 files) on the predicted restack, scratch commit `f168938c4`, `head=f168938c4...` | 2.43.0 | **787 passed in 401.58s** | `work/n1228e/logs/restack243.log` | | `tests/test_family_init_landing.py`, the file of `family-holder-already-here`'s detail | 2.43.0 | **19 passed in 8.34s** | `work/n1228e/logs/init-landing243.log` | The 2.47.1 runs put lane 5's git 2.47.1 first on PATH, and each log's first line reads `git version 2.47.1`. No run had a skip. The full suite was not run. Gate A of the second commit is 665 ids, the first commit's 663 and the two new rows; git-filter-repo 2.47.0 (CI's pin) was on PATH in every run. `tests/test_path_guard_hygiene.py` is still not at this head (see Gate A above), so gate B (the first commit's 9 files) was not run on the second commit, which the brief did not ask for. It changes `_landing`'s remedy and one test file only. Read on 2026-11-09 at 23:00:17Z, after fetching main at `370a23cd2`, with every open PR's head read from `gh pr list` (38 open). Of them, one other touches this PR's five files: #1274 (`scripts/family.py`). The results are the same on git 2.43.0 and 2.47.1. | `git merge-tree --write-tree <other> 54b9cb2` | exit | result | |---|---|---| | main, `370a23cd2` | 0 | clean, tree `245b4d057fef`: the restacked head's own tree, since main is its parent | | #1274, `136b38d12` | 0 | clean, tree `907bfe588d05` (with main: clean, `cdbdd63151f0`) | - **The other 36 open PRs merge with this head as they merge with main.** Each head was merged with `54b9cb20a` and with `370a23cd2`. 34 are clean both ways. #1209 conflicts both ways in `tests/test_adopt_plan_paths_spelled.py`, and #1237 in `adopt-project.py` and `tests/test_adopt_check_throwaway_repos.py`. Neither is one of this PR's files, so neither conflict is this PR's. - **The restack plan this body named on 2026-11-08 is done.** #1117 landed as `9252ef208` and #1201 as `8cf6477fe`, and #1201's head had taken #1117's three merges. This branch took #1201's three ("Restacked after #1201 landed"). Read from `gh pr view` after the push, at 23:21:05Z: the base is `main`, GitHub gives the PR as MERGEABLE with 5 files and 12 commits, and `closingIssuesReferences` lists #1228 only. - **Before the restack,** on 2026-11-08 at about 17:55Z, `43d2e8b26` merged cleanly with #1201's and #1117's heads, and conflicted with main and with #1164's head only in `docs/handbook.html`, the stack's conflict, which #1117's head mended (`work/n1228e/logs/merge-trees-2.log`). The predicted restack on main `9729315f1` (scratch commit `f168938c4`) was clean, and its gate passed (787 passed, in Runs). - **The clause's branch is built from the row's `id:`, and two rows now tell it from the name** (mutants M10a and M10b, killed since `43d2e8b26`; see the review round). Every other fixture row's id is its project lowercased, so only a row renamed by hand tells them apart. The old gap was harmless in effect, as rv1201 found for R5: the clause's `switch -c` need only leave the tracking branch. - **NIT-3 is left** (above). It is the same question as (a)'s one branch for two verbs. - **The interpreter is asserted, not looked up** (NIT-2). The docstring says so. rv1201 typed the lines through bash, dash and zsh with `python3` from PATH, 12 of 12. - **The clause says "a branch other than the tracking branch".** It is worded to be true on any branch, as #1201's is, since a dry run says the refusal before the branch is read. A person already off the tracking branch reads a clause that does not apply to them. - **`init`'s `<Project>` stays a placeholder** in the clause's `switch -c`, as NEXT STEPS print it. `add`'s own refusal names the branch lowercased; any spelling works. - **One row failed once, in code this commit does not touch.** In the first gate A on 2.43, `tests/test_family_dry_run.py::test_bump_dry_run_of_a_repair_to_the_pinned_commit_is_a_move[digest]` failed: - **What it saw.** The dry run said it would commit the repair. The real run then said `nothing to do: InkRouter/IRRS is already pinned at ab0fea7e32a2 and every fact agrees.` and exited 1. - **Where that is decided.** The real run's answer comes from `_nothing_to_record`, a `git diff --quiet HEAD` made after `write_lf` rewrites `family.yaml` in place. The row's hand edit keeps the file's size. - **The commit leaves that path alone.** It changes no code of `_nothing_to_record`, `_rewrite_members`, `force_stage` or `tree_digest`. Its only `tree_digest` lines are one sentence of `_bump_dry_run`'s docstring, rewrapped. The row has no duplicate id, so the `dry_run` flag in `_checked_bumped_id` never shows. - **Every other run passed it:** the second gate A on 2.43, gate A on 2.47.1, the predicted merge's run, and 20 of 20 runs alone. - **The cause is not found.** A probe of the plain race (a same-size, in-place rewrite right after `git add` and `git commit`, then `git diff --quiet HEAD`) missed none of 200 rewrites on 2.43.0 and none of 200 on 2.47.1. The failure's log is `logs/gateA243.log`, and the probe is `probe/racy.py`. - **`tests/test_path_guard_hygiene.py` runs at the head now.** Before the restack it was not at the PR's head and ran on the predicted merges only (see Runs). This PR adds no file-system guard: its `family.py` hunks add no `is_file`, `is_dir`, `exists`, `is_symlink` or `os.path` call. - **The runs are on the bench's Python 3.12; CI runs 3.14.** No test line this commit adds uses `ast.dump`, `repr(`, `sys.version` or `!r`. The 442 added lines are ASCII and at most 79 columns. None of the commit's new asserts joins conditions with `and` or `or`. The one such assert in `test_family_dry_run.py` (line 1431) is `eac177af9`'s line 1394, moved down. - **Not run:** the full suite, a real Windows host, and macOS. - **#1117 and #1201 have landed,** and the restack plan this body named is done ("Restacked after #1201 landed"). Review: rv1264, lane 5's independent opus reviewer, which wrote none of #1264: READY at `b54520ce` (issuecomment-6724775227), with no MUST or SHOULD and two NITs; the review round `43d2e8b2` fixes both. Then rv1264b, lane 5's independent sonnet reviewer, which wrote none of it: READY at `43d2e8b2` (issuecomment-6725329517); its NIT-A (the Goal paragraph) is corrected in the body. Then rv1264c, lane 5's independent sonnet reviewer, which wrote none of it: READY at `54b9cb20`, the restack onto main, with no MUST or SHOULD (issuecomment-6754554921); the PR's diff is the reviewed change by patch-id. `tests` at `54b9cb20` failed only on the 13 rows of tests/test_adopt_symlink_target_bytes.py that #1189 broke on main and #1293 fixed, so the head was refreshed onto the fixed main as `2c72492e` (a merge only), H0 of this landing once its own checks pass. CI (Brett Heap's ruling 27): H0 is the head 2c72492 itself, which passed tests, tests-git-bash and SonarCloud; main has touched none of its files since its base a20d4bd; and the local gate passed on its predicted squash tree 597f402 over main f981468: the family_bump_to_checks, family_dry_run, family_remedy_lines, readme_windows_quoting_sentence, validate_family_unreadable, path_guard_hygiene, pinned_copy_text, no_auto_maintenance, repo_hygiene, agents_md_codes, cli_reference sets, 653 passed, 2 skipped. 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 #1228 Lane: openreposhape-5 (openRepoShape-5) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…blems against its source, in the order a person mends them (another repository, a refused name, a moved source, an unanswered entry), so `check`'s first finding is `execute`'s refusal for each pair (#1113) (#1210) **Stacked on #1125.** This PR's base is `fix/1020-bad-id-first-problem` (#1125's branch, head `9549006f`). It lands after #1125 and stays a draft until then. #1125 makes `check`'s first finding `execute`'s first refusal for a bad `id:` or `org:`. This PR extends that rule to the four pairs #1113 measured, which have neither. **Fix round.** The first gate failed six rows of `tests/test_adopt_relative_submodule_url.py` that pinned `check`'s old order on a plan hand-edited into another organisation, the relative url before `plan-not-the-source`, a plan `execute` already refused `plan-not-the-source` first on #1125's head; they now expect `plan-not-the-source` first, and a new row asserts that both commands name it first. ## The rule and the order One generator, `_against_its_source`, asks a plan's four problems against its source in one order, and both commands read it. `execute` refuses its first problem. `check` lists each one, in that order and in its own words, before the split branch and the entries. The order is the one a person mends them in: 1. a plan for another repository (`plan-not-the-source`); 2. a name the naming policy refuses (`naming-unclassified`, or `naming-role-mismatch`); 3. a source that has moved on since `plan` (`plan-stale`); 4. an unanswered entry (`plan-unresolved`). Why this order: - **An unanswered entry last.** Each of the first three is mended by running `plan` again, as its remediation says, and a fresh plan takes back every answer given before. An answer given first would be lost. - **Another repository first.** Nothing in such a plan is this source's own: it is mended by `plan` under the source's own name, or from the source it is about. And `execute` must ask the naming policy nothing about the plan's names, and no remote anything, before it refuses it (#499). `_against_its_source` is a generator, so `execute` asks nothing after the first problem, and that still holds. - **A refused name before a moved source.** The name is mended by `plan` given another `--project`, or after the source is renamed on GitHub. That run reads the source as it is now, so it mends the moved source too. `plan` run again as it was, for the moved source, would leave the name to mend. - **The least change to each command.** The order keeps `execute`'s order for the plan's names (#499, #716) and `check`'s order of a moved source before its entries. Only the pairs that disagreed change. ## Before and after Measured on #1125's head `9549006f` and on this head, with a stub `gh` (exit 97), `GH_TOKEN=bogus`, an empty `GH_CONFIG_DIR`, `GIT_SSH_COMMAND=false`, a proxy that goes nowhere, an empty global git config and `--local-remote-dir`. No run made a leg. `check` exits 1 and `execute` exits 2 in every row. | The plan holds | `check` before | `execute` before | both, here | |---|---|---|---| | a moved source and an unanswered entry (#1113) | `plan-stale` | `plan-unresolved` | `plan-stale` | | another repository and an unanswered entry (#1113) | `plan-unresolved` | `plan-not-the-source` | `plan-not-the-source` | | another repository and a moved source (#1113) | `plan-stale` | `plan-not-the-source` | `plan-not-the-source` | | a refused name and an unanswered entry (#1113) | `plan-unresolved` | `naming-unclassified` | `naming-unclassified` | | a refused name and a moved source (not in #1113's table) | `plan-stale` | `naming-unclassified` | `naming-unclassified` | | all four | `plan-stale` | `plan-not-the-source` | `plan-not-the-source` | | another repository and a refused name | `plan-not-the-source` | `plan-not-the-source` | `plan-not-the-source` (unchanged) | The fifth row is not in #1113's table, but the two commands disagreed there too, and the same rule decides it. The same probe, comparing each command's output before and after, with paths and hashes masked: - A plan with one of the four problems: both commands print the same stderr and stdout before and after. - Both commands' stdout is the same before and after in every row. - `check`'s stderr in each pair row holds the same lines as before, reordered: the same findings and the same remediation lines. - `execute`'s stderr changes in one row only, a moved source beside an unanswered entry: `REFUSED plan-stale`, in its own words, where it said `REFUSED plan-unresolved`. No refusal's code or wording changes, and no code is added. Re-run on this head after the fix round, the probe gives the same: the 24 plans (these 11, and the 13 of the next section) each get one first problem from both commands, no run makes a leg, and the comparison with #1125's head is the one above, line for line. ## #1113's suspected case: a `--work-dir` that cannot be written Measured on #1125's head and on this head, the two commands agree in every row, and nothing here changes it: - **A bad `id:` or `org:` beside a `--work-dir` this user cannot write in** (`chmod 500`): `plan-bad-id` or `unsafe-value` to both. #1125's review round 1 (RV1125's SHOULD-1) made both commands ask the two before `_work_root`, which settled this case. - **Each of the 11 plans above beside the same `--work-dir`:** `adopt-work-dir-unwritable` first to both. ## What changed, in `adopt-project.py` - **`_against_its_source` and `_Unmended` (new).** `_against_its_source` is the rule. It asks: - `_refuse_a_plan_for_another_repository`; - `_check_names`, given the source only where the plan names no other repository, as `check` gave it (#716); - `_refuse_an_unrunnable_plan`. It yields each problem as an `_Unmended`: the `Refusal` `execute` refuses it with, and `check`'s FINDING lines and remediation for it, in `check`'s words as they were. `check` lists an unanswered entry with the entries, each by its path (`_leg_findings`), after the rule's problems. - **`cmd_execute`.** It refuses the first problem, `next(_against_its_source(...))`. Before, it called `_refuse_a_plan_for_another_repository`, `_check_names` and `_refuse_an_unrunnable_plan` in turn. - **`cmd_check`.** It lists the rule's findings right after the Triad advisory, where it listed a moved source. Another repository and the names are no longer listed after the entries. Three things are still asked where they were, and only where no name was refused: - the names' classification lines on stdout; - the findings about what the disk or GitHub will not hold (#863); - the leg question (#798). The remediation lines it prints after its findings follow the findings' order, so the rule's come first. - **`_refuse_an_unrunnable_plan`.** It asks a moved source before an unanswered entry. Its docstring says why. - **`_refuse_a_plan_for_another_repository`.** Unchanged. The rule calls it. ## Tests `tests/test_adopt_plan_against_its_source.py` (new, ASCII only), 11 rows. Each runs `check` and then `execute --yes` on one hand-edited plan, both with the same `--local-remote-dir`, and asserts that no leg is made. - **7 pair rows** (the six pairs and all four). Each asserts: - `check` exits 1 and `execute` exits 2; - both name first the same code, the rule's first; - `check` lists every problem the plan holds, in the rule's order. - **4 controls**, one per code: the plan holds that problem alone, and both commands name it. - **Against #1125's head `9549006f`:** - the 6 pair rows that disagreed fail, each because the two commands named different codes, for example `('plan-stale', 'plan-unresolved') != ('plan-stale', 'plan-stale')`; - the `another-and-name` guard row and the 4 controls pass. - **Here:** 11 passed. `tests/test_adopt_relative_submodule_url.py`, 6 rows changed and 1 new (the fix round): - **The 6 rows** are `test_check_keeps_a_relative_url_its_github_leg_resolves_alike` for `[https]`, `[scp]`, `[scp-other-case]`, `[ssh-port]` and `[ssh-github-443]`, and `test_a_credential_in_the_source_remote_is_never_printed`. - Each hand-edits the plan's `org:` to `otherorg`, so the plan names `otherorg/Thing` and the source is `testorg/Thing`: a plan for another repository. - Each expected `check` to list the relative url first and `plan-not-the-source` after it, `check`'s old order. They now expect `plan-not-the-source` first. Their other assertions are unchanged; the credential is still printed nowhere. - **The new row,** `test_check_names_another_repository_first_as_execute_refuses_it`, runs one such plan. It asserts that `check`, with and without `--local-remote-dir`, lists `plan-not-the-source` and then the url, that `execute` refuses `plan-not-the-source`, and that no leg is made. - **Measured on #1125's head** for the six source remotes: `execute` already refused each such plan `plan-not-the-source`, and its output is the same on both heads. Only `check`'s order changed. No spelling of the source's `origin` reads as another repository: with `org:` left as the source's, `check` passes on both heads, as the rows assert. Both files together, 46 rows: - **Against #1125's head:** 13 failed, 33 passed. The 13 are the 6 pair rows above and the 7 relative-url rows, each on the order: `plan-not-the-source` where the url was expected first, or the url first in the new row. - **Here:** 46 passed. ## Mutants Each was applied to `adopt-project.py`, run against both files (46 rows), and restored, with its sha256 checked (`4c8c1c9e`, the same after each one). Unmutated, the 46 pass. M1-M6 are the first round's; M7 and M8 are the fix round's. | Mutant | Killed by | |---|---| | M1, `execute`: `_refuse_an_unrunnable_plan` asks an unanswered entry before a moved source (pair 1) | 2: `moved-and-unanswered`, `all-four` | | M2, `check`: lists another repository after the entries (pair 2) | 11: `another-and-unanswered`, `another-and-moved`, `another-and-name`, `all-four`, and the 7 relative-url rows | | M3, `check`: lists a moved source before another repository (pair 3) | 3: `another-and-moved`, `name-and-moved`, `all-four` | | M4, `check`: lists a refused name after the entries (pair 4) | 3: `name-and-unanswered`, `name-and-moved`, `all-four` | | M5, `check`: lists a moved source before a refused name (pair 5) | 2: `name-and-moved`, `all-four` | | M6, the rule: asks a refused name before another repository (both commands) | 2: `another-and-name`, `all-four` | | M7, `execute`: asks `_refuse_what_check_finds` before the rule | 8: the pair rows but `another-and-name`, the `plan-stale` control, and the new relative-url row | | M8, `check`: lists all the rule's problems after the entries | 14: the pair rows but `another-and-name`, the `plan-stale` control, and the 7 relative-url rows | ## Gate Run on the scratch merge `743ebe176`: `origin/main` `961640c68` plus this head `90eca4144` (tree `d71d6f00a`, never pushed). It ran in the landing gate's own environment (a stub `gh`, `GH_TOKEN=bogus`, an empty global git config, `EMAIL` set, the `LANES_*` and `GIT_SSH_COMMAND` variables unset), one shard at a time, each started with at least 19G free. The ids were collected from that tree, 4405 + 448 = 4853, and each is in exactly one shard. The file list is the 46 test files W1113's gate named and four more, added in the fix round (50 in all): `test_adopt_c_locale_bytes.py` and `test_adopt_submodule_url_answers.py` (they import helpers and the module-scoped `adopter` fixture from the changed test file, so they sit in its shard, r03), `test_reader_refusals_named.py` (it hand-edits a plan's `org:` and checks `check`'s exact findings) and `test_github_name_limits.py`. Every shard exited 0. | Shard | Result | |---|---| | r01 | 600 passed | | r02 | 613 passed | | r03 | 464 passed, 1 skipped (`test_adopt_plan.py::test_plan_on_medxehr_matches_the_rulings`) | | r04 | 547 passed | | r05 | 599 passed, 19 skipped (all in `test_family_init_values.py`) | | r06 | 542 passed | | r07 | 489 passed | | r08 | 531 passed | | d01 to d07 | 56 passed each (`test_shape_doctor.py`) | | d08 | 53 passed, 3 skipped (`test_shape_doctor.py`) | - **r01 to r08:** 4385 passed, 20 skipped (4405 ids). - **d01 to d08:** 445 passed, 3 skipped (448 ids). - **Total:** 4830 passed, 23 skipped, none failed, none errored. Main has moved since this gate: `origin/main` is `ac5f28d2a` (#1188, #1130 and #1098 landed). They change `scaffold-project.py`, `scripts/family.py` and four test files. None of them is a file this PR changes, a module `adopt-project.py` imports, or one of the 50 gated test files, so the gate was not run again on that tip. The merge-trees below were. ## Merge-trees `git merge-tree --write-tree`, run again on 2026-10-23 at 15:31Z against the current `origin/main`, every one clean: - **`origin/main` `ac5f28d2a`:** clean, tree `1a65ab9bd`. - **#1125 `9549006fe`:** clean. This branch is on it. - **#1177 `5208e874e`** (`fix/1152-plan-and-remote-paths-spelled`, which edits a line of `_refuse_a_plan_for_another_repository`): clean, with this head and three-way on the scratch merge. - **Every open PR that touches `adopt-project.py` or either test file, 25 of them, #1125 and #1177 among them:** clean, both with this head and three-way on the scratch merge of `ac5f28d2a` and this head, `98afb128a` (`git merge-tree --write-tree <that merge> <its head>`). Since the first run, #1207 is new, and #1119, #1189 and #1190 have moved; all four are clean. No open PR touches either test file. The list is in a code block, so that it does not mention each PR: ``` PR head with this head on the scratch merge #1105 b28f40d clean (tree 32fce74c6) clean (tree 490f555f9) #1106 504a1dd clean (tree 3abfa1b6a) clean (tree db57682e9) #1118 2307036 clean (tree 79a3888bf) clean (tree 629f167ca) #1119 195d993 clean (tree a2926127e) clean (tree 6aec4c863) #1120 c55e55e clean (tree 6171a52f8) clean (tree 0cb310664) #1121 1c51737 clean (tree 3acb80467) clean (tree 2771fbfd0) #1122 c01c4d7 clean (tree af9a4c414) clean (tree ef00f52f7) #1123 5c3908f clean (tree eb7cb34b3) clean (tree 4c311748b) #1125 9549006 clean (tree 239df6d) clean (tree 1a65ab9bd) #1141 7a2711d clean (tree e1c8f7169) clean (tree 3afeda790) #1143 7af5fab clean (tree 35cd165de) clean (tree aae00cfc7) #1153 ff33ba1 clean (tree 57da668e8) clean (tree f91ce3d8d) #1154 8a78283 clean (tree 28699ba0c) clean (tree 3e6b1ae98) #1169 1e958ca clean (tree e3ef802be) clean (tree f4566b2c4) #1170 24ee133 clean (tree 94b9291c8) clean (tree 848bb0ed0) #1171 8162b87 clean (tree 65ca8196d) clean (tree f15571ef3) #1177 5208e87 clean (tree 08e3d6a62) clean (tree 111f3c238) #1178 c4beba1 clean (tree 646f02266) clean (tree eae3b5996) #1180 b316f41 clean (tree 25b3d4b6f) clean (tree 85a559171) #1186 07486a4 clean (tree d0fe77836) clean (tree 849f0ef41) #1189 a131fc2 clean (tree 5b1ab0620) clean (tree 9851d22b7) #1190 91a937e clean (tree aa83fae05) clean (tree 18101f50b) #1194 900f77a clean (tree 9d74efa35) clean (tree 46317beae) #1198 d38e4e3 clean (tree 87ca21b8c) clean (tree 7fc45a875) #1207 1c7ca5c clean (tree 1dbab659d) clean (tree 1e44c98f0) ``` ## Left for a follow-up (outside #1113) - **An unanswered entry beside an uncovered path still gives two first problems,** filed as #1197. `check` lists `plan-uncovered` first and `execute` refuses `plan-unresolved` first. Measured the same on #1125's head and on this head. `execute` refuses an unanswered entry before `_refuse_what_check_finds`, while `check` lists it in `_leg_findings`, after the paths and the coverage. Other entry findings ahead of it in `_entry_findings` are likely the same (`plan-unsafe-path` among them), and so is the taken split branch, but those were not measured. Closes #1113 Lane: openreposhape-4 (openRepoShape-4) Co-Authored-By: Claude Opus 5.5 <[email protected]>



What changed
A follow-up outside v1.2.0 (Brett Heap, 2026-10-21T10:32:04Z). It lands only after the v1.2.0 tag, on a later merge word.
On main. When
remove's rollback cannot check the member out again, it prints the lines to type (PinRollback._work_tree_by_hand). Two of them name a leg:git -C members/<P> -c protocol.allow=never submodule update --init --no-fetch -- <leg> ...;git -C members/<P>/<leg> checkout -q <branch> --, for a leg that was on a branch.A leg's path is read from the member's
ls-files -zwithsurrogateescape(_legs), soshlex.quotequoted the surrogate. Measured on main (2a119f28) with a leg mounted atcaf+ byte E9, the lines read... --no-fetch -- 'caf\udce9' specandgit -C 'members/Thing/caf\udce9' checkout -q side --. Typed, they name no path.The issue says "bump". These lines are
remove's:PinRollbackreads legs only withunmount=True, andbump's by-hand line names the member only.Now. A new
_path_by_hand(path)spells each word that holds a leg's path:shlex.quote, byte for byte as before;"$(printf '<escapes>/')". That is family.py: the by-hand checkout line a failed rollback prints names a branch that is not UTF-8 by its exact bytes, as"$(printf 'caf\351')", not as'caf\udce9', which typed names no branch (#1079) #1084's form for a branch, with a/at the end and a leading-as\055._head_by_handspells its-Cpath with it, and the legs'submodule updatespells each leg with it. A member's own path comes fromfamily.yaml, which is UTF-8, so the member's lines do not change._branch_by_hand's escape loop moved into_printf_escapes, which both use;_branch_by_hand's output is unchanged, and its test file passes.The chosen form, and why.
"$(printf 'caf\351')", not as'caf\udce9', which typed names no branch (#1079) #1084's printf word, plus two changes./at the end.$(...)strips only trailing newlines; with/last, nothing is stripped. Each word names a directory or a gitlink, and git reads<dir>/as<dir>.git -C <dir>/changes into the directory.git submodule update -- <leg>/matches the gitlink<leg>, because git matches a pathspec with a trailing slash to the directory of that name, and no index entry can sit under a gitlink.-. Theprintfof sh, dash and bash reads a format starting-cas an option (Illegal option -c,invalid option); zsh's prints it. So the first byte, if it is-, is\055.',\,%,!and every byte outside printable ASCII are three-digit octal escapes, as in family.py: the by-hand checkout line a failed rollback prints names a branch that is not UTF-8 by its exact bytes, as"$(printf 'caf\351')", not as'caf\udce9', which typed names no branch (#1079) #1084. So the line is ASCII and holds no newline.Rejected:
xstripped by${v%x}: it needs a variable, so two statements per leg, one variable per leg on the update line, and variables left in the person's shell;$'...': dash has none;git submodule updatewith no pathspec would also take legs that were never checked out, which it can only clone;Decided where the direction left it open:
/goes on every word for a path that is not UTF-8, not only on one that ends in a newline: one rule;-at the first byte is escaped, since only the first byte can be read as an option.Four-shell measurement
tests/test_family_leg_path_by_hand_bytes.pybuilds real repositories: a holder, one member atmembers/Thing, and two legs checked out inside the mount.specis detached. The odd leg is at the path below, on the branch below. The test records the rollback asremovedoes, then runsgit submodule deinit -fon the member asremovedoes, and takes_work_tree_by_hand()'s four lines. Each line is run as printed through<shell> -c. Then the leg is read back as bytes: a checkout is there, at its gitlink's commit, andsymbolic-ref HEADis the branch.specis read back at its commit, and the member is read back onmain.caf\xe9(the issue's)sidecaf\xe9\nsideit's 100%!\\\xe9\n\nsidesub/caf\xe9 \x01\x7f\xffcaf\xe9caf\xc3\xa9's leg(UTF-8: lines equalshlex.quote's)sideThe word alone:
printf %s <word>in each shell writes the path's bytes and then/. Rows that git cannot mount as a leg (a leading-:git submodule addrefuses one) are asked here.caf\xe9caf\xe9\n\n\n\xe9\n\n-caf\xe9--\xe9\na'b\\c%d!e\xe9%s%%\xff%d\n\xc3\n-, every byte 0x01-0xff, then\nHost: git 2.43.0, bash 5.2.21, zsh 5.9, dash as
/bin/sh. Every cell passed in the run below. No shell skipped (-rslists none).Out of scope
family.yaml, which is UTF-8, as the issue says.\udcXXincluded:_work_tree_said, and themember-store-gonerefusal for a leg left out. Those are words to read, not lines to type, and the issue names only the typed lines. This can be a follow-up.submodule updatehas no--literal-pathspecs, though the rollback's own run has it. So a leg path holding*,?or[is also a glob on that line, for a UTF-8 path as much as any. git tries the literal path first, so the leg itself always matches. This is not this issue.\udcXX, so the typedgit -C <member>/<leg>andsubmodule update -- <leg>name no path #1086 has no section headed "Needs a ruling" or "Documented limit".Tests
Each file was run alone, under a stub
ghfirst on PATH (it exits 97), withGH_TOKEN=bogus-W1086, an emptyGH_CONFIG_DIR,[email protected],GIT_SSH_COMMAND=falseandGIT_CONFIG_GLOBAL=/dev/null, astimeout 2400 /usr/bin/python3 -m pytest -q -p no:cacheprovider --basetemp=<scratch>/bt-gate -o tmp_path_retention_policy=failed -rs tests/<file>:tests/test_family_leg_path_by_hand_bytes.py(new):78 passed in 50.23stests/test_family_head_by_hand_bytes.py:61 passed in 10.58stests/test_family_bump_remove_rollback.py:31 passed in 52.64stests/test_readme_windows_quoting_sentence.py:44 passed in 22.69s. No host quoter was added (shell_quoted,shell_line,shell_word,quote_arg), so README, the handbook andNAMEDare unchanged.tests/test_repo_hygiene.py:100 passed in 3.27stests/test_no_auto_maintenance.py:58 passed, 2 skipped in 15.23s. Both skips arethe session began with GIT_CONFIG_GLOBAL set, from the exported/dev/null.tests/test_family_py_unreadable.py(it names the member's update line andPinRollback):75 passed in 60.01stests/test_family_member_branch_not_utf8.py(PinRollback):4 passed in 10.35stests/test_family_refuse_up_front.py(PinRollback):79 passed in 114.84stests/test_agents_md_codes.py:47 passed in 2.19stests/test_cli_reference.py:23 passed in 36.14stests/test_update_add_codes_documented.py:6 passed in 0.63spython3 -m pyflakes(4.0.0): no warning onscripts/family.pyat main or at the head, and none on the new test.Mutants
Each mutant was applied to
scripts/family.pyand the new test file was run. Then the file was restored and checked withcmp(equal each time).family.py: 74 failed, 4 passed. All 16 real-repo rows for a path that is not UTF-8 fail; the 4 UTF-8 rows pass.'{escapes}/'becomes'{escapes}'): killed, 53 failed. These include the real-repo rowsa-trailing-newlineandapostrophe-percent-bang-backslash-two-newlinesin all four shells, 40 word rows, andtest_a_trailing_newline_is_an_escape_before_the_slash.!passed through (!dropped from the escaped set): killed bytest_the_bang_is_an_octal_escape_as_in_a_branch, and by family.py: the by-hand checkout line a failed rollback prints names a branch that is not UTF-8 by its exact bytes, as"$(printf 'caf\351')", not as'caf\udce9', which typed names no branch (#1079) #1084'stest_the_bang_is_an_octal_escape_so_no_history_scanner_reads_the_line. Nosh -crun reads history, so only these spelling tests can see it.shlex.quotebranch removed): killed, 33 failed. That is all 13test_a_utf8_path_is_quoted_exactly_as_shlex_quote_has_always_donerows and all 20 real-repo rows (thespecword and the member's-Cchange).-left as is: killed, 10 failed. These are thea-leading-dash,two-dashes-and-a-newlineandevery-byte-after-a-dashword rows in sh, dash and bash, andtest_a_leading_dash_is_an_escape_so_printf_reads_no_option. The zsh rows pass under this mutant, because zsh'sprintfprints a leading-._head_by_handkeepsshlex.quote(path): killed, 18 failed: the 16 real-repo rows for a path that is not UTF-8, and 2 spelling tests.shlex.quote(leg): killed, 16 failed: the 16 real-repo rows for a path that is not UTF-8.Merges
git merge-tree --write-tree, with the headeaa9e4c0:2a119f28: clean;family.py bumpandbump-leg.pyno longer fail where the remote hasxandrelease/xand the repository's owngit fetch originworks (#1066) #1087 (a9289bd9): clean. shape_materialize.py: the fetch for a branch's answer leaves out every refspec of the repository's own onto the branches' names, whatever its source, and every one that puts a branch under a name not its own, sofamily.py bumpandbump-leg.pyno longer fail where the remote hasxandrelease/xand the repository's owngit fetch originworks (#1066) #1087 is the only open PR onscripts/family.py, from a livegh pr list.Review round 1 (RV1098: READY)
RV1098 found no MUST and no SHOULD. Lane 3 took NIT-1 only, in
dad7961a.test_the_bang_is_an_octal_escape_as_in_a_branchsaid a shell with history on reads the!of the double-quoted word. RV1098 measured that bash 5.2.21 (-i, from a pipe) and zsh 5.9 (-f -i, pipe and pty) expand the!of"x!echo", but none inside"$(printf '...')". The docstring now calls\041a guard kept as family.py: a rollback's by-hand checkout line spells a branch that is not UTF-8 as Python's\udce9, which typed names no branch #1079 spells it, for shells nobody has measured here. No code changes.tests/test_family_leg_path_by_hand_bytes.pyatdad7961a, with-rs:78 passed in 55.40s, no skips. pyflakes: no warning.git merge-tree --write-treewith origin/main6da757cb, which now holds shape_materialize.py: the fetch for a branch's answer leaves out every refspec of the repository's own onto the branches' names, whatever its source, and every one that puts a branch under a name not its own, sofamily.py bumpandbump-leg.pyno longer fail where the remote hasxandrelease/xand the repository's owngit fetch originworks (#1066) #1087: clean. No other open PR touches these files (a livegh pr list).Closes #1086
Lane: openreposhape-3 (openRepoShape-3)
🤖 Generated with Claude Code