Skip to content

OpenSpec: fix-parent-obstacle-wording (the parent obstacle says 'does not exist' while the check is 'is not a directory') #14

Closed

Description

@brettheap

Lane: openRepoProject-1

OpenSpec change fix-parent-obstacle-wording, proposed on Brett Heap's word ("propose the D3 wording follow-up as a new change", 2026-10-09).

The defect

project new (landed in #8 as d7f6b0e, realizing prefer-triad-in-project-new) reads three known Triad obstacles before the creation question. The parent check is parent.is_dir() (project:244), but the fixed sentence it prints under the Triad entry, and inside the composed refusal on a Triad answer, is:

The parent directory PARENT does not exist; a Triad is created inside an existing directory.

When the parent path exists but is not a directory (a file, or a symlink to one), the refusal is right (a Triad is created inside an existing directory, and openRepoShape would refuse) but the sentence is false: the path does exist. The ratified design D3 and D13 of the archived change fixed that wording; the lead's ruling R-A on PR #8 kept it as ratified and recorded this follow-up.

What a change would decide

  • The wording for the parent obstacle that is true in both cases (missing, or present but not a directory), as one sentence or as two, fixed character for character as D13 did.
  • Whether the obstacle keeps being read as is_dir() (yes: nothing else is a parent a Triad can be created inside) and whether a symlink to a directory counts (it does today, through is_dir()).
  • The same words in README.md ("a parent directory that does not exist", line 60) and in the test fixture OBSTACLE_PARENT (tests/test_project.py:35), plus a test for the file-at-parent case.
  • The spec delta on openspec/specs/project-command/spec.md: the scenario "The parent directory is missing" under "Known Triad obstacles are named before the question and refused on a Triad answer".

Out of scope: any other string, any behaviour other than the sentence, the shape path's own refusal (Shape creation requires an existing --into parent directory.), and anything outside project new.

Governance through /opsx:propose (alignment review, council, design, one Speckit handoff), then a realization PR after ratification. Archived source: openspec/changes/archive/2026-10-08-prefer-triad-in-project-new/ (D3, D13, R-A in the lane handoff).

Activity

  1. brettheap commented on Oct 9, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoProject-1, session 9a4cc0d1-094d-4208-9a97-099767986b0b@Eagle, 2026-10-09T00:42:50Z, for #14

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

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

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

    @brettheap
    ContributorAuthor

    RELEASED — lane openRepoProject-1, session 9a4cc0d1-094d-4208-9a97-099767986b0b@Eagle, 2026-10-09T13:56:50Z, for #14 — closed by PR #17 at f401e06 (ratified: Brett Heap 'ratify 17', 2026-10-09)

  3. added a commit that references this issue on Oct 9, 2026
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