Skip to content

setup-project.py and validate-repository-naming.py: step (4) reads a checkout beside the standard that step (5) never reads and names one --pin-source two ways, and --link-remedy splits a link at =, keeps padding and is never noted unused #907

Closed

Description

@brettheap

Goal: setup's step (4) reads, names and offers exactly what step (5) does, and the naming gate's --link-remedy takes a link and its words the way --link-source takes a key, with a test for each.

Filed by lane openRepoShape-3, from its triage of #459 at the v1.1.1 release commit 5017830. It groups #459's lines U061 and U169 (L2-62 and L2-98, one item), U170 (L2-99), U171 (L2-100), U173 (L2-102) and U174 (L2-103), one pull request's worth.

Step (4) reads a checkout beside the standard (U061, U169)

State. setup-project.py:2499-2501 runs validate-repository-naming.py with cwd=shape_root. For names on its command line the gate takes Path.cwd() as the root (scripts/validate-repository-naming.py:1194), and resolve_link_source reads <root>/../<link> as a rule before a bare --link-source (scripts/repo_shape.py:3133 onward). The scaffold reads no checkout beside anything.

What happens. A standard whose parent folder holds a checkout named after a chain link answers for that link in step (4) and never in step (5). Lane 2 measured it at dde7ef8: with openXdox/ (declaring openDox) beside the standard and --pin-source a tree declaring openYdox, step (4) says the --pin-source tree is not used and the chain openXdox -> openYdox -> openDox is broken, while step (5) reads that same tree and classifies the name as a descendant through that chain.

Evidence. The three lines above at 5017830; #459's L2-62 (2026-10-15T21:23:02Z) and L2-98 (2026-10-16T20:11:00Z).

Direction. Run step (4)'s gate from an empty temporary folder; that changes no pinned copy. One test row: a standard whose parent holds openXdox/ declaring openDox, with a --pin-source declaring openYdox.

A chain link holding = (U170)

State. _link_remedy takes the link from value.partition("=") (scripts/validate-repository-naming.py:178), and setup hands the gate --link-remedy=%s=%s for each holder (setup-project.py:2483).

What happens. For --referent-chain openXdox,open=y,openDox, the words for open=y are read as the link open, so step (4) gives open=y the gate's own words and offers --link-source open=y=<path>, a flag setup does not take; step (5) then refuses chain-link-malformed. Nothing is created.

Evidence. The two lines above at 5017830; L2-99, measured by lane 2 at dde7ef8.

Direction. Refuse a link holding = in step (4) in step (5)'s chain-link-malformed words, or have _link_remedy read the text before the first = as a link only when a chain this run reads names it. The gate is a pinned copy, so it re-pins every root.

One --pin-source named two ways (U171)

State. Setup hands the value to the gate bare (setup-project.py:2414); the scaffold resolves it against the folder it runs in, the standard's checkout, and names the resolved path, though pin_digest_from_source's docstring says "THE PATH IS NAMED AS TYPED" (scripts/shape_materialize.py:3129).

What happens. With --pin-source ./nowhere/ and the chain openXdox,openDox, lane 2 measured at dde7ef8 (L2-100):

step (4): WARNING link-source-unreadable: nowhere (--pin-source) could not answer for openXdox: no such file or directory
step (5): REFUSED pin-source-unreadable: <standard>/nowhere could not answer for opensoft/openXdox @ <commit>: no such directory

A blank --pin-source ' ' is a blank in step (4) and <standard>/ in step (5).

Evidence. The lines above at 5017830; this triage's probe reproduced both spellings there (nowhere (--pin-source) from the gate as setup calls it, and the resolved path from the scaffold's dry run).

Direction. Name the value once: step (5) as typed, or step (4) as step (5) resolves it. One test row for ./nowhere/.

--link-remedy padding, and no "not used" NOTE (U173)

State. _link_remedy tests text.strip() and returns text as typed (scripts/validate-repository-naming.py:184). unused_lines (:484-510) lists --link-source values only.

What happens. --link-remedy 'openXdox= padded' prints "which is not reachable here ( padded)". A --link-remedy for a link no chain names is ignored with no NOTE, where an unused --link-source gets one. Setup reaches neither; they are for the gate used by hand.

Evidence. The lines above at 5017830; L2-102, measured at dde7ef8.

Direction. Strip the words, and give unused_lines a NOTE for a remedy no holder used. Pinned copy.

Test gap: a label on a keyed --link-source (U174)

State. LinkSources._record replaces the flag by the label only for a bare value (if rule == "bare" and self.label:, scripts/validate-repository-naming.py:393). The labelled rows in tests/test_chain_remedy_callers.py (:244, :255, :267) all pass a bare value.

What happens. Lane 2 made the line if self.label: at dde7ef8; the gate then named a keyed value by the label, (--pin-source), a flag the person did not type, and the three chain test files stayed at 302 passed.

Evidence. The lines above at 5017830; L2-103.

Direction. One row: the gate given --link-source-label=--pin-source and --link-source openXdox=<missing>, asserting (--link-source openXdox=...).

Size: M.

Lane: openreposhape-3 (openRepoShape-3)

Activity

  1. added this to the v1.2.0 milestone on Oct 18, 2026
  2. brettheap commented on Oct 18, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-18T16:09:28Z, for #907

    Logged in lanes/log/openRepoShape-3.md at 7d2d559b6d3f50e6932f0f4aea1f64b22ce12333.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#907:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#907"`, kept where the row or its body names `#907`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `907` 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