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 check: a root-kept symlink into the clone's .git, or through a kept link to a declared pin's file, passes, or is refused for a reason that is not true #904
Goal: a symlink the plan keeps in the root, where it leads into the clone's own .git or through a kept link to a declared pin's file, is refused before any leg exists for a reason that is true, or adopted with the shape's copy beside it.
Filed by lane openRepoShape-3, from its triage of #457 at the v1.1.1 release commit 5017830. It groups #457's lines L1-J1, L1-J2, L1-K2 and L1-K9, with L1-K8 as a rider, one pull request's worth.
State at 5017830.
CLONE_GIT (adopt-project.py:8715) names what a clone's .git holds.
CLONE_GIT_TREES (:8720) counts .git/objects, .git/refs, .git/logs and .git/modules whole. The comment above them (:8706-8714) says a link to a place there that holds no file writes the shape's file into .git, or stops the run after both legs exist.
A .. step in a link AT a shape path is asked of a check that never counts the clone's .git.
_kept_pin_findings (:644) asks the kept tree for a pin's file at its literal path, and follows no link.
plan-root-blocks-shape-copy ends "and execute would write the copy through ... after both leg repositories were created and pushed" (:6242-6258), and tests/test_adopt_root_shape_paths.py:339 asserts it. But execute refuses before any leg, and place() writes nothing over such a link.
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. Every null leg: was answered root.
# L1-J1: CLAUDE.md -> .git/refs/remotes/origin/main
check exit 0
plan ok
# L1-J2: CLAUDE.md -> .git/refs/../HEAD
check exit 1
FINDING plan-root-symlink: the plan keeps `CLAUDE.md` in the root, a symlink to `.git/refs/../HEAD`, and `CLAUDE.md`, a path the shape writes, runs through it, but it passes through `.git/refs`, which is not a directory in the assembly root. ...
# L1-K2: contracts -> governance, governance/ kept in the root,
# governance/openglass-pin.yaml a file, --pin openGlass@<commit> --pin-source <clone>
check exit 0
plan ok
.git/refs is a directory in the clone. The governance/openglass-pin.yaml case was measured by L1-K2 on 8beb3d92 through to the first bootstrap: execute says adoption verified, then REFUSED yaml-unparsable.
Rider (L1-K8, unsettled)..git/reftable, which git 2.45 and later make under the reftable backend, is in neither CLONE_GIT nor CLONE_GIT_TREES. So a link AT a shape path to it would be refused where the shape's copy could go beside it. Read only: this host's git is 2.43, which has no reftable backend. Measure it on git 2.45 or later.
Direction.
Name what a fresh clone's .git holds under those four directories, instead of counting them whole.
For a link AT a shape path, let the .. step count the clone's .git as the end of a target does, and keep the refusal for a link ABOVE one.
Ask for a declared pin's file through the kept links, as the root walk does for the shape's own paths.
Say what the materializer does in plan-root-blocks-shape-copy, and fix the test's docstring and assertion.
CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-20T17:19:00Z, for #904
Logged in lanes/log/openRepoShape-5.md at 14b9b843a3f4af256a71f49f69506c83c9b286e3.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#904:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#904"`, kept where the row or its body names `#904`:
965 adopt-project.py: `check` names a symlink target with a NUL after its first byte, or over 4095 bytes, as `plan-bad-symlink-target` before any leg exists, one finding names a link at `project.yaml`, and the targets are read in one batch (#908) fix/908-symlink-target-nul-length MERGED
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `904` as a whole token:
none
Activity
brettheap commentedon Oct 20, 2026
CLAIMED — lane openRepoShape-5, session 50cede29-ab82-4ca3-9f67-d98e1a58c8d2@Eagle, 2026-10-20T17:19:00Z, for #904
Logged in
lanes/log/openRepoShape-5.mdat14b9b843a3f4af256a71f49f69506c83c9b286e3.The three reads (lane-collision-protocol Rule 1):
adopt-project.py: `check` names what the clone's `.git` holds as git …
Merge remote-tracking branch 'origin/main' into fix/1089-named-link-s…
tests/test_path_guard_hygiene.py and shape-doctor.py: a bare is_file/…
tests/test_adopt_root_symlinks.py: a row puts a directory the root ke…
adopt-project.py: a recorded source whose `.git` this user cannot rea…