Skip to content

OpenSpec: refuse-non-directory-parent-early (a parent that is not a directory is refused only after the plan and the yes, and its dry run exits 0) #20

Open

Description

@brettheap

Lane: openRepoProject-1

Governing issue for a new OpenSpec change, refuse-non-directory-parent-early, proposed on Brett Heap's word "propose the non-directory parent follow-up as a new change" (2026-10-11).

Problem

The archived change fix-parent-obstacle-wording (packet PR #15, realization PR #17, archive PR #18) made the Triad question name a parent that exists but is not a directory. Its design D6 recorded what it left alone, "an earlier refusal is its own change, on Brett Heap's word":

  • The single-repository path refuses late. When the parent is a regular file (or a link to one, or a FIFO), project new by flag (--type ...) or by a single-repository answer prints the plan, asks for yes, and only then refuses with a raw REFUSED: [Errno 17] File exists: '<parent>', exit 2, when parent.mkdir(parents=True, exist_ok=True) runs.
  • Its dry run says the opposite. --dry-run on that path prints the plan and exits 0, although the real run cannot succeed.
  • A parent below a non-directory is a dead end. For FILE/sub, the question says the parent "does not exist", and the README says a single-repository answer creates a missing parent; the real run fails with Not a directory.

Intended scope (for the proposal to settle)

Refuse a parent that cannot hold the new repository before the plan, the confirmation and any creation, on every path of project new, the dry run included, with fixed plain sentences instead of a raw errno; keep the Triad question's wording consistent with that. The proposal, alignment review and council decide the exact cases, sentences, order and what stays out.

Out of scope unless the proposal argues otherwise

The CI matrix (Python 3.10 and 3.12); the later-Python residuals recorded in the archived change's N1; anything below discover in project (lane openRepoProject-2's changes add-project-clean-all-safe and add-project-overview live there).

Sibling search

No open issue, PR or active OpenSpec change covers this surface (searched for "parent directory", "not a directory", "Errno 17", "dry run", "File exists"). Lane openRepoProject-2's active changes touch the same files (project, tests/test_project.py) in other functions; whichever realization merges second merges main in.

Activity

  1. brettheap commented on Oct 11, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoProject-1, session 9a4cc0d1-094d-4208-9a97-099767986b0b@Eagle, 2026-10-11T00:58:45Z, for #20

    Logged in lanes/log/openRepoProject-1.md at f9282b5017dcd58589d0d36ac9032d8ad27f5d79.

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

    1. existing `CLAIMED —` comments on opensoft/openRepoProject#20:
       none
    2. `gh pr list --repo opensoft/openRepoProject --state all --search "#20"`, kept where the row or its body names `#20`:
       none
    3. `git ls-remote --heads [email protected]:opensoft/openRepoProject` branches naming `20` as a whole token:
       none
    
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