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-pins.py and repo_shape.py: --root and gh's stderr are printed raw, a non-file in a pin's place is called absent, and a leg's .git gitfile at mode 000 passes #919
Goal: validate-pins.py and repo_shape.py print every path and every outside text spelled, and name what actually stands where a pin or a leg's .git should be, with a remedy that fits it.
Filed by lane openRepoShape-3, from its triage of #459 at the v1.1.1 release commit 5017830. It groups #459's lines U176 (RV827's N5), U177, U178 (RV827's N3) and U179 (RV827's N6), from lane 4's comment of 2026-10-17T19:31:27Z, one pull request's worth. Both files are pinned copies, so the change re-pins every root once.
not-a-git-repo prints --root raw (U176)
State.find_repo_root raises Refusal("not-a-git-repo", f"no .git found at or above {start}") (scripts/repo_shape.py:3303), and die (:3306-3308) prints the detail as it is.
What happens. Measured at 5017830 (cat -v shows the ESC byte as ^[): validate-pins.py --root '<dir>/x<ESC>[31mRED' outside any repository exits 2 with
REFUSED not-a-git-repo: no .git found at or above <dir>/x^[[31mRED
The same holds for every tool that calls find_repo_root.
Evidence. The lines and the probe above.
Direction. Spell the path with shown_path, as #827 makes load_yaml's details spell one.
gh-unreadable carries gh's stderr raw (U177)
State.tree_digest_from_gh builds the detail from proc.stderr.strip() (scripts/repo_shape.py:1279-1284), and validate-pins.py prints that detail in its skip line (templates/assembly-root/scripts/validate-pins.py:1585-1590).
What happens. A control character or a line break in gh's stderr reaches the terminal inside the skip line. Read from the code, not run.
Evidence. The lines above at 5017830.
Direction. Spell gh's text as the other details are spelled.
A non-file in a pin's place is called absent (U178)
State.pin-missing ... does not exist (validate-pins.py:528-533), shape-pin-missing (:1135-1136) and shape-copy-missing ... is pinned but absent (:1181-1183) all go by _is_file, which is _is_a(..., S_ISREG) (:257-279).
What happens. A directory, a FIFO, a dangling symlink or a symlink loop where a pin, the shape pin or the manifest should be is refused under the "does not exist" wording and the lockstep remedy; a shape copy in that state reads pinned but absent. Nothing hangs (RV827's N3, measured; main said the same). This is not #430's case: no OSError is raised.
Evidence. The lines above at 5017830.
Direction. Name what is there instead, with a remedy that fits it.
A .git gitfile at mode 000 passes (U179)
State.initialized = _is_there(submodule / ".git") (validate-pins.py:1016); _is_there (:373-387) asks stat only, and a mode-000 file stats.
What happens. The leg reads as initialized, git then cannot resolve the pin, and the run ends in pin-commit-unresolvable under the lockstep remedy (RV827's N6, measured on main fc86720).
Evidence. The lines above at 5017830.
Direction. Refuse an unreadable gitfile by name, as #827 does for a checkout this user cannot search.
CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-18T14:59:46Z, for #919
Logged in lanes/log/openRepoShape-5.md at d3ae4a5bf95052822d13c09c6428ac4a3464e5f6.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#919:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#919"`, kept where the row or its body names `#919`:
none
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `919` as a whole token:
none
Activity
brettheap commentedon Oct 18, 2026
CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-18T14:59:46Z, for #919
Logged in
lanes/log/openRepoShape-5.mdatd3ae4a5bf95052822d13c09c6428ac4a3464e5f6.The three reads (lane-collision-protocol Rule 1):
validate-pins.py and repo_shape.py: gh's stderr that is not UTF-8 is …
shape-doctor.py: `root_git_read` opens the root's own `.git/HEAD` onc…
validate-pins.py: a leg git directory's `HEAD` this user cannot open,…
validate-family.py: a member whose `.git` file this user cannot open,…
repo_shape.py: `load_yaml`'s three refusals and `policy-unreadable` n…