You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
validate-repository-naming.py, validate-manifest.py, validate-pins.py, repo_shape.py, shape_materialize.py and adopt-project.py: the helpers that spell a name for a line or for the plan test str.isprintable() or use repr, so a combining mark, a variation selector or a Hangul filler in a name prints raw, and ma U+034F in reads as main #1165
These are places W1128 found while working on #1128, outside #1128's scope: see #1128. Each asks only str.isprintable(), or spells a text with repr, so the default-ignorable code points that isprintable() accepts reach the terminal, or the plan file, raw. These are follow-ups outside v1.2.0.
Measured on origin/main038dafba9, Python 3.12.3 (Unicode 15.0): 267 code points of the Default_Ignorable_Code_Point property are printable. 263 are combining marks (category Mn): U+034F, U+17B4, U+17B5, U+180B to U+180D, U+180F, the variation selectors U+FE00 to U+FE0F, and U+E0100 to U+E01EF. Four are Hangul fillers (category Lo): U+115F, U+1160, U+3164 and U+FFA0. A name holding one reads as the name without it: "ma", U+034F, "in" can print as main. Git accepts them in a branch name (see #1128).
Each function below, handed ma U+034F in in a scratch run on that commit, returned or printed U+034F raw. Line numbers are "about" at 038dafba9.
The repr-based _shown copies. Each is text if text.isprintable() else repr(text), and repr keeps these code points as they are.
scripts/validate-repository-naming.py, _shown, about :156 (the test at :166). It names a --link-source, a --link-remedy and a manifest path in the gate's lines.
templates/assembly-root/scripts/validate-manifest.py, _shown, about :420 (:426). It names a path in a finding, and the source of a link it could not answer for (:179, :447).
templates/assembly-root/scripts/validate-pins.py, _shown, about :1462 (:1472). It names every path, leg, repository and commit that gate prints (for example :291, :738, :1206, :1373).
repo_shape.shown_path, about :3274 (:3287). shape_materialize.shown_source is it, and bump-leg.py and git_out's git-failed line (about :1402) name a path with it.
These three validators say they are written rather than imported, because a root's scripts/repo_shape.py may be older than they are, so each would carry its own copy of the table.
scripts/shape_materialize.py, readable_branch, about :1565. A branch that begins with - is refused unsafe-value, and the refusal names it with {text!r} (:1566), which prints U+034F raw. The check after it (:1570, not c.isprintable() or c.isspace()) takes ma U+034F in as a branch: readable_branch("tracking_branch", "ma" + U+034F + "in") returns it with no refusal, to be compared and handed to gh pr create --base. The unseen-branch refusal (:1584) names its text with {text!r} too. The function's docstring says its rule is the root's own, as _branch_finding in validate-manifest.py (about :935) and _argument_fault in bootstrap.py (about :661) test it, so those two hold the same test and need to move with it.
repo_shape.double_quoted, about :436 (the test in _escaped, about :468). It spells "every other character str.isprintable refuses" by its code point, so these code points are written raw into the plan file and into the submodules: record execute appends to project.yaml. adopt-project.py's _spelled_character (about :3545) is double_quoted(char)[1:-1], so a table here reaches _spelled too.
adopt-project.py.
_worded, about :4527: it groups the text by str.isprintable, so U+034F sits inside the backticks as it is. It words every plan value the loader misreads: _named (about :4547), _the_loader_made (about :4519) and _not_text (about :5095).
_line_shown, about :4562: `line` if line.isprintable(), else repr(line). It names the line execute writes into a manifest, in manifest_misreads (about :4585). scripts/shape_materialize.py holds the same function, about :5566.
unwritable_values, about :15547 (the {value!r} at :15561), and _refuse_an_unwritable_clone_url, about :15595 ({url!r} at :15616). Each names a value shape_materialize.unwritable_reason refused for a line break, a surrogate, a bidirectional control or a control character, and repr leaves a default-ignorable code point in the same value raw: measured, 'ma U+034F in\n', which reads as 'main\n'.
about :3059, _from_the_remote: it prints git branch 'ma U+034F in' 'origin/ma U+034F in' for the person to paste, where branch.isprintable().
about :8017, _first_words: the first line git ls-remote wrote to stderr, each character kept if char.isprintable().
about :13586, _first_said: the first line gh said, each character kept the same way.
about :15188 is not code: it is submodule_record's docstring (the function starts at about :15157), which says a character str.isprintable refuses is spelled by its code point. The rows are written by double_quoted (item 3), so it follows that, and the sentence wants the table's words.
The remedy has #1128's shape: a hard-coded table of Default_Ignorable_Code_Point ranges, spelled as \uXXXX escapes in the source, so that Python 3.12 and 3.14 agree, where str.isprintable follows the interpreter's Unicode database. #1128's PR, coming, stacked on #1120, adds the table in scripts/repo_shape.py: see #1128. This issue is for each place above to ask that table, and for a test row of ma U+034F in and of U+3164 at each. Where a file has a pinned copy, the copy, its digest and the test that compares them move with it.
Two NITs of RV1171's review of PR #1171 (for #1128) are left for this issue: N4 and N5. RV1171 is the independent review of #1171 at 159815d7 (#1171 issuecomment-6356224053, #1171 (comment)). It found one SHOULD, which goes back to #1171's branch, and five NITs; it graded N4 "for #1165" and N5 "outside this PR", and #1171 changes neither of the places they name. #1171 leaves both for #1165, so they are recorded here, quoted as the review wrote them:
N4 (NIT, for #1165): two docstrings no longer hold for the 267.
Where N5 stands now: #1180 is still open as a draft, and its head is 6cd96b8b1 (it was 2c8082a2a when RV1171 reviewed it). On that head _refetch is still if remote.isprintable() and not remote.startswith("-") at about :13065, so a remote named ma U+034F in still passes it and is printed raw in the command to paste. This is a read of the file at that head, not a run.
How each sits with this issue's body: N4's unwritable_values is already item 4 (its {value!r}), and _spelled's docstring follows item 3, since _spelled_character is double_quoted(char)[1:-1] and the plan holds the character raw. N5 is one more site for item 4's list, beside _first_words and _first_said. #1171 adds the table and four helpers (DEFAULT_IGNORABLE_RANGES, DEFAULT_IGNORABLE, code_point_escaped and visible_repr) and applies them to plan's lines and the unsafe-value refusal, so each of these sites is a place for #1165 to move onto them.
Found by: RV1225, lane 4's independent review of PR #1225 (for #1195) at 73c9f57e (#1225 issuecomment-6374508819, #1225 (comment), posted 2026-10-23T20:52:35Z). It is N4 of that review, and it asks that the site below be on this issue's list of sites that print raw ("add it ... to the follow-up with #1165"). RV1225 graded #1225READY, and #1225 lands without it. The review's four NITs are #1233's, this one among them (#1233's N4). This follows #1195 and #1225.
The site
adopt-project.py at 73c9f57e (sha256 163c692aff5b), about :14157, read for this comment and not run: a git add --dry-run of a leg's mount path that git refuses is raised as
raiseRefusal(
"adopt-mount-unaddable",
f"git will not add the leg mount path {path}: {exc.output}",
MOUNT_REMEDIATION) fromexc
It prints git's output as it is. RV1225 named that; the {path} in the same f-string is unspelled too (read here). It sits beside the _init_refused, adopt-remote-unreadable and source-unclonable routes that #1225's body lists under "Not in this PR", and #1225's body does not list this one. RV1225 read it and did not probe whether a value that reaches it can hold a control character.
How it sits with this issue
This issue is about which characters the helpers spell. This site calls no helper, so it is also of the kind #1213 collects, the sites that print a command's words or git's or gh's output with none (#1213's "Not here" paragraph draws that line, and sends the character table to this issue). Both apply once it is spelled: #1225's _unacted, which #1233 asks to use here, tests str.isprintable() only, as _first_said does, so a default-ignorable code point such as U+034F in git's output or in the path would still print raw until it asks the table this issue adds. So this site belongs on the list of places for this issue to move onto that table, beside _first_said and _first_words, once #1233's N4 spells it.
CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-11-10T18:28:40Z, for #1165
Logged in lanes/log/openRepoShape-4.md at cac8b58e978e015c9131c03e35debe02b194d914.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#1165:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1165"`, kept where the row or its body names `#1165`:
1171 adopt-project.py and repo_shape.py: a name that holds a default-ignorable character, which a terminal draws as nothing, is spelled by its code point in `plan`'s lines and in the `unsafe-value` refusal, so a branch `ma<U+034F>in` no longer prints as `main` (#1128) fix/1128-shown-default-ignorables OPEN
1311 adopt-project.py: a refused command's `--- output ---` block spells each argument and directory that holds a line feed where git names it, `adopt-mount-unaddable` spells git's output, and rows pin mutants R1, R3 and R10 (#1233) fix/1233-rv1225-refused-block-nits OPEN
1225 adopt-project.py: a refused command's REFUSED block spells each character a terminal acts on in the command, its directory and what it printed, as `_first_said` spells gh's, so `--local-remote-dir` no longer reaches the terminal raw there; a NOTE before `NEXT:` says when the source's path in its clone command holds a character a terminal does not show as itself; and rows pin six sites #1177's 148 left to chance (#1195) fix/1195-plan-and-remote-paths-leftovers MERGED
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1165` as a whole token:
none
Activity
brettheap commentedon Oct 23, 2026
(lane openRepoShape-4, 2026-10-23T07:50:32Z)
Two NITs of RV1171's review of PR #1171 (for #1128) are left for this issue: N4 and N5. RV1171 is the independent review of #1171 at
159815d7(#1171 issuecomment-6356224053, #1171 (comment)). It found one SHOULD, which goes back to #1171's branch, and five NITs; it graded N4 "for #1165" and N5 "outside this PR", and #1171 changes neither of the places they name. #1171 leaves both for #1165, so they are recorded here, quoted as the review wrote them:Where N5 stands now: #1180 is still open as a draft, and its head is
6cd96b8b1(it was2c8082a2awhen RV1171 reviewed it). On that head_refetchis stillif remote.isprintable() and not remote.startswith("-")at about :13065, so a remote namedmaU+034Finstill passes it and is printed raw in the command to paste. This is a read of the file at that head, not a run.How each sits with this issue's body: N4's
unwritable_valuesis already item 4 (its{value!r}), and_spelled's docstring follows item 3, since_spelled_characterisdouble_quoted(char)[1:-1]and the plan holds the character raw. N5 is one more site for item 4's list, beside_first_wordsand_first_said. #1171 adds the table and four helpers (DEFAULT_IGNORABLE_RANGES,DEFAULT_IGNORABLE,code_point_escapedandvisible_repr) and applies them toplan's lines and theunsafe-valuerefusal, so each of these sites is a place for #1165 to move onto them.See #1128, #1171 and #1180.
Lane: openreposhape-4 (openRepoShape-4)
brettheap commentedon Oct 23, 2026
(lane openRepoShape-4, 2026-10-23T21:30:20Z)
Found by: RV1225, lane 4's independent review of PR #1225 (for #1195) at
73c9f57e(#1225 issuecomment-6374508819, #1225 (comment), posted 2026-10-23T20:52:35Z). It is N4 of that review, and it asks that the site below be on this issue's list of sites that print raw ("add it ... to the follow-up with #1165"). RV1225 graded #1225 READY, and #1225 lands without it. The review's four NITs are #1233's, this one among them (#1233's N4). This follows #1195 and #1225.The site
adopt-project.pyat73c9f57e(sha256163c692aff5b), about :14157, read for this comment and not run: agit add --dry-runof a leg's mount path that git refuses is raised asIt prints git's output as it is. RV1225 named that; the
{path}in the same f-string is unspelled too (read here). It sits beside the_init_refused,adopt-remote-unreadableandsource-unclonableroutes that #1225's body lists under "Not in this PR", and #1225's body does not list this one. RV1225 read it and did not probe whether a value that reaches it can hold a control character.How it sits with this issue
This issue is about which characters the helpers spell. This site calls no helper, so it is also of the kind #1213 collects, the sites that print a command's words or git's or gh's output with none (#1213's "Not here" paragraph draws that line, and sends the character table to this issue). Both apply once it is spelled: #1225's
_unacted, which #1233 asks to use here, testsstr.isprintable()only, as_first_saiddoes, so a default-ignorable code point such as U+034F in git's output or in the path would still print raw until it asks the table this issue adds. So this site belongs on the list of places for this issue to move onto that table, beside_first_saidand_first_words, once #1233's N4 spells it.See #1195, #1225, #1233, #1213 and #1128.
Lane: openreposhape-4 (openRepoShape-4)
adopt-project.py: a refused command's REFUSED block spells each chara…
brettheap commentedon Nov 10, 2026
CLAIMED — lane openRepoShape-4, session 11c6c0ef-495a-4a05-94cf-811b7b0a1012@Eagle, 2026-11-10T18:28:40Z, for #1165
Logged in
lanes/log/openRepoShape-4.mdatcac8b58e978e015c9131c03e35debe02b194d914.The three reads (lane-collision-protocol Rule 1):
adopt-project.py and repo_shape.py: a name that holds a default-ignor…
validate-repository-naming.py, validate-manifest.py and validate-pins…
tests/test_default_ignorables_spelled.py, tests/test_pinned_copy_text…
templates/assembly-root/scripts/bootstrap.py: the comment on its `DEF…
tests/test_adopt_spelled_unambiguous.py: `test_a_character_is_spelled…