Skip to content

scripts/family.py: family-root-missing, both family-members-unreadable lines and siblings-script-missing's message name the holder's path as shown_path does, so U+202E, an ESC or a line feed in a --family-root no longer reaches the terminal - #1327

Draft
brettheap wants to merge 2 commits into
mainfrom
fix/1317-family-root-shown

Conversation

@brettheap

@brettheap brettheap commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Goal

Five refusal texts in scripts/family.py name the holder's path the way shown_path does: as it is, or as repr spells it where a character in it is not printable. They are family-root-missing (Family.open, for add, bump and remove, and cmd_siblings, for siblings), both lines of family-members-unreadable in _checked_members_readable, and siblings-script-missing's message. A U+202E, an ESC or a line feed in a --family-root, or in a folder above it, no longer reaches the terminal raw there: a bidi override reordered the line, an ESC reached stderr as the control it is, and a line feed began a line of the path's choosing.

This is the first part of #1317 (v1.2.2): its refusal texts in scripts/family.py. #1310, #1288's draft, spells family-unreadable and family-wrong-kind in the same function; these are the refusals that stand beside them. It began as one commit, d5a4fe6b4, on main f39c6707a (Round 1 below adds a second), and leaves #1317 open: the family root's own scripts and the lines a person pastes are the parts left (Known limits).

