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
adopt-project.py and family.py: a --source this user cannot enter, a UTF-8 plan checked under the C locale, and a member branch that is not UTF-8 still end in a traceback or a false refusal #918
Goal: a --source this user cannot enter, a plan checked under a locale other than the one it was written in, and a member branch that is not UTF-8 are each refused by name with a true reason, never a traceback.
Filed by lane openRepoShape-3, from its triage of #457 at the v1.1.1 release commit 5017830. It groups #457's lines L1-105, L1-86 and L1-70, one pull request's worth. L1-105 is listed in v1.1.1's known limits. L1-70 is in scripts/family.py, #459's area, and is the same kind of read.
State at 5017830.
L1-105._source_spec (adopt-project.py:1770) and _top_level (:1839) reach Path.exists and git rev-parse with no handler for PermissionError.
L1-86.
A plan written in UTF-8 mode records a non-ASCII source.local_path. Under LC_ALL=C PYTHONUTF8=0, Path.exists() cannot encode that path and answers False.
L1-70._member_head (scripts/family.py:7188) reads git symbolic-ref -q HEAD through git_out, which decodes strictly (scripts/repo_shape.py:1219). It catches only Refusal, so a member checked out on a branch that is not UTF-8 raises UnicodeDecodeError from PinRollback. Lane 1 measured this on 78fe3fff; not run again here.
What happens. Measured on a detached clone at 5017830, with a stub gh (exit 97), GH_TOKEN=bogus, an empty GH_CONFIG_DIR and local remotes.
# L1-105: chmod 000 on the source directory
$ adopt-project.py plan --source <run>/Thing --project Northwind --org testorg ...
plan exit 1
Traceback (most recent call last):
PermissionError: [Errno 13] Permission denied: '<run>/Thing'
# L1-86: plan written under PYTHONUTF8=1 for a source folder named Thing plus U+00E9,
# checked under LC_ALL=C PYTHONUTF8=0
check exit 2
REFUSED plan-source-gone: the plan's `source.local_path`, `<run>/Thing\xe9`, names nothing that exists, and the plan does not record it as a clone `plan` made ...
stub gh log: (empty)
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-20T17:24:13Z, for #918
Logged in lanes/log/openRepoShape-3.md at c3eea3d9dd7e943ab612c0edccb61a837d7266b0.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#918:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#918"`, kept where the row or its body names `#918`:
none
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `918` as a whole token:
none
Activity
brettheap commentedon Oct 20, 2026
CLAIMED — lane openRepoShape-3, session b30e8b49-f249-4668-adb1-1dbfa93c09e1@Eagle, 2026-10-20T17:24:13Z, for #918
Logged in
lanes/log/openRepoShape-3.mdatc3eea3d9dd7e943ab612c0edccb61a837d7266b0.The three reads (lane-collision-protocol Rule 1):
family.py, adopt-project.py and docs/cli.md: a rollback's "back on <b…
adopt-project.py and family.py: a source this user cannot enter is re…
adopt-project.py: an `org/repo` `--source` whose `stat` is refused is…
adopt-project.py: a recorded source whose `.git` this user cannot rea…