Skip to content

bump-leg.py, family.py, update-shape.py and the roots' validate-manifest.py, bootstrap.py, siblings.py and validate-family.py: fourteen missing, unreadable and wrong-kind refusals still print the path as typed, so a bidi control, an ESC or a line feed in it reaches the terminal raw (follow-up to #1279) #1288

Open

Description

@brettheap

Follow-up to #1279. It is filed from item 4 of lane 5's independent review of #1284 (the PR for #1279): issuecomment-6752099605.

What #1279/#1284 do, and what is left. #1284 makes seven unreadable or not-a-mapping refusals name the file the way shown_path does (#1274 had done load_yaml's three and policy-unreadable). Its writer, n1279, read the code and listed more refusals that print a path raw. The reviewer, rv1284, probed them at #1284's head 771667f10 and at a predicted merge with main. It probed validate-family.py again at main 9cb156a98.

Measured. The runs were real, with a stub gh first on PATH, over a folder whose name holds U+202E, then an ESC, then a line feed. Every site below prints the U+202E and the ESC raw and lets the line feed forge a second line, and exits 2. Line numbers are at main 9cb156a98; the code and the words are each refusal's own.

code site
bump-leg-root-not-a-project scripts/bump-leg.py:226
bump-leg-wrong-kind scripts/bump-leg.py:240
manifest-missing templates/assembly-root/scripts/validate-manifest.py:1431
family-unreadable scripts/family.py:576
family-wrong-kind scripts/family.py:579
family-manifest-missing templates/family-root/scripts/bootstrap.py:1979
family-manifest-unreadable templates/family-root/scripts/bootstrap.py:1986-1987
family-manifest-unreadable templates/family-root/scripts/siblings.py:1618-1619 (raw, but a family.yaml that is a list never reaches it: bootstrap.members_of refuses first, with the same code and words)
shape-pin-missing templates/family-root/scripts/validate-family.py:1704
shape-pin-unreadable templates/family-root/scripts/validate-family.py:1711
family-manifest-missing templates/family-root/scripts/validate-family.py:4587
family-manifest-unreadable templates/family-root/scripts/validate-family.py:4596-4597
update-pin-missing update-shape.py:805
update-pin-commit update-shape.py:845

Read, not probed: check_pin in update-shape.py also names {pin_path} raw in update-pin-digest-definition (:850), update-pin-row (:867 and :874) and update-pin-no-files (:880).

Not a regression: neither #1274 nor #1284 touches these lines.

Expected. Each refusal names the path the way shown_path does, or through the tool's own copy of it where the skew rule wants a shipped tool to carry one. templates/*/scripts/* are pinned copies, so they add no import from repo_shape.py that an older pinned copy lacks. A printable path prints byte for byte as it does now. Mind SonarCloud's new-duplication gate (3%) for any new pinned copy: use the copy a tool already carries where it has one.

Acceptance. One row per site above (the check_pin ones included, once probed), each 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. added this to the v1.2.2 milestone on Nov 9, 2026
  2. brettheap commented on Nov 10, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-11-10T10:28:04Z, for #1288

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

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#1288:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#1288"`, kept where the row or its body names `#1288`:
    1284	repo_shape.py, path_classify.py, bump-leg.py, validate-repository-naming.py, update-shape.py and the root's validate-manifest.py: not-a-mapping and wrong-kind refusals name the file as `shown_path` does, so no U+202E, ESC or line feed is raw (#1279)	fix/1279-refusals-shown	OPEN
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `1288` as a whole token:
       none
    
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