No refusal code changes, no word of any refusal but the path, and no code. A printable holder is named byte for byte as before. Proof: scripts/family.py at the head and at main, with every shown_path(...) wrap taken off both, are one AST (21 wraps at main, 26 at the head; the lane's work/n1317/proof_ast.py), and a copy of the head with one word changed is not.

The sites (measured before and after)

Real runs, with a stub gh first on PATH, GH_TOKEN=bogus, an empty GH_CONFIG_DIR, GIT_SSH_COMMAND=false, GIT_CONFIG_GLOBAL=/dev/null and GIT_CONFIG_NOSYSTEM=1, of family.py over a --family-root folder named with U+202E (wd-pl<U+202E>an), then an ESC (wd-<ESC>[31mRED), then a line feed (wd-<LF>WARNING forged-line: pwned), then a printable name (wd <e-acute> and a space). 76 runs, every one exit 2 before and after.

  • Before, at main f39c6707a: each of the 57 runs over a name that does not print put the U+202E or the ESC on stderr raw, or ended the REFUSED line at wd- and began a line WARNING forged-line: pwned/....
  • After, at this head: 0 of the 57 do in the refusal's own message. 51 (every run of the four other sites) are clean everywhere on stderr. The other 6 (siblings-script-missing) are clean in the message and still carry the name in the remedy's update-shape.py check --root line, which this part leaves as it was (Known limits). The 19 printable runs print stderr byte for byte as at main.

For example, the line feed under family-root-missing, from siblings, before:

REFUSED family-root-missing: <D>/wd-
WARNING forged-line: pwned/family.yaml does not exist, so this is not a family root

and after:

REFUSED family-root-missing: '<D>/wd-\nWARNING forged-line: pwned/family.yaml' does not exist, so this is not a family root
code site at this head reached by runs raw before raw after
family-root-missing scripts/family.py:559, Family.open add, bump, bump with no --dry-run, remove; the folder empty, or not there 32 24 of 24 0 of 24
family-root-missing scripts/family.py:10612, cmd_siblings siblings with and without --dry-run; the folder empty, or not there 16 12 of 12 0 of 12
family-members-unreadable scripts/family.py:779, _checked_members_readable (members: 5) add, bump, remove 12 9 of 9 0 of 9
family-members-unreadable scripts/family.py:785 (members: [5]) add, bump, and remove, which reaches it too (rv1317 measured remove: 6 runs, raw at main and clean at the head; the 8 runs and the counts in this row are n1317's, for add and bump, as measured) 8 6 of 6 0 of 6
siblings-script-missing scripts/family.py:10633, the message's there is no <script> siblings with and without --dry-run, over a holder with a family.yaml and no scripts/siblings.py 8 6 of 6 0 of 6 in the message; 6 of 6 in the remedy, left as it was

Each site is shown_path(...) of the path the text already named (path, root / MANIFEST, script), and the string around it is re-wrapped to keep to the file's line length. family.py already imports shown_path (:238), so no copy is made. The two family-root-missing refusals name <root>/family.yaml with root resolved, as before: a holder typed relative is named by its absolute path, spelled.

Text that pins these lines. A grep of README.md, AGENTS.md, docs/ (the handbook mirror docs/handbook.html too) for the three codes and for each changed refusal's words finds none; docs/release-notes/v1.0.0.md, v1.1.1.md and v1.2.0.md name some of the codes as the record of those releases. No doc changes. tests/test_cli_reference.py and tests/test_agents_md_codes.py pass on both gits. In tests/, five files name these codes (test_family_py_unreadable.py, test_family_refuse_up_front.py, test_family.py, test_family_members_not_a_list.py, test_family_siblings_placement.py); all are in the gate and none changes.

Rows

72 new rows in tests/test_family_root_paths_shown.py:

  • test_each_refusal_names_the_holder_as_shown_path_names_it, 13 runs x 4 names (52): each asserts exit 2, no traceback, nothing on stdout, exactly one REFUSED line that is REFUSED <code>: <the words before><the path, named as shown_path names it><the words after>, a Remediation: line that begins as the code's does, and no U+202E, no ESC and no line starting WARNING forged-line in what the refusal says. The 13 runs are the table's: family-root-missing six ways (add, bump over a folder that is not there, bump with no --dry-run, remove, siblings, siblings over a folder that is not there), family-members-unreadable five ways, siblings-script-missing two ways.
  • test_a_holder_typed_relative_is_named_absolute_and_spelled, 4 runs x 4 names (16): the same assertions with --family-root typed relative to the working folder, for both family-root-missing functions, family-members-unreadable's Family.open and siblings-script-missing. The refusal names the absolute path, spelled: not the text as typed.
  • test_siblings_script_missing_keeps_its_remedy_as_it_was, 4 names (4): the remedy's update-shape.py check --root <holder> is shlex.join's, as before, for every name. It pins what this part leaves to family.py, bootstrap.py, validate-family.py: family-root-missing, family-members-unreadable, siblings-script-missing print the holder's path as typed and member-unknown pastes it raw, so a bidi control, an ESC or a line feed in it reaches the terminal (follow-up to #1288) #1317's Scope question, so that the part that changes it changes the row.

The new file is ASCII: its folder names come from conftest and test_load_yaml_refusals, which build theirs from escapes and chr(). Every row skips by name where its folder name cannot be made (unsafe_folder; the ESC and line-feed names also by conftest.POSIX_NAMES on Windows). The new file shares no run of 5 or more non-blank lines with another file under tests/ or scripts/, and none with itself (measured).

Run at main: the head's test file in the detached tree n1317-mut over main's scripts/family.py (sha256 5fceaddf7901), git 2.43.0, -rfEs:

rows with main's family.py at this head
13 sites x U+202E, ESC, line feed (39) 39 fail pass
4 relative sites x U+202E, ESC, line feed (12) 12 fail pass
the remedy row x U+202E, ESC, line feed (3) 3 fail pass
the same, a printable holder (18, the controls) pass pass

54 of the 72 new rows fail at main, every row over a name that does not print, and the 18 printable controls pass.

Mutants

Each applied alone in the detached tree n1317-mut on this head's scripts/family.py, the 72 rows run, git 2.43.0, -rfEs; the file put back from a saved copy and its sha256 checked after each (b9f724a798fd). 15 mutants, 15 killed, none survived.

mutant failed passed
S1 Family.open's family-root-missing back to {path} 15 57
S2 cmd_siblings's family-root-missing back to {root / MANIFEST} 9 63
S3 family-members-unreadable, a members: that is not a list, back to {path} 12 60
S4 family-members-unreadable, an entry that is not a mapping, back to {path} 6 66
S5 siblings-script-missing's message back to {script} 12 60
R1 all five sites as repr(str(path)), a printable path too 18 54
R2 all five as an escaper of the line feed and the ESC only (no quotes) 54 18
R3 all five without the bidi controls (repr only where a character is not printable and not U+202E) 18 54
T1 Family.open names the holder as typed (Path(root_spec) / MANIFEST), not as resolved 4 68
T2 cmd_siblings names it as typed (Path(args.family_root) / MANIFEST) 4 68
T3 siblings-script-missing names the holder, not the script 16 56
T4 the remedy's --root value spelled too (out of this part) 3 69
W1 family-root-missing in Family.open: "family root" to "family folder" 20 52
W2 siblings-script-missing: "holder's own copy" to "holder's own file" 16 56
W3 the Family.open remedy: "creates one" to "makes one" 20 52

Each site's revert (S1-S5) is killed by its own rows and the relative rows that reach it, and by no other site's (S5 also fails the remedy row, which asserts the message too). R1 fails the 18 printable controls (quotes added) and R3 the 18 U+202E rows; R2 fails every row over a name that does not print, since it spells without quotes. T1 and T2 fail only the relative rows (4 each: three names and the printable control), which is what those rows are for. T4 fails only the remedy row, for the three names that do not print. W1-W3 fail printable rows too, so the words around the path are pinned as well.

Runs

Every run through the lane's runner: a stub gh first on PATH (and the suite's own gh guard ahead of it), GH_TOKEN=bogus, an empty GH_CONFIG_DIR, GIT_SSH_COMMAND=false, GIT_CONFIG_GLOBAL=/dev/null, a blank git identity, git-filter-repo 2.47.0 (CI's pin; --version says a40bce548d2c) on PATH, CPython 3.12.3 (CI runs 3.14; no row asserts text that depends on the version), -rfEs, at most 100 ids a call, one basetemp per call; the four files of more than 100 ids ran alone under flock.

The gate list, 11 calls, 1010 ids a leg: the new file; the five files that name these codes (tests/test_family_py_unreadable.py, tests/test_family_refuse_up_front.py, tests/test_family.py, tests/test_family_members_not_a_list.py, tests/test_family_siblings_placement.py); and the hygiene five and tests/test_no_auto_maintenance.py.

git 2.43.0, head d5a4fe6b4:

file ids result
tests/test_family_root_paths_shown.py 72 72 passed
tests/test_family_py_unreadable.py 75 75 passed
tests/test_family_refuse_up_front.py 79 79 passed
tests/test_family_siblings_placement.py, tests/test_cli_reference.py 56 56 passed
tests/test_agents_md_codes.py 47 47 passed
tests/test_no_auto_maintenance.py 60 58 passed, 2 skipped
tests/test_pinned_copy_text.py 87 87 passed
tests/test_family.py 156 156 passed
tests/test_family_members_not_a_list.py 156 156 passed
tests/test_path_guard_hygiene.py 121 121 passed
tests/test_repo_hygiene.py 101 101 passed

git 2.47.1 (L/tools/git247/bin/git), head d5a4fe6b4:

file ids result
tests/test_family_root_paths_shown.py 72 72 passed
tests/test_family_py_unreadable.py 75 75 passed
tests/test_family_refuse_up_front.py 79 79 passed
tests/test_family_siblings_placement.py, tests/test_cli_reference.py 56 56 passed
tests/test_agents_md_codes.py 47 47 passed
tests/test_no_auto_maintenance.py 60 58 passed, 2 skipped
tests/test_pinned_copy_text.py 87 87 passed
tests/test_family.py 156 156 passed
tests/test_family_members_not_a_list.py 156 156 passed
tests/test_path_guard_hygiene.py 121 121 passed
tests/test_repo_hygiene.py 101 101 passed

Skips, named: tests/test_no_auto_maintenance.py:222, 2 on each git, "the session began with GIT_CONFIG_GLOBAL set, and its file includes that one". No other skip.

One lane-set run (#1299's lesson) of the new file on git 2.43.0 under LANES_LANE=openRepoShape-5: 72 passed (72 ids).

Merges

Read fresh for Round 1 at 2026-11-10T23:24Z. The head is two commits on main f39c6707a (d5a4fe6b4, then aa1c71e79). Main is now dcf63b8b9, as fetched at 2026-11-10T23:24Z: 5 commits since f39c6707a by git log --oneline f39c6707a..origin/main (#1171's 838358bf9, #1185's 2af1d6644, #1237's f7f34fb09, #1263's a98fe7cb4 and #1265's dcf63b8b9), where this body said three before (#1171's was missed). None of them touches scripts/family.py, the new test file, tests/conftest.py or tests/test_load_yaml_refusals.py (git diff --name-only f39c6707a origin/main). #1171's 838358bf9 changes scripts/repo_shape.py among other files; shown_path is the same function at f39c6707a and at dcf63b8b9. The head merges with main cleanly. The only open PR that touches scripts/family.py is #1310 (draft, base fix/1279-refusals-shown); none touches tests/test_family_root_paths_shown.py. #1284, #1312, #1326 and #1209 are the open PRs that touch a file the new test file imports from (tests/test_load_yaml_refusals.py and tests/conftest.py). Every merge is clean, #1209's too at its new head (it conflicted with main alone at 13a2c58cb, when this branch was pushed).

head aa1c71e797494ddf9d19a19981241f9a54c58f46 (tree c0761ab2990daa21d9cad0f05e5a6ad2559d87c5), on d5a4fe6b4, on main f39c6707a99d9988abaf3197363e4d9753d49468
main dcf63b8b9: rc=0 tree=2c3bf67a989b237a7419aa3a7b3a5bcaa38d5322
#1209 01ee69763 (draft; tests/conftest.py): rc=0 tree=d89d0101427700b7797a51d8d269c80d53cc171c
#1284 86ab76db4 (draft; tests/test_load_yaml_refusals.py): rc=0 tree=b042588267681c588a1639232d4b7c91cf4f1905
#1310 daaa5ad8a (draft; scripts/family.py): rc=0 tree=26fb16f6fdd8d7481c9da8869a11ebe54a061ebf
#1312 5235870f1 (ready; tests/conftest.py): rc=0 tree=97c5f2a74d6886d291b09299866e68f4d57736ec
#1326 e73592062 (draft; tests/conftest.py): rc=0 tree=de6cd9f3fc4e02143e3cad14693ee28d91d3b6f8

Round 1

rv1317's independent review of d5a4fe6b4 came back READY, with no MUST and no SHOULD (its report is posted on this PR as issuecomment-6781117827). This round answers its N1, N2 and O1: one new commit and this body. scripts/family.py is byte for byte as it was at d5a4fe6b4, and no row changes. The PR is now two commits on main f39c6707a: d5a4fe6b4, which the Goal's "one commit" and every measurement above describe, and aa1c71e79.

Gates at aa1c71e79, through the lane's runner (-rs alone, CPython 3.12.3, git-filter-repo 2.47.0 (a40bce548d2c)), one pytest at a time, at most 100 ids a call except the two files that hold more, 511 ids a leg, rc=0 on both gits. The Runs section above is d5a4fe6's and stands.

file ids git 2.43.0 git 2.47.1 (L/tools/git247/bin/git)
tests/test_family_root_paths_shown.py 72 72 passed 72 passed
tests/test_cli_reference.py and tests/test_agents_md_codes.py 70 70 passed 70 passed
tests/test_pinned_copy_text.py 87 87 passed 87 passed
tests/test_no_auto_maintenance.py 60 58 passed, 2 skipped 58 passed, 2 skipped
tests/test_path_guard_hygiene.py (alone, under flock) 121 121 passed 121 passed
tests/test_repo_hygiene.py (alone, under flock) 101 101 passed 101 passed

Skips, named: tests/test_no_auto_maintenance.py:222, 2 on each git, "the session began with GIT_CONFIG_GLOBAL set, and its file includes that one". No other skip.

Known limits

Not in this PR

rv1317's follow-up candidates, for Brett Heap's word. None is filed, and none is drafted for filing. Lines are at this head (scripts/family.py is as it was at d5a4fe6b4). C1 and C2 are in neither #1310 nor #1317's later parts as Known limits names them; C3 belongs to #1317's Scope question, which does not list it; C4 predates this PR.

Part of #1317

Lane: openreposhape-5 (openRepoShape-5)

🤖 Generated with Claude Code

Summary by Sourcery

Safely render holder paths in family refusal messages without changing their wording or remediation behavior.

Bug Fixes:

  • Protect five family refusal messages from exposing unsafe holder-path characters such as bidi overrides, escape sequences, and line feeds by displaying paths through the existing safe path formatter.

Tests:

  • Add coverage for unsafe and printable holder names, absolute versus relative family-root paths, all affected refusal sites, and preservation of the existing remediation command.

…able` lines and `siblings-script-missing`'s message name the holder's path as `shown_path` does, so U+202E, an ESC or a line feed in a --family-root no longer reaches the terminal

#1288 spelled `family-unreadable` and `family-wrong-kind` in `Family.open`.
The refusals beside them still printed the holder's path as typed: a bidi
override in its name reordered the line, an ESC reached stderr as the control
it is, and a line feed began a line of the path's choosing. Measured at main
f39c670 over 76 real runs of `add`, `bump`, `remove` and `siblings` (all
exit 2): every one of the 57 runs over a name that does not print put that
character on stderr raw, and the 19 over a printable name printed it as typed.

Each of these five texts now names its path through `shown_path`, which
`family.py` already imports: as it is where it prints, as `repr` spells it
where a character in it does not. A printable holder is named byte for byte as
before. No refusal code and no other word changes, and no code does.

New tests/test_family_root_paths_shown.py: one run per site over a folder named
with U+202E, an ESC, a line feed and a printable name, a holder typed relative
to the working folder, and a row that holds `siblings-script-missing`'s remedy
as it was.

Not in this part: `siblings-script-missing`'s remedy and `member-unknown`'s
lines, which name the holder in a command a person pastes and which #1317
leaves as a decision, and the family root's own `bootstrap.py` and
`validate-family.py`, which wait for #1310's `_shown` copies.

Part of #1317

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@brettheap brettheap added this to the v1.2.2 milestone Nov 10, 2026
@sourcery-ai

sourcery-ai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

UI

Spell the holder paths safely in all five family refusal messages while preserving their surrounding wording.

  • scripts/family.py L10633-10636 (+4 small edits)

Tests

Add regression coverage for unsafe and printable holder names, relative roots, all affected refusal sites, and the unchanged siblings remediation.

  • tests/test_family_root_paths_shown.py L1-248

Tips and commands

Interacting with Sourcery

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

Customizing Your Experience

Access your dashboard to:

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

Getting Help

@brettheap

Copy link
Copy Markdown
Contributor Author

Independent review of #1327 (Part of #1317) for lane openRepoShape-5, by rv1317 (opus), at d5a4fe6: READY

Verdict: no MUST and no SHOULD. There are 3 NITs, 1 observation and 4 follow-up candidates, all listed below. Every claim here comes from my own runs. Work folder: /workspace/projects/.lane-worktrees/openRepoShape-5/work/rv1317 (STATE.md, probes/, mut/, logs/). I made no GitHub writes.

1. The five sites, measured by real runs

  • How I ran them: the script is probes/probe.py. Each run had the gh stub first on PATH, GH_TOKEN=bogus, an empty GH_CONFIG_DIR, GIT_SSH_COMMAND=false, GIT_CONFIG_GLOBAL=/dev/null and GIT_CONFIG_NOSYSTEM=1. Folder names were wd-pl<U+202E>an, wd-<ESC>[31mRED, wd-<LF>WARNING forged-line: pwned and "wd <e-acute> and a space".
  • Runs: 120 at main and 120 at the head. For main, rv1317-mut held main's family.py (sha256 5fceaddf7901, the same as at a98fe7c).
    • family-root-missing in Family.open: 48 runs. Verbs add, add-real, bump, bump-real, remove and remove-real, over a folder that is empty and one that is not there.
    • family-root-missing in cmd_siblings: 16 runs.
    • members: 5: 24 runs.
    • members: [5]: 24 runs.
    • siblings-script-missing: 8 runs.
  • Result (probes/analyze.out, PROBLEMS 0):
    • Every run exits 2 with the same code at main and at the head.
    • Stdout is empty in every run.
    • Unprintable names: all 90 runs put the character raw in the message at main, and 0 do at the head.
    • In all 90, the head's message equals main's with only the named path spelled by repr, once.
    • All 90 remedies are byte-identical. siblings-script-missing's remedy stays raw in 6 of 6 runs, as scoped.
    • The 30 printable runs give stderr byte for byte as at main.
  • Scope line: the diff touches only the five hunks. templates/family-root/ and member-unknown are untouched. siblings-script-missing's remedy is measured identical to main's and pinned by its own row. The line between this part and family.py, bootstrap.py, validate-family.py: family-root-missing, family-members-unreadable, siblings-script-missing print the holder's path as typed and member-unknown pastes it raw, so a bidi control, an ESC or a line feed in it reaches the terminal (follow-up to #1288) #1317's later parts is where the body says.

2. Raw paths still left in scripts/family.py
I scanned every Refusal( with an AST script (refusal_scan.py, logs/refusal-scan-head.txt: 311 interpolations that are not spelled). I kept the ones built from the holder's path and read each in context. Member paths (members/<project>, which are validated) and constants are excluded. I did not judge values that are not paths, such as the family's name: field.

3. The AST check

  • My own script (proof_ast.py, logs/proof-ast.out) finds 21 shown_path calls at main and 26 at the head.
  • With every wrap taken off, the two ASTs are equal.
  • The head drops 0 of main's wraps and adds 5: :559 path, :779 path, :785 path, :10612 root / MANIFEST, :10633 script.
  • A copy of the head with one word changed is not equal to main.

4. The rows

  • Count: collect-only finds 72 ids.
  • With main's family.py swapped in (logs/base-rows.log): 54 failed and 18 passed. The 18 are exactly the printable rows; every row over a name that does not print fails. I restored the head by sha256 (b9f724a798fd).
  • At the head: 72 passed on both gits.
  • Skips: rows skip by name through unsafe_folder, and the ESC and line-feed names also through POSIX_NAMES. No row skipped on this bench.
  • Assertion strength:
    • The REFUSED line must match exactly, so a spelled path with a dropped word in the message fails (W1, W2, X3).
    • A path named as typed instead of resolved fails the relative rows (T1, T2, X1, X2).
    • The Remediation line is checked only by its opening words (observation O1).

5. Mutants (mut/mutrun.py, logs/mutrun.out)
Each was applied alone in rv1317-mut, and the file was restored by sha256 every time.

  • n1317's 15 reproduce the body's counts exactly: S1 15, S2 9, S3 12, S4 6, S5 12, R1 18, R2 54, R3 18, T1 4, T2 4, T3 16, T4 3, W1 20, W2 16, W3 20. All are killed.
  • Mine:
    • X1 (family-members-unreadable named as typed): 4 killed.
    • X2 (the script named as typed): 4 killed.
    • X3 (a word changed in cmd_siblings' message): 12 killed.
    • X4 (shell_quoted at all five sites): 72 killed.
    • X5 (drop "neither of those is a family." from the remedy): survives with 72 passed, as expected, since remedies are untouched.

6. Gates (logs/gate243.out, logs/gate247.out)
Every gate ran under run10.sh with run10's -rs alone, CPython 3.12.3 and git-filter-repo a40bce548d2c (the 2.47.0 pin).

File ids git 2.43.0 git 2.47.1
new file 72 72 passed 72 passed
test_family_py_unreadable 75 75 passed 75 passed
test_family_refuse_up_front 79 79 passed 79 passed
test_family_siblings_placement + test_cli_reference 56 56 passed 56 passed
test_agents_md_codes 47 47 passed 47 passed
test_no_auto_maintenance 60 58 passed, 2 skipped 58 passed, 2 skipped
test_pinned_copy_text 87 87 passed 87 passed
test_family (alone, under flock) 156 156 passed 156 passed
test_family_members_not_a_list (alone, under flock) 156 156 passed 156 passed
test_path_guard_hygiene (alone, under flock) 121 121 passed 121 passed
test_repo_hygiene (alone, under flock) 101 101 passed 101 passed
  • Each leg is 1010 ids with rc=0.
  • Skips: the only ones are tests/test_no_auto_maintenance.py:222, 2 on each leg: "the session began with GIT_CONFIG_GLOBAL set, and its file includes that one".
  • Files main changed since f39c670 that name the three codes: none, checked against both a98fe7c and dcf63b8.
  • Local merge with main: I still ran the new file and test_pinned_copy_text on a local merge with main (ecbdff4c3, tree c4b10b034, never pushed). Both gits: 72 passed and 87 passed (logs/merge243.out, logs/merge247.out).
  • My first 2.43.0 attempt stopped at its collect step with no test run (a counting error in my script). I fixed it and reran the whole leg.

7. Merge-trees (heads read fresh, logs/merge-trees.txt)
All are clean (rc=0), and the trees equal the body's:

Against Tree
main a98fe7c c4b10b034
#1310 daaa5ad 693b8d500
#1284 86ab76d ef71ceb66
#1312 5235870 d70096e3a
#1326 e735920 ac3039304
#1209 01ee697 6416f902f
main dcf63b8 (fetched at 22:30Z; it only adds adopt-project.py and test_adopt_tracking_branch.py) e2255f43f

conftest.py and test_load_yaml_refusals.py keep the helpers the new file imports in every merged tree. A second gh pr list at 22:30Z showed the same heads.

8. The record

NITs and observation

Follow-up candidates (for Brett Heap's word; not filed or drafted)

Trees: /workspace/projects/openRepoShape-worktrees/rv1317-review is clean at d5a4fe6. /workspace/projects/openRepoShape-worktrees/rv1317-mut is clean, detached at the local merge ecbdff4c3. Nothing of mine is still running.

Lane: openreposhape-5 (openRepoShape-5)

…s `family-unreadable` and `family-wrong-kind` in `Family.open`, not #1288 (an open issue), so it is true on main whichever of #1310 and #1327 lands first

The docstring's first sentence said "#1288 spelled `family-unreadable` and
`family-wrong-kind` in `Family.open`". On main #1288 is open and those two
refusals still print the holder's path as typed: only #1310, #1288's draft,
spells them. If this PR landed before #1310, the sentence would be untrue on
main. It now says "#1310 spells" them, which holds whichever lands first.

Line 5 of the docstring is the only line that changes: no row, no import and no
other word of the file, and no change to scripts/family.py. rv1317's N1.

Part of #1317

Lane: openreposhape-5 (openRepoShape-5)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@sonarqubecloud

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author

Delta check of #1327 (Part of #1317) for lane openRepoShape-5, by rv1317b (sonnet), d5a4fe6..aa1c71e: READY

Verdict: no MUST and no SHOULD. There are 2 NITs and 1 observation, all in the new body text and none in the code. Every claim below comes from my own runs or reads, and I made no GitHub writes. My folder is /workspace/projects/.lane-worktrees/openRepoShape-5/work/rv1317b/ (gate scripts, logs/, merge-trees.txt, o1/ probe, saved live body). My tree is /workspace/projects/openRepoShape-worktrees/rv1317b-check, detached at aa1c71e797494ddf9d19a19981241f9a54c58f46 and clean. Nothing of mine is still running.

1. The diff

2. The commit

  • Author and committer are Brett Heap with the rules' service address.
  • The subject is 222 characters and names the file.
  • The last lines are Part of #1317, Lane: openreposhape-5 (openRepoShape-5) and Co-Authored-By: Claude Sonnet 5.5 <[email protected]>.
  • A closing-keyword grep over the message finds nothing, and the message is all ASCII.
  • The branch reads back at aa1c71e79 (git ls-remote and a fresh fetch at 23:27Z).

3. Gates (work/rv1317b/gate.sh, one pytest at a time, run10.sh, -rs alone)

  • Both legs ran at head aa1c71e79 with a clean tree: CPython 3.12.3 and git-filter-repo a40bce548d2c (the 2.47.0 pin).
  • Git 2.43.0 is /usr/bin/git. Git 2.47.1 is L/tools/git247/bin/git. In run10's PATH order command -v git resolves to git247, and ghstub and venv247/bin hold no git.
  • Run names were rv1317b-g243-* and rv1317b-g247-*.
call ids git 2.43.0 git 2.47.1
tests/test_family_root_paths_shown.py 72 72 passed 72 passed
tests/test_repo_hygiene.py (alone, under flock) 101 101 passed 101 passed
  • Skips: none on either leg. A SKIPPED grep over all four logs gives 0.
  • Not re-run by me: the other four gates in the body's Round 1 table were not in my brief. I read n1317b's logs instead (work/n1317b/logs/gate243.out and gate247.out). They show head aa1c71e79, dirty=0, and the same ids and results as the table. The 511 ids a leg is 72+70+87+60+121+101. The only skips are the 2 at tests/test_no_auto_maintenance.py:222 on each git, as the body says.

4. The body (live, read at 23:28Z, gh pr view 1327)

PR head state watched file
#1209 01ee69763 draft tests/conftest.py
#1284 86ab76db4 draft tests/test_load_yaml_refusals.py
#1310 daaa5ad8a draft scripts/family.py (the only other PR that touches it; base fix/1279-refusals-shown)
#1312 5235870f1 ready tests/conftest.py
#1326 e73592062 draft tests/conftest.py
#1327 aa1c71e79 draft this PR

No other PR touches the new test file. This matches the body, labels included (#1312 is "ready").

  • The tree values in the body's block all equal my merge-trees (section 5), and so does the head tree c0761ab29... and the full base sha f39c6707a99d9988abaf3197363e4d9753d49468.
  • Round 1 text:
    • The commit and head shas are right.
    • "One line changed (1 file, 1 insertion, 1 deletion)" is right.
    • scripts/family.py is as it was, and no row changed.
    • The comment cited as issuecomment-6781117827 exists on pull 1327, created 22:33:17Z, and starts with rv1317's READY line.
    • The gate table matches n1317b's logs, as above.
  • C1 to C4 at aa1c71e79: I read each line range in scripts/family.py. C1 to C3 match rv1317's report. rv1317 gave C4 no lines, so I checked n1317b's own.
item lines what is there
C1 :697-698 family-members-unrecognised prints {self.path}
C2 :6636-6637 member-git-dir-cached prints cached.as_posix()
C2 :6556 _deletion prints "It is this directory:" and {shown}; its rm -rf line is quoted
C3 :1212-1213 family-branch-not-utf8's pasted git -C ... branch -m remedy
C3 :10294-10295 family-index-locked's rm -f of the lock
C4 :564 "neither of those is a family."
C4 :10616 "not at the family folder around it."
C4 :10643-10647 the "as upstream-added. When ..." tail (but see NIT 2)
  • The cited test ranges hold what the body says. tests/test_family_add_refusals.py:443-470 is the family-members-unrecognised add row. :553-590 is the member-git-dir-cached row. tests/test_family_dry_run.py:787-809 is the bump and remove dry runs of family-members-unrecognised.
  • C4 holds. A grep of tests/, README.md, AGENTS.md and docs/ finds none of the three tails. The only hit, tests/test_family_init_asks_every_value.py:445, is an unrelated init sentence.
  • rv1317's X5 "72 passed" matches its report.
  • The record:
    • Part of #1317 appears once in the live body.
    • closingIssuesReferences is [] (read twice).
    • A strict closing-keyword regex (close|fix|resolve forms followed by a #N reference) finds 0 matches over the whole body, Sourcery's block included.
    • The only loose hits are "root resolved", "not as resolved", the branch name fix/1279-refusals-shown, and Sourcery's "Bug Fixes:".
    • The only non-ASCII character is the footer's robot emoji (U+1F916).
    • body-guard exits 0 on the live body and on its pre-Sourcery part, with both L/q/v113/body-guard.py and L/tools/body-guard.py.
    • The PR is still a draft on v1.2.2, base main.

5. Merge-trees (git 2.43.0, git merge-tree --write-tree <ref> aa1c71e79, heads read fresh at 23:29Z)
Head tree: c0761ab2990daa21d9cad0f05e5a6ad2559d87c5. Every merge is clean (rc=0).

against tree
main dcf63b8b9 2c3bf67a989b237a7419aa3a7b3a5bcaa38d5322
#1310 daaa5ad8a (the one the brief asks for) 26fb16f6fdd8d7481c9da8869a11ebe54a061ebf
#1209 01ee69763 d89d0101427700b7797a51d8d269c80d53cc171c
#1284 86ab76db4 b042588267681c588a1639232d4b7c91cf4f1905
#1312 5235870f1 97c5f2a74d6886d291b09299866e68f4d57736ec
#1326 e73592062 de6cd9f3fc4e02143e3cad14693ee28d91d3b6f8

In the #1310 merge, scripts/family.py holds 28 shown_path( lines, which is the head's 26 plus #1310's 2.

Findings

Lane: openreposhape-5 (openRepoShape-5)

@brettheap

Copy link
Copy Markdown
Contributor Author

(lane openRepoShape-5, 2026-11-10T23:34Z) #1327's body, edited for rv1317b's NIT 1, NIT 2 and its observation. The head is unchanged, at aa1c71e79.

#1327 is READY at aa1c71e79: its independent review (rv1317) and this delta check found no MUST and no SHOULD. It waits for v1.2.1's tag and its v1.2.2 turn.

Lane: openreposhape-5 (openRepoShape-5)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant