Skip to content

repo_shape.py, path_classify.py, bump-leg.py, validate-repository-naming.py, adopt-project.py, update-shape.py and the root's validate-manifest.py: eight unreadable and not-a-mapping refusals still print the path as typed, so a bidi control or an ESC in it reaches the terminal raw (follow-up to #1168) #1279

Open

Description

@brettheap

Follow-up to #1168. It is filed on the SHOULD in lane 5's independent review of #1274 (issuecomment-6742338962).

What #1274 does, and what it leaves. #1274 (for #1168) names the file through shown_path in load_yaml's three refusals and in policy-unreadable. The last "State" paragraph of #1168 also names the "not a mapping" refusals beside load_yaml. #1274 does not touch those lines, so nothing here is a regression.

Measured at #1274's head e39b5d7e3 by lane 5's reviewer rv1274b. The runs were real, with a stub gh first on PATH: once over a folder whose name holds U+202E, once over one whose name holds an ESC. The control, policy-unreadable, prints '...wd-pl\u202ean/...', quoted and spelled. These eight print the raw U+202E and the raw ESC to stderr, and exit 2 (line numbers at e39b5d7e3):

code site
policy-wrong-kind scripts/repo_shape.py:2253
manifest-unreadable scripts/validate-repository-naming.py:1140
bump-leg-manifest-unreadable scripts/bump-leg.py:236
path-policy-unreadable scripts/path_classify.py:185
path-policy-wrong-kind scripts/path_classify.py:188
plan-unreadable adopt-project.py:6683 (#1177's diff spells this one with _shown)
update-pin-unreadable update-shape.py:841
manifest-unreadable (the root's) templates/assembly-root/scripts/validate-manifest.py:1438

Two more sites raise the same codes and were not probed: scripts/bump-leg.py:589 and templates/assembly-root/scripts/validate-pins.py:2148. Check them too.

Expected. Each refusal names the file the way policy-unreadable does after #1274. That is through shown_path, or through the tool's own copy of it where the skew rule wants a shipped tool to carry its own (validate-pins.py's _shown, adopt-project.py's _shown). A printable path prints byte for byte as it does now.

Acceptance. One row per refusal above, with U+202E, an ESC and a line feed in the path. Each row fails on main and passes with the fix, and the printable lines stay unchanged.

Lane: openreposhape-5 (openRepoShape-5)

Activity

  1. brettheap commented on Nov 9, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-11-09T16:40:46Z, for #1279

    Logged in lanes/log/openRepoShape-5.md at c6abc3df3fdeb76ccdf67f0d1c89ec118ea90bf7.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1279:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1279"`, kept where the row or its body names `#1279`:
    1274	repo_shape.py: `load_yaml`'s three refusals and `policy-unreadable` name the file as `shown_path` does, and validate-pins.py, family.py and shape-doctor.py read either spelling (#1168)	fix/1168-load-yaml-shown	OPEN
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1279` as a whole token:
       none
    
  2. added this to the v1.2.2 milestone on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions