Repository navigation
OpenSpec: refuse-non-directory-parent-early (follow-up to fix-parent-obstacle-wording) - #21
Conversation
Lane: openRepoProject-1 Drafts the proposal for the follow-up to fix-parent-obstacle-wording that its design D6 deferred to its own change: 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. Proposed on Brett Heap's word "propose the non-directory parent follow-up as a new change" (2026-10-11); governing issue #20. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's GuideIntroduces a draft, not-yet-ratified OpenSpec change proposing early, consistent refusal of single-repository creation when the resolved parent or its nearest existing ancestor is not a directory, including dry runs and interactive answer paths. Sequence diagram for early refusal of an invalid single-repository parentsequenceDiagram
actor User
participant New as project.new
participant Parent as Parent check
participant RepoCreate as Repository creation
User->>New: project new
New->>Parent: is_dir() / exists()
alt Parent or nearest ancestor is not a directory
Parent-->>New: Refused sentence
New-->>User: REFUSED ... Nothing was created. (exit 2)
else Parent can hold repository
New->>RepoCreate: choose()
New-->>User: Create, plan, and confirmation
User->>RepoCreate: yes
end
Flow diagram for parent validation across project new pathsflowchart TD
Start["project new selects single-repository path"] --> Check["Check resolved parent and nearest existing ancestor"]
Check --> Invalid{"Can parent hold repository?"}
Invalid -->|No| Refuse["Refuse before generator, plan, confirmation, or dry-run success\nexit 2; nothing created"]
Invalid -->|Yes| Select["choose() and continue normal creation flow"]
Select --> Create["parent.mkdir() remains the late backstop"]
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Lane: openRepoProject-1 Stack architect (1 mismatch, 5 drifts) and QA lead (1 mismatch, 9 gaps) on draft PR #21 at 50812a9; every gap is a statement the change itself makes false, so all are in scope. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Lane: openRepoProject-1 Alignment review of the proposal (head 50812a9), applied at f8a6df2Two read-only reviewers checked the draft proposal before the council: a stack architect (code, stack, citations, conventions) and a QA lead (requirements record, coverage, acceptance criteria, spec structure). Both confirmed every code, README, main-spec and archived citation; the stack architect re-ran all seven rows of the observation table on Python 3.12.3 (four on 3.10.18) and reproduced each; both confirmed the feasibility claim (one existing test pins today's late refusal).
Every gap is a statement the change itself makes false, so all were taken into scope. Overlap with lane openRepoProject-2's active changes ( |
Lane: openRepoProject-1 Product advocate and adversary engineer on f8a6df2: one structural term for a parent blocked by a non-directory, with the permission boundary stated; the head refusal re-reads the parent; Preview and the Triad-first answers scenario become MODIFIED; W1's benefit restated. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Lane: openRepoProject-1 Council results on the aligned proposal (f8a6df2)Three read-only members argued the aligned proposal: a product advocate, a systems architect and an adversary engineer. The systems architect's first run stalled at an account usage limit and was relaunched; its report reached the same head. Twelve concerns: product 4, architect 4, adversary 4. VALID: applied to proposal.md (round 1 at 70d90e6, round 2 in the next commit)
NOTED: constraints for the design (clarifications.md)
DISMISSED
|
Lane: openRepoProject-1 Systems architect on f8a6df2: the ADDED requirement owns the refusal as a step of the single-repository path however it was chosen, and the delta modifies only statements that become false, keeping true ones word for word (relative forms included); README 75-77 takes the relative form; the backstop text matches the corrected permission boundary, with "Nothing was created." only on the early refusal; the rewritten test keeps its comparison form. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…esign, delta, governance tasks) Lane: openRepoProject-1 Completes the governance packet on draft PR #21: clarifications N1 to N6 from the council's NOTED list; design D1 to D6 (the parent_case read, once for the question and afresh at the bench head; the fixed texts and README replacements; the tests; the feature-record supersession; the workBenches#145 handoff; the explicit non-changes); the delta, one ADDED requirement and four MODIFIED full blocks that change only the statements this change makes false; and the governance-only tasks with the Speckit handoff left to ratification. openspec validate --strict passes for the change and for --all; the suite is unchanged at 96 OK. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 56505105ed
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Lane: openRepoProject-1 Verdict (provisional): READY WITH FIXES. All fixes are wording changes in the packet. Nothing is structural, and the scope, the term, W1, D1 and the tests are sound. Codex's two P1 inline findings: I agree with both (F1 and F2 below). Each is a statement that is false under its own wording, which V5's principle should have modified. The delta already modifies the same clause elsewhere. Findings:
Confirmed:
Brief items:
Evidence counts:
|
F1: qualify "keep its existing order of refusals" for a parent blocked by a non-directory (Codex P1, spec.md; proposal.md lists) F2: qualify the single-repository continuation clause of "Creation question offers the Triad first" (Codex P1, spec.md; proposal.md lists) F3: permission boundary names a directory the person cannot write or a missing parent whose nearest existing path is one (spec.md, design.md, proposal.md) F4: "A single repository with a parent that is not blocked" no longer promises exit 0 or a created parent F5: README dry-run replacement says "unless a refusal comes first" (design.md, proposal.md) Lane: openRepoProject-1 Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…(R1-R8) R1-R7: D4 (design.md) and its mirror in proposal.md list every statement of features 002 and 003 that this change makes false, each citation checked against the file; 002 FR-008's end and FR-011 join the list since F1 and F2 landed, and only 003 SC-005 and 002 FR-013 stay true R8: the Errno 13 observation names a missing parent directly below a mode-555 directory (proposal.md, clarifications.md) R9-R11: README and backstop wording (verifier INFO) Lane: openRepoProject-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
D4 (design.md) and its mirror in proposal.md now name feature 003 FR-010 (spec.md:187-189) beside quickstart.md:86 and spec.md:60-62: the requirement form of the README check that this feature's README text supersedes. Lane: openRepoProject-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Lane: openRepoProject-1 Verdict: READY WITH FIXES. One LOW finding remains (R12 below): two citations are missing from D4's supersession list, and the fix is wording only. Everything else checks out at 84fdf88: F1 to F5, R1 to R11 and FR-010, Open findingR12 LOW. D4 (design.md:270-293) and its mirror (proposal.md:302-327) leave off two feature 002 statements that this change makes false for a parent blocked by a non-directory. They fail by the same standard that lists contracts/project-new.md:60 and FR-004:
Fix, at design.md:289-291 and proposal.md:323-325. Replace "and contracts/project-new.md step 7 (:55-58) and its sentence 'A run that is not asked keeps today's order exactly' (:60)." with:
In proposal.md, use backticked citations and double quotes, as in the rest of the mirror. I missed both statements in part 2: I did not sweep data-model.md, and I misread the contract table. Line :35 ("with today's prompts and refusals") parallels main spec :103-106, which the proposal keeps, so it is not listed. Part 1: the first verifier at 5650510 (issuecomment-6111244695)Its DONE items stand as reported there:
Its findings F1 to F5 are verified below. Part 2: the four items it marked NOT CHECKED, at 5650510
Evidence, under the
F1 to F5 at a43e7d2 (round 1)
Evidence: R1 to R11 and FR-010 at 84fdf88 (round 2)
Codex
CI at 84fdf88
INFO
This verifier made no repository edit and no lane-record change, and never used the writer's worktree. |
Observed comes from the N1 probe (18 parent kinds, four forms, seven interpreters from 3.10.21 to 3.15.0rc2) and the suite proof (96 OK on each, SIGINT at its default). Feasibility: the recommended S1 and S2 on a scratch copy gave the argued answers on 3.10 to 3.15rc2, identical on all six, with every other row unchanged (126 probe cells and 130 not-asked runs per version, plus the review's edge cases). Adjusted to the evidence: the range is 3.10 to 3.15 and closed, since setup-python's manifest lists 3.15.0 as stable; S2 reads as absent the errnos 3.10 to 3.13 pathlib ignores, since reading only absence refused a --family loop that every version plans; (L) is raised after the family-name check. Alignment review of 0096c98 (SA-1 to SA-11, QA-1 to QA-9): applied, with two MODIFIED blocks against #21 at a43e7d2, archive and realization after #21, and README.md:17-19 recorded as shared with feature 004 (lane 2's acknowledgement). Left as decisions for Brett Heap: who adds each new release (SA-7) and whether lane 1 scopes #21's shape sentence (SA-2). Declined: QA-9's section renames, since #21 has neither section and issue #22 names "Ordering and shared files". Details in the proposal's Review resolution. openspec validate --strict fails only for "Change must have at least one delta": a proposal without its delta, which follows with the design. Lane: openRepoProject-4 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…D4 (R12)
D4 (design.md) and its mirror in proposal.md now list contracts/project-new.md :36-38 (the "today's flow" cells of the table of inputs that skip the question) and data-model.md :95-96 ("A dry run ends after the plan with status 0 and nothing written"), both made false for a parent blocked by a non-directory; contract line :35 stays off the list, as it matches main spec :103-106.
Lane: openRepoProject-1
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Lane: openRepoProject-1 READY at
Governance packet only, with no code change. This lands only on Brett Heap's word "ratify 21". |
|
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 5 days and 3 hours by commenting |
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
#32 made CI Linux only by Brett Heap's decision of 2026-10-15, so the proposed matrix is ubuntu-latest x 3.10-3.15, six jobs instead of twelve. R3 (a macOS entry) is withdrawn but keeps its number. The macOS errno, fixture and runner notes are removed, and one NOTED macOS residual sits under Risks. The README wording keeps "Linux only". The tests.yml line citations follow the new file, and P2's check name is test (3.16). "Ordering and shared files" gains #32 and notes that #21 and feature 004 still name four jobs. #21's delta is byte-identical between a43e7d2 and 1b84a94, so every cited delta line and the base text match. Its proposal moved 20 lines: the Out of Scope citations are now lines 401, 412-416 and 412-414. Lane: openRepoProject-4 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…arly Lane: openRepoProject-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
F1: tasks.md 3.1 and design.md Migration Plan step 3 now require green checks on every job of .github/workflows/tests.yml (two since #32), not four. F2: design.md Context says CI runs ubuntu-latest only, on Python 3.10 and 3.12 (tests.yml:9-10 at e9d6711). F3: proposal.md Out of Scope states the matrix as Python 3.10 and 3.12, Linux only since #32. F4: proposal.md acceptance criterion 1 drops "CI" from "macOS CI"; the socket stays optional for a run by hand on macOS. clarifications.md: the README pin reads unchanged on this branch but for README.md:282, which #32 changed outside every cited range. Lane: openRepoProject-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
|
Lane: openRepoProject-1 READY at
Governance packet only, no code change. This lands only on Brett Heap's word "ratify 21". |
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
The council (19 concerns: VALID 7, NOTED 12, DISMISSED 0; PR #28 issuecomment-6254996548) is applied, and no fix is declined: - AR-1: #21's permission sentence (delta 37-43), its scenario (73-76) and its README sentence (design.md:187-191) are recorded as false for an unsearchable directory, scoped in the second MODIFIED block to "a directory the person can search but cannot write"; Decision 12 covers them. - AD-1: (U) names every ENAMETOOLONG source (a parent component, NAME, the --family folder, a path past PATH_MAX); one new scenario and three AC3 rows. - AD-2: (U) names the destination built on the resolved parent; (L) names the parent as given. - PO-1: Alternatives "The range's home" (H1 recommended, H2); Decision 10 cites it. - AR-4: the 3.15 job builds PyYAML 6.0.3 from source (no cp315 wheel). - PO-5 and AR-6 were applied in the previous commit; checked against the council's table, and the first ADDED requirement now names versions, not systems. Also found while writing the delta: #21's scenario at delta lines 196-198 admits a looped or unreadable parent, so the first MODIFIED block carves both out. Lane: openRepoProject-4 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Three ADDED requirements, "Supported Python versions are stated and tested" (versions, not systems; H1), "A parent that is a symbolic-link loop is refused before the question" (8 scenarios) and "A destination that cannot be read is refused before the question" (11 scenarios), and two MODIFIED blocks written against #21's delta at 1b84a94: "Creation question is asked only of a person choosing at the terminal" (lines 129-198) and #21's ADDED "A parent blocked by a non-directory is refused before the single-repository path's steps" (lines 5-88). The blocks were built from #21's text by asserted exact replacements, and differ only in the statements the proposal records as false. The (U) scenario on existing destinations is split, so that S2's intended deviation (a link into an unsearchable directory is refused as existing) has its own scenario; the proposal's list follows. openspec validate --strict passes, with the expected INFO that archive would refuse the block for #21's ADDED title until #21 archives (N5). Lane: openRepoProject-4 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Follows every recommendation of the proposal's Decisions (R1, C1, H1, P1, the 3.10 floor, L1/Q1, U1, T2/E1, M1, fail-fast unchanged, Decision 12's MODIFIED route); Decisions 3 and 12 stay open for Brett Heap, and Open Questions says what each alternative changes. D1 the range, tests.yml line 9 and the two README sentences; D2 S1 (one source expression, the RuntimeError mapping on resolve() only, PARENT from os.getcwd()); D3 S2 (one os.lstat(), the 3.10-3.13 ignored errnos, DESTINATION on the resolved parent, the one deviation); D4 fixed text, L2's sentence and the scoping of #21's README sentence; D5 the test module by composition, the skip probe on an existing child, and system-neutral construction; D6 the delta against #21 at 1b84a94 and the archive-order guard; D7 shared files (import errno with feature 004); D8 the feature records; D9 handoffs; D10 what is not changed. Lane: openRepoProject-4 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Governance 1.1-1.5 done (alignment review at 461a010; council VALID fixes at 4318638 and 5bde39b with issuecomment-6254996548; clarifications N1-N12; the delta; the design), 1.6 open: the change lands only on Brett Heap's word ratifying #28, with Decisions 3 and 12 answered or left. One future Speckit feature, not created. Landing: the realization lands after #21's realization, with green checks on the six test jobs (3.1); the workBenches#145 comment (3.2); the archive-order guard of N5, archiving after refuse-non-directory-parent-early (3.3); the archive (3.4). openspec validate support-later-python-versions --strict: valid; openspec status: every artifact done; openspec validate --all --strict: 8 passed, 0 failed. Lane: openRepoProject-4 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…(design D6) #21's head moved from 1b84a94 to 8f3ca2d (main e9d6711 merged, then its CI statements aligned with Linux-only CI, #32). Its spec delta is byte-identical, so both MODIFIED blocks stand; every current-fact citation is re-pinned and the history records stay as written. The proposal's #21 bullet now says lane 1 aligned its text with Linux-only CI and that its task 3.1 ("every job") holds once the matrix widens. Its Feature 004 bullet now names 004's plan at d1e7c56, the git-floor job merged on 004's branch (4baec61), and lane 2's ruling R-46 (count-free comment, f9a639a), so no edit is needed on 004's account in either landing order. Lane: openRepoProject-4 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
Lane: openRepoProject-1 Ratified by Brett Heap's word "ratify 21" (2026-10-21, in lane openRepoProject-1's session), given for this PR at head 8f3ca2d.
Landing now by squash. The two Codex threads from 2026-10-11 were answered "Fixed in a43e7d2" and are outdated; they are resolved with this landing. Issue #20 stays open for the realization, which follows as Speckit feature 006. |
… 3.12; the archived N1 later-Python residuals) (#28) Lane: openRepoProject-4 Ratified by Brett Heap: "ratify 28, recommended for SA-2 and SA-7" (2026-10-21T10:40:31Z), quoted at #28 (comment). SA-7 (Decision 3), which had no recommendation, he answered when asked: "A1: PR per release (Recommended)" (12:05:15Z). Governing issue #22. #21 landed first (b233333). Co-Authored-By: Claude Opus 5.5 <[email protected]>



Lane: openRepoProject-1
Refs #20 (governing issue, claimed by lane openRepoProject-1; it stays open, and the realization closes it). Proposed on Brett Heap's word "propose the non-directory parent follow-up as a new change" (2026-10-11).
OpenSpec change
refuse-non-directory-parent-early: the earlier refusal that the archived changefix-parent-obstacle-wording(packet #15, realization #17, archive #18) deferred to its own change in its design D6.Problem
On the single-repository path of
project new(chosen by--type/--bench, not asked, or by answering2), a parent that is a file, or a missing parent below one, is found only atparent.mkdir(project:398): afterCreate:, the plan and theyesconfirmation, as a rawREFUSED: [Errno 17] File existsor[Errno 20] Not a directory, exit 2. Its--dry-runprints the plan and exits 0. ForFILE/sub, the question says the parent "does not exist" while the README says a single-repository answer creates a missing parent. Observed on Python 3.12.3 at961c405; the observation matrix is in the proposal.The packet
proposal.md: one term, "a parent blocked by a non-directory" (the resolved parent, or the nearest existing path above it, exists and is not a directory); one refusal at the head of the single-repository path; the question still asked; the permission boundary stated, not checked; alternatives W1 (recommended), W2 and W3 (rejected).clarifications.md: N1 to N6 from the council's NOTED list.design.md:parent_case(parent)returns(kind, path);known_obstacles()keeps its signature and one list for the question and the Triad refusal; the bench branch reads afresh after the shape-only flag check and beforechoose().The parent PARENT cannot be created because ANCESTOR exists but is not a directory; choose a parent that is a directory.; the head refusal is the sentence plusNothing was created., exit 2; exact README replacements for lines 60-64, 75-77, 81-82 and 95-96.2(with two generators), case (b) rows, the one rewritten test in comparison form, in-process repair and break, the creatable parents, the refusal order, and the root-skipped permission test.project.discover.specs/project-command/spec.md: one ADDED requirement, "A parent blocked by a non-directory is refused before the single-repository path's steps" (ten scenarios), and four MODIFIED full blocks ("Delegate project creation", "Creation question is asked only of a person choosing at the terminal", "Creation question offers the Triad first", "Known Triad obstacles are named before the question and refused on a Triad answer"), each changing only the statements this change makes false.tasks.md: governance and handoff record only; ratification, the Speckit handoff and landing are open.Review record
f8a6df2(comment 6104257573).70d90e6,d3b2ed1), NOTED recorded as N1 to N6, one dismissed (comment 6110918580).a43e7d2(partial verdict 6111244695).35ed8e4and84fdf88.1b84a94.b8e9be5; CI statements aligned with Linux-only CI (F1-F4, review in this lane's record) at8f3ca2d.openspec validate refuse-non-directory-parent-early --strictpasses;openspec validate --all --strict8 of 8; every artifact done. All five files ASCII. The suite is unchanged at 96 OK (no code change in this pull request).Status: governance packet complete (proposal, clarifications, design, delta, governance tasks); the re-verification fix round (F1-F5) is applied at
a43e7d2and round 2 (R1-R11) at35ed8e4and84fdf88; R12 is applied at1b84a94, confirmed READY by the lead (comment 6112029703); the freshness round against maine9d6711is applied at8f3ca2d. Lands only on Brett Heap's word "ratify 21".🤖 Generated with Claude Code
Summary by Sourcery
Define and govern an early refusal for single-repository creation when a parent is blocked by a non-directory.
New Features:
Enhancements:
Documentation:
Tests:
Chores: