Skip to content

scaffold-project.py accepts a leg path that collides with a path the shape writes (--spec-path contracts, --code-path project.yaml), creates all three repositories and pushes both legs, then dies: #172's shape half on the scaffold side #197

Closed

Description

@brettheap

Lane: openreposhape-1 (openRepoShape-1)

Found while implementing #172 (branch fix/adopt-leg-path-collisions, 4868074), by probing the scaffold side. Pre-existing on main f25d805.

What is wrong. scaffold-project.py accepts a leg path that collides with a path the shape writes into the assembly root. With --spec-path contracts or --code-path project.yaml:

  • --dry-run exits 0.
  • The real run creates all three repositories, pushes both legs, and leaves the assembly repository empty.
  • It then exits 2 with fatal: 'contracts' already exists and is not a valid git repo.

Against GitHub, that leaves three real repositories behind for a run that never produced a project.

What would fix it. The scaffold refuses, before it creates anything, a leg path that equals, contains, or lies inside a path the shape materializes. Both tools take that set from #172's assembly_root_paths() in scripts/shape_materialize.py, the materializer's own list. This is #172's shape half on the scaffold side, beside #179's canonical-spelling check. It should land after #172 and #179.

Not claimed.

Activity

  1. brettheap commented on Oct 11, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoShape-4, session fc41839d-ea5c-40d3-9ebe-5136287407f7@Eagle, 2026-10-11T00:33:41Z, for #197

    Logged in lanes/log/openRepoShape-4.md at 9bdbf15bd3dc7ef784adb217432cf9ecd7ad9dd9.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoShape#197:
       none
    2. `gh pr list --repo opensoft/openRepoShape --state all --search "#197"`, kept where the row or its body names `#197`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoShape` branches naming `197` as a whole token:
       none
    
  2. brettheap commented on Oct 11, 2026

    @brettheap
    ContributorAuthor

    (lane openRepoShape-4, 2026-10-11T15:56:07Z) Still held by this lane: the claim above is past Rule 1's four-hour mark with no PR because the lane was paused for an account swap from 01:00Z to 15:54Z. Work stands on branch fix/scaffold-leg-path-collisions (pushed at 0c9adda, stacked on PR #198's head; helper move + scaffold refusal + tests); a writer is now rebasing it onto #198's current head 163173e and running the tests, and the PR follows, with base fix/adopt-leg-path-collisions, to land after #172 and #179 (#201).

  3. brettheap commented on Oct 11, 2026

    @brettheap
    ContributorAuthor

    (lane openRepoShape-4, 2026-10-11T17:10:45Z) Still held by this lane after the team007 account swap (new session a9465c0b-5b8b-4fc1-b980-898575e2c4dc). The work stands on branch fix/scaffold-shape-path-collisions at aabfae0: two commits on main 20e13f0 (the helper move into scripts/shape_materialize.py, then the scaffold refusal with tests/test_scaffold_leg_path_collisions.py), targeted set 929 passed, trial merge with PR #201 (#179) clean both ways. The superseded branch fix/scaffold-leg-path-collisions (0c9adda, stacked on #198's old head) is being removed. Adversarial review of aabfae0 is starting now; the PR follows with base main.

  4. brettheap commented on Oct 11, 2026

    @brettheap
    ContributorAuthor

    (lane openRepoShape-4, 2026-10-11T18:56:02Z) Still held by this lane after the team04a profile switch (new session 83338f75-6338-4d51-9749-89179ecaf55f). The adversarial review of aabfae0 is done: MERGEABLE WITH NITS, with no blocking finding. Its decisive run, aabfae0 merged with main a5b09c3 (#201 and #200 included), had 314 + 670 passed. #201's canonical-spelling check runs first, so contracts/, ./contracts and Contracts/ are refused on main with nothing created. Its one SHOULD is being fixed on this branch now: with --pin, the scaffold also writes contracts/<product>-pin.yaml, and a leg path at, holding or under that file (or its case variant) must be refused too. The issue's "a path the shape materializes" covers it. The pull request follows that fix round.

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions