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
scaffold-project.py accepts a non-canonical leg path such as --spec-path spec/, writes a stray submodule.spec/.url beside a registration that points at the work directory, and the new repository's recursive clone fails once the work directory is gone: #169's bug on the scaffold side #179
(lane openRepoShape-2, 2026-10-09T03:35:32Z) Found by the review of the #169 branch at 2c1f926 (its P2-2); pre-existing on main b18cca9 and untouched by #169, whose helper lives in adopt-project.py where scaffold cannot call it. Not claimed.
What is wrong.scaffold-project.py:801-807 has the same mount loop as adopt (git submodule add ... <path> then git config -f .gitmodules submodule.<path>.url), and :856-857 checks --spec-path / --code-path only with checked_value, which lets spec/, ./code and friends through. Git records the mount at spec while the config write adds a bogus submodule.spec/.url section; the real submodule.spec.url keeps pointing at the operator's work directory.
Reproduction (local remotes only):
scaffold-project.py --org testorg --project Northwind --elected-by 'Test Human' --elected-on 2026-09-02 --spec-path spec/ --local-remote-dir remotes --work-dir work ; echo $? # 0, three remotes pushed
git --git-dir remotes/Northwind.git show HEAD:.gitmodules # submodule.spec.url = <work>/Northwind-spec, plus submodule "spec/" url = remotes/Northwind-spec.git
mv work work.moved && git clone --recurse-submodules remotes/Northwind.git clone ; echo $? # 1: Failed to clone 'spec' a second time, aborting
Observed on 2c1f926 and main alike (scaffold-project.py is byte-identical on both). Driver under the attachments path below.
What would fix it. Move _leg_path_reason, _canonical_spelling, leg_path_problem(s) and LEG_PATH_REMEDIATION from adopt-project.py into scripts/repo_shape.py and have scaffold's argument check refuse (or offer the canonical spelling) exactly as #169's plan does; doing it inside #169's branch avoids moving the helper twice. The same .git-segment gap reported on #169 (P2-1) applies here.
Report and drivers: opensoft/brett-wiphandoffs/xFactory/attachments/lane-openRepoShape-2/review169-2c1f926/ (report.md P2-2).
CLAIMED — lane openRepoShape-1, session f711ec94-a922-4e5f-8d35-efcfe983caa7@Eagle, 2026-10-09T14:01:39Z, for #179
Logged in lanes/log/openRepoShape-1.md at 40295798e1cf6b7e13a0fa7d86293f39c32b3bdb.
The three reads (lane-collision-protocol Rule 1):
1. existing `CLAIMED —` comments on opensoft/openRepoShape#179:
none
2. `gh pr list --repo opensoft/openRepoShape --state all --search "#179"`, kept where the row or its body names `#179`:
none
3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `179` as a whole token:
none
REVIEW of fix/scaffold-canonical-leg-paths at 8050563 (4 commits over 22c9fdd; no PR yet), by this lane, read-only in its own detached worktrees; nothing authored, no claim.
Verdict: MERGEABLE WITH NITS (0 P1 / 0 P2 / 1 P3). Sequencing: whichever of this branch and #190 (3eb55e5) lands second resolves one import-list hunk.
#179 is fixed. The rule #187 gave adopt moved, AST-identical, into scripts/shape_materialize.py, and adopt imports it back. scaffold-project.py:873 asks it before a work dir, a remote or a gh call exists, and under --dry-run.
Across 106 spellings and pairs, scaffold --dry-run and adopt@main plan agree on the verdict and the REFUSED/Remediation text. Head against main, every non-canonical, reserved, equal or nested row is refused at dry and real with nothing created.
On main:
spec/, ./spec, spec// and ./code exit 0 with a stray submodule.<x>/.url beside a registration naming the work dir, and the recursive clone fails once that dir is gone.
legs/.git exits 0 with no spec gitlink.
/abs/spec, .., ., x+x, spec+spec/code, .git, .gitmodules and --spec-path code push both legs, then die.
a/../spec crashes (Traceback).
Canonical rows behave as on main. setup.sh and setup-project.py now stop at the plan step. family.py takes no leg path.
P3-1 (also on main). ~, null, true, 2026 and 1.5 pass the rule (shape_materialize.py:1339-1369), because the templates write the path unquoted (project.yaml:159,163, contracts/*-pin.yaml:22). Scaffold exits 0, then bootstrap exits 1 with manifest-leg-path. Through setup-project.py -- --spec-path 2026 that comes after three repositories are created. Fix: refuse repo_shape._scalar(value) != value as the rule's last check. Prototyped: 376 tests pass, and it covers both tools.
CON, spec. and Spec+spec are newly refused on Linux.
The WINDOWS_ABSOLUTE_RE comment (shape_materialize.py:1231-1234) still cites adopt's --source.
--spec-path/--code-path have no help=.
#197 overlap: the shape-written collisions (contracts, project.yaml, scripts, .github, Makefile, README.md, contracts/spec-pin.yaml, .gitignore, AGENTS-shape.md) still dry-run 0, then exit 2 after both legs are pushed, as on main. This branch refuses only .gitmodules and .git.
Tests: head 741 passed / 1 skipped; merged with main 743 / 1; merged with #190 401. 7 mutations, all caught.
Activity
brettheap commentedon Oct 9, 2026
CLAIMED — lane openRepoShape-1, session f711ec94-a922-4e5f-8d35-efcfe983caa7@Eagle, 2026-10-09T14:01:39Z, for #179
Logged in
lanes/log/openRepoShape-1.mdat40295798e1cf6b7e13a0fa7d86293f39c32b3bdb.The three reads (lane-collision-protocol Rule 1):
brettheap commentedon Oct 11, 2026
(lane openRepoShape-2, 2026-10-11T01:01:01Z)
REVIEW of
fix/scaffold-canonical-leg-pathsat 8050563 (4 commits over 22c9fdd; no PR yet), by this lane, read-only in its own detached worktrees; nothing authored, no claim.Verdict: MERGEABLE WITH NITS (0 P1 / 0 P2 / 1 P3). Sequencing: whichever of this branch and #190 (3eb55e5) lands second resolves one import-list hunk.
#179 is fixed. The rule #187 gave adopt moved, AST-identical, into
scripts/shape_materialize.py, and adopt imports it back.scaffold-project.py:873asks it before a work dir, a remote or aghcall exists, and under--dry-run.Across 106 spellings and pairs, scaffold
--dry-runand adopt@mainplanagree on the verdict and the REFUSED/Remediation text. Head against main, every non-canonical, reserved, equal or nested row is refused at dry and real with nothing created.On main:
spec/,./spec,spec//and./codeexit 0 with a straysubmodule.<x>/.urlbeside a registration naming the work dir, and the recursive clone fails once that dir is gone.legs/.gitexits 0 with no spec gitlink./abs/spec,..,.,x+x,spec+spec/code,.git,.gitmodulesand--spec-path codepush both legs, then die.a/../speccrashes (Traceback).Canonical rows behave as on main. setup.sh and setup-project.py now stop at the plan step. family.py takes no leg path.
P3-1 (also on main).
~,null,true,2026and1.5pass the rule (shape_materialize.py:1339-1369), because the templates write the path unquoted (project.yaml:159,163,contracts/*-pin.yaml:22). Scaffold exits 0, then bootstrap exits 1 withmanifest-leg-path. Throughsetup-project.py -- --spec-path 2026that comes after three repositories are created. Fix: refuserepo_shape._scalar(value) != valueas the rule's last check. Prototyped: 376 tests pass, and it covers both tools.Nits:
adopt-project.py:85-90dropsSAFE_ARG_RE, which conflicts with adopt-project.py keeps a source submodule's relativeurl = ../xunchanged in the leg, where git resolves it against the leg's remote, soexecutesaysadoption verifiedand the assembly's recursive clone fails unless the dependency happens to sit beside the leg #190. Take adopt-project.py keeps a source submodule's relativeurl = ../xunchanged in the leg, where git resolves it against the leg's remote, soexecutesaysadoption verifiedand the assembly's recursive clone fails unless the dependency happens to sit beside the leg #190's list without it; that merge passes 401 tests.--spec-path spec/and builds a project whose recursive clone fails once the scaffolding work directory is gone #180. The reason is sound; say it in the PR.CON,spec.andSpec+specare newly refused on Linux.WINDOWS_ABSOLUTE_REcomment (shape_materialize.py:1231-1234) still cites adopt's--source.--spec-path/--code-pathhave nohelp=.#197 overlap: the shape-written collisions (
contracts,project.yaml,scripts,.github,Makefile,README.md,contracts/spec-pin.yaml,.gitignore,AGENTS-shape.md) still dry-run 0, then exit 2 after both legs are pushed, as on main. This branch refuses only.gitmodulesand.git.Tests: head 741 passed / 1 skipped; merged with main 743 / 1; merged with #190 401. 7 mutations, all caught.
Merges: clean with e4decfb, 4868074, 0448944, 1038dbc, 68d4d63, a5f0ab4 and 76a6153. 3eb55e5 has 1 hunk (nit 1).
Report and drivers:
opensoft/brett-wiphandoffs/xFactory/attachments/lane-openRepoShape-2/review179-8050563/.shape_materialize.py: the moved leg-path section's comments say what …
tests/test_scaffold_leg_paths.py: a scaffold refusal asserts the reme…
scaffold-project.py: a leg's mount path must be canonical or it is re…
Merge main (8df21e6, #179 via #201) into fix/adopt-mount-past-gitignore
Merge main (8df21e6, #179 via #201) into fix/adopt-verify-mounted-git…
Merge origin/main (8df21e6, #179 via #201) into fix/adopt-late-failur…
Merge origin/main a5b09c3 into fix/adopt-root-kept-symlinks: #201 and #…
Merge origin/main (a5b09c3) into fix/adopt-plan-quote-yaml-keywords
Merge origin/main (54aa69a) into fix/adopt-relative-submodule-url: #198…
scaffold-project.py: a leg path that is, holds or lies inside a path …
Merge origin/main (54aa69a: #198, #201, #200, #173) into fix/adopt-re…
validate-manifest.py: a recorded submodule path must be spelled the o…
scaffold-project.py: a `--pin` whose file the shape writes itself (`s…