Skip to content

Implement project creation, diagnostics and maintenance command - #1

Merged
brettheap merged 13 commits into
mainfrom
001-project-command
Sep 11, 2026
Merged

brettheap merged 13 commits into
mainfrom
001-project-command

Conversation

@brettheap

@brettheap brettheap commented Sep 10, 2026 •

Copy link
Copy Markdown
Contributor

Lane: 001-project-command
Claims: openspec/changes/project-command/proposal.md; openspec/changes/add-project-clean-command/proposal.md; openspec/changes/resolve-pr-review-findings/proposal.md

Implement the project command as the project-facing coordinator while retaining ownership boundaries with openRepoShape, openRepoTools, and workBenches.

Commands: new, benches, status, doctor, update, and clean. Creation delegates to registered bench generators or openRepoShape. Reporting inspects repositories, families, legs, worktrees, declared benches/containers, and local parked-work records. Updates delegate only after explicit component selection and retain owner prompts.

Clean is local-ref, plan-first maintenance: it classifies linked worktrees; protects dirty, ignored, detached, unpublished, remote-divergent, unmerged, and process-current work; and requires an explicit confirmed non-force push, worktree removal, or branch deletion. It never fetches, force-pushes, resets, stashes, or merges.

Review remediation filters profile output, validates malformed bench configuration, accepts only complete GitHub remote identities, preserves owner confirmation, rejects incomplete estate updates, rechecks cleanup state before actions, safely handles non-UTF-8 YAML and shallow project-leg reports, and supplies every Claude-registered Git command skill.

Validation: 43 disposable offline CLI tests, strict OpenSpec validation, diff checks, Linux/macOS CI, and a live read-only cleanup audit of this repository. workBenches integration re-pins after this source lands on main.

Copilot AI lite review requested due to automatic review settings September 10, 2026 23:05

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @brettheap, your pull request is larger than the review limit of 150,000 diff characters

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

One or more issues must be addressed before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds the standalone project CLI for creation, diagnostics, status reporting, and delegated maintenance across OpenSoft repositories.

Changes:

  • Implements generator discovery, project creation, status, doctor, and update commands.
  • Adds profile/registry handling, read-only diagnostics, and workflow/shape/bench delegation.
  • Adds documentation, tests, CI, and Speckit/OpenSpec integration artifacts.
File summaries
File Description
TABNINE.md Updated as part of this pull request.
specs/001-project-command/tasks.md Updated as part of this pull request.
specs/001-project-command/spec.md Updated as part of this pull request.
specs/001-project-command/plan.md Updated as part of this pull request.
specs/001-project-command/checklists/requirements.md Updated as part of this pull request.
specs/001-project-command/analysis.md Updated as part of this pull request.
SHAI.md Updated as part of this pull request.
requirements.txt Updated as part of this pull request.
README.md Updated as part of this pull request.
QWEN.md Updated as part of this pull request.
QODER.md Updated as part of this pull request.
openspec/specs/.gitkeep Updated as part of this pull request.
openspec/README.md Updated as part of this pull request.
openspec/config.yaml Updated as part of this pull request.
openspec/changes/project-command/tasks.md Updated as part of this pull request.
openspec/changes/project-command/specs/project-command/spec.md Updated as part of this pull request.
openspec/changes/project-command/proposal.md Updated as part of this pull request.
openspec/changes/project-command/design.md Updated as part of this pull request.
openspec/changes/project-command/.openspec.yaml Updated as part of this pull request.
openspec/changes/archive/.gitkeep Updated as part of this pull request.
KIMI.md Updated as part of this pull request.
IFLOW.md Updated as part of this pull request.
GEMINI.md Updated as part of this pull request.
docs/migration-review.md Updated as part of this pull request.
CODEBUDDY.md Updated as part of this pull request.
CLAUDE.md Updated as part of this pull request.
AGENTS.md Updated as part of this pull request.
.windsurf/rules/specify-rules.md Updated as part of this pull request.
.vibe/agents/specify-agents.md Updated as part of this pull request.
.trae/rules/project_rules.md Updated as part of this pull request.
.specify/workflows/workflow-registry.json Updated as part of this pull request.
.specify/workflows/speckit/workflow.yml Updated as part of this pull request.
.specify/templates/tasks-template.md Updated as part of this pull request.
.specify/templates/spec-template.md Updated as part of this pull request.
.specify/templates/plan-template.md Updated as part of this pull request.
.specify/templates/constitution-template.md Updated as part of this pull request.
.specify/templates/checklist-template.md Updated as part of this pull request.
.specify/shell/worktrees.sh Updated as part of this pull request.
.specify/shell/ct.zsh Updated as part of this pull request.
.specify/scripts/bash/setup-tasks.sh Updated as part of this pull request.
.specify/scripts/bash/setup-plan.sh Updated as part of this pull request.
.specify/scripts/bash/resolve-template.sh Updated as part of this pull request.
.specify/scripts/bash/check-prerequisites.sh Updated as part of this pull request.
.specify/README.md Updated as part of this pull request.
.specify/memory/constitution.md Updated as part of this pull request.
.specify/memory/.constitution-template.json Updated as part of this pull request.
.specify/integrations/speckit.manifest.json Updated as part of this pull request.
.specify/integrations/claude.manifest.json Updated as part of this pull request.
.specify/integration.json Updated as part of this pull request.
.specify/init-options.json Updated as part of this pull request.
.specify/extensions/git/scripts/python/initialize_repo.py Updated as part of this pull request.
.specify/extensions/git/scripts/python/git_common.py Updated as part of this pull request.
.specify/extensions/git/scripts/python/auto_commit.py Updated as part of this pull request.
.specify/extensions/git/scripts/powershell/initialize-repo.ps1 Updated as part of this pull request.
.specify/extensions/git/scripts/powershell/git-common.ps1 Updated as part of this pull request.
.specify/extensions/git/scripts/powershell/auto-commit.ps1 Updated as part of this pull request.
.specify/extensions/git/scripts/bash/initialize-repo.sh Updated as part of this pull request.
.specify/extensions/git/scripts/bash/auto-commit.sh Updated as part of this pull request.
.specify/extensions/git/README.md Updated as part of this pull request.
.specify/extensions/git/git-config.yml Updated as part of this pull request.
.specify/extensions/git/extension.yml Updated as part of this pull request.
.specify/extensions/git/config-template.yml Updated as part of this pull request.
.specify/extensions/git/commands/speckit.git.validate.md Updated as part of this pull request.
.specify/extensions/git/commands/speckit.git.remote.md Updated as part of this pull request.
.specify/extensions/git/commands/speckit.git.initialize.md Updated as part of this pull request.
.specify/extensions/git/commands/speckit.git.feature.md Updated as part of this pull request.
.specify/extensions/git/commands/speckit.git.commit.md Updated as part of this pull request.
.specify/extensions/.registry Updated as part of this pull request.
.specify/extensions.yml Updated as part of this pull request.
.specify/.gitignore Updated as part of this pull request.
.roo/rules/specify-rules.md Updated as part of this pull request.
.kilocode/rules/specify-rules.md Updated as part of this pull request.
.junie/AGENTS.md Updated as part of this pull request.
.gitignore Updated as part of this pull request.
.github/workflows/tests.yml Updated as part of this pull request.
.github/copilot-instructions.md Updated as part of this pull request.
.cursor/rules/specify-rules.mdc Updated as part of this pull request.
.codex/skills/speckit-specify/SKILL.md Updated as part of this pull request.
.codex/skills/speckit-specify/agents/openai.yaml Updated as part of this pull request.
.codex/skills/speckit-git-validate/SKILL.md Updated as part of this pull request.
.codex/skills/speckit-git-feature/SKILL.md Updated as part of this pull request.
.codex/skills/speckit-git-feature/agents/openai.yaml Updated as part of this pull request.
.claude/skills/speckit-taskstoissues/SKILL.md Updated as part of this pull request.
.claude/skills/speckit-tasks/SKILL.md Updated as part of this pull request.
.claude/skills/speckit-plan/SKILL.md Updated as part of this pull request.
.claude/skills/speckit-git-validate/SKILL.md Updated as part of this pull request.
.claude/skills/speckit-git-feature/SKILL.md Updated as part of this pull request.
.claude/skills/speckit-constitution/SKILL.md Updated as part of this pull request.
.claude/skills/speckit-analyze/SKILL.md Updated as part of this pull request.
.claude/commands/opsx/explore.md Updated as part of this pull request.
.claude/commands/opsx/archive.md Updated as part of this pull request.
.claude/commands/opsx/apply.md Updated as part of this pull request.
.augment/rules/specify-rules.md Updated as part of this pull request.
.agents/skills/speckit-git-validate/SKILL.md Updated as part of this pull request.
.agents/skills/speckit-git-feature/SKILL.md Updated as part of this pull request.
Review details

Suppressed comments (9)

.specify/memory/constitution.md:8

  • This is still the untouched constitution template, including literal [PRINCIPLE_*] and [..._DATE] placeholders. The bundled Speckit skills load this file as the project's authoritative governance and require placeholders to be resolved, so committing it makes downstream specify/plan/tasks workflows operate on invalid project guidance. Replace it with the repository's principles or omit the generated memory file until it is initialized.
    project:426
  • This recursion leaves every visited member in the shared set, so a family that references the same checkout more than once is reported as a cycle on the second reference even though there is no recursive membership. Use visited as an active recursion stack by removing the child after a successful snapshot (while retaining ancestor entries for real cycles).
    project:596
  • Unlike registry(), this update path assumes both benches and the selected entry are mappings. A malformed but parseable registry such as "testBench": [] makes entry.get(...) raise an uncaught AttributeError, producing a traceback instead of the CLI's structured refusal/exit code 2. Validate the registry shape here (including project_scripts entries) or reuse the same validation before accessing these fields.
    project:569
  • A missing declared leg has present: false and no dirty or branch, so this guard treats it as safe and proceeds with shape/bench updates against an incomplete project. Refuse when not child.get("present") as well, matching the missing-leg diagnostic contract.
    project:553
  • The default plan names the retired generic scripts/update-project.sh, but --apply --component bench actually resolves and runs the exact update-<type> adapter from the profile below. This makes the read-only plan misleading; describe the registered adapter (or resolve and print its exact path) instead.
    project:91
  • Path.cwd().parents excludes the current directory itself, so running project benches from a custom workBenches checkout root (without the marker or WORKBENCHES_ROOT) never tests the registry located at cwd/config/bench-config.json and incorrectly refuses. Include the current directory in discovery.
    project:419
  • Existing project legs are appended as bare repo_state() dictionaries, but print_report() and check_rows() recurse into every child with fields such as name, kind, handoff, profile, workflow, and container. As soon as a declared leg checkout exists, project status or doctor --validate therefore raises KeyError instead of reporting it. Build existing legs with the same normalized snapshot shape as the root (and keep the update checks aligned with that shape).
    project:583
  • The outer command already confirms the update at line 613, but this delegated command includes --yes, which makes update-shape.py return from its own confirmation without asking the owner. That contradicts the documented requirement that shape mode retain openRepoShape's confirmation prompt (including when project --yes is used); omit this flag so the owner prompt remains in the delegated flow.
    project:275
  • The family-name fast path returns the first matching holder without checking the other default project roots. If both ~/projects/Foo/Foo and ~/Projects/Foo/Foo exist, project status Foo silently selects one instead of refusing an ambiguous name, unlike the non-family path below. Collect all family matches and apply the same ambiguity check before returning.
  • Files reviewed: 109/114 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread project Resolved
Comment thread project Resolved
Copilot AI review requested due to automatic review settings September 10, 2026 23:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

One or more issues must be addressed before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (11)

Previously missed (2) — in code that hasn't changed since the last review.

.specify/extensions/git/scripts/python/git_common.py:66

  • The documented and Bash/PowerShell validation rule requires a non-empty slug (^[0-9]{3,}-.+), but this regex accepts 123- because it stops after the hyphen. The Python validator can therefore report an invalid feature branch as valid; require at least one character after the separator.
    .specify/memory/constitution.md:8
  • This active Speckit constitution is still the untouched template ([PROJECT_NAME], [PRINCIPLE_*], and placeholder descriptions). The workflow treats this file as authoritative, so analysis/implementation has no concrete repository principles to validate and unresolved placeholders remain in the shipped project. Replace it with concrete OpenRepoProject principles before marking the workflow complete.

.specify/extensions/git/scripts/python/auto_commit.py:71

  • A valid YAML file may end without a newline, but this loop breaks before processing that final record. The Bash twin explicitly uses read ... || [ -n "$line" ], so an unterminated final after_* or enabled: false entry is ignored by the Python implementation and can leave auto-commit enabled/disabled incorrectly.
    .specify/extensions/git/scripts/python/create_new_feature_branch.py:381
  • The extension config requires exactly one {number} token, and the Bash/PowerShell implementations reject duplicate tokens, but this Python port only checks that one exists. A template such as {number}-{number}-{slug} is accepted here and generates a branch with duplicated numbering instead of refusing the invalid configuration.
    project:512
  • This declared-bench lookup bypasses the registry validation used by benches. A valid JSON config with benches as a list, or a non-object entry, reaches .get() and raises an uncaught AttributeError in doctor (including --json) instead of producing a structured refusal or diagnostic. Validate the mapping and entry types before reading path, preferably through a shared validated loader.
    project:570
  • For a family report, each member's Git state is nested under child["repository"], but this loop reads dirty and branch from the wrapper and never recurses. A dirty or feature-branch member therefore passes the guard and can be modified by a shape update despite the documented clean-tracking-checkout requirement. Normalize nested state and recurse through family members before applying.
    project:340
  • profile() returns every key from .project.json, and snapshot() includes that object directly in JSON status/doctor output. A profile containing an extra credential, token, or host path is therefore printed verbatim, contradicting the no-secret reporting contract. Return only the supported schema fields (schema_version, bench, type, and container) or explicitly reject unknown fields before exposing the report.
    project:424
  • Family manifests store each member checkout in the row's path (the shape contract uses paths such as members/Atlas), but this resolves only <holder-parent>/<name>. A normal family holder therefore reports its real members/<name> checkout as missing and may inspect an unrelated sibling instead. Resolve the validated manifest path under root (and keep the containment check) rather than reconstructing a sibling path.
    project:91
  • When project is run from an explicitly checked-out workBenches directory with a nonstandard path, this search skips Path.cwd() itself and only tests its parents as <parent>/workBenches. The command then reports that the registry is missing even though cwd/config/bench-config.json exists. Include the current directory as a candidate in addition to the parent-derived locations.
    project:570
  • A declared leg that is absent has present: false and no branch/dirty fields, so this guard allows shape or bench updates to proceed against an incomplete project. That violates the missing-leg diagnostic/update safety contract; reject missing child checkouts before constructing the delegate commands (and use the nested repository state for family children).
    project:275
  • The family-name fast path returns the first matching holder without checking the other default project roots. If both ~/projects/Foo/Foo and ~/Projects/Foo/Foo exist, project status Foo silently chooses one instead of refusing the ambiguous name as the non-family path does. Collect all family matches and apply the same ambiguity check before returning.
  • Files reviewed: 109/114 changed files
  • Comments generated: 3
  • Review effort level: Lite

Comment thread project Resolved
Comment thread project Resolved
Comment thread project Resolved
Copilot AI review requested due to automatic review settings September 11, 2026 02:33
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Final review comments include a critical issue and multiple moderate issues that must be addressed before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (11)

.specify/extensions/git/scripts/python/git_common.py:69

  • The Python validator accepts branch names such as 123- and 20260319-143022- because both expressions allow an empty slug after the final hyphen. This contradicts the documented -.+ contract and the Bash/PowerShell implementations, so validation results differ by platform. Require a non-empty suffix in both regexes.
    .specify/memory/constitution.md:8
  • This is committed as the active project constitution, but it is still the unrendered scaffold with placeholder principle names and descriptions. The Speckit plan workflow loads this file on every plan, while the constitution workflow requires replacing placeholders and validating that no unexplained bracket tokens remain, so the repository starts with an invalid governance document. Populate this file with the project's actual principles or keep the scaffold only under .specify/templates/constitution-template.md.
    openspec/changes/add-project-clean-command/tasks.md:4
  • This file contains executable implementation steps for project clean, but the repository's own OpenSpec workflow prohibits implementation task lists in openspec/changes/*/tasks.md and requires one linked Speckit specs/<feature>/tasks.md. It also has no Speckit handoff, so /opsx:apply/archive cannot process this change through the declared implementation authority. Convert this to governance/handoff milestones and link a single Speckit task file, or split the capability into a separately linked feature.
    openspec/changes/project-command/tasks.md:3
  • The repository's opsx:apply/opsx:archive contract requires this handoff to name exactly one Speckit feature identifier, branch, and repo-relative task path. This line supplies only a path, so the automated workflow cannot resolve the branch and will stop with a missing or ambiguous handoff instead of applying/archiving the change. Record the explicit feature and branch here rather than relying on another artifact.
    project:593
  • This check hard-codes park.sh and resume.sh under the Git extension, but the added extension contains no such scripts; its Bash scripts are for initialize/feature/auto-commit. As a result, a project with this extension installed is reported as missing park/resume in doctor, even though those capabilities belong to the workspace/estate tooling. Query the owning overlay/commands instead of assuming they live under extensions/git.
    project:700
  • Doctor only verifies that the declared bench directory exists and ignores the profile's type and its registered generator script. A .project.json selecting a missing generator therefore receives an ok bench check, so the diagnostic command fails to report an unavailable declared tool. Resolve the exact bench/type entry and check its script availability, as registry() does for the benches report.
    project:226
  • --dry-run is supposed to print the creation plan without executing it, but this prerequisite check refuses before the plan whenever the optional workflow command is not installed. That makes project new ... --workflow --dry-run unusable on a machine that only wants to inspect the plan; defer the which check until the non-dry-run path (or report the command as unavailable in the plan).
    project:783
  • This update path bypasses registry()'s schema validation and assumes both the selected bench entry and every project_scripts item are mappings. A valid JSON file with a malformed entry (for example, a list or scalar) raises AttributeError here, producing an uncaught traceback instead of the CLI's structured refusal and exit code 2. Validate the entry and script records before calling .get().
    project:480
  • The configured upstream may map a local branch to a differently named remote branch (for example, local feature tracking origin/review-feature), but this rejects every such valid mapping and then pushes the local name instead of the configured upstream ref. Use the parsed remote_branch in the push refspec and only reject malformed upstream values.
    project:613
  • The path in a family member row identifies the pinned submodule location (for example, members/Atlas), but this branch ignores it and only inspects the working clone beside the holder. If the pinned submodule is missing or stale while that sibling exists, status/doctor will report the member as healthy and never surface the missing submodule, despite missing-submodule diagnostics being an explicit edge case. Report the declared pinned path separately from the working sibling.
    specs/001-project-command/tasks.md:7
  • These five checked items are not actionable Speckit tasks: they omit the required user-story grouping and exact file paths, and collapse the implementation into broad summaries. The task-generation contract added in this PR requires the checkbox/ID format plus concrete file paths, so the linked implementation authority cannot be used to reproduce or verify the work. Please regenerate this file with one task per requirement, or keep this as a separate handoff summary rather than the executable task list.
  • Files reviewed: 114/119 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread project Resolved
Lane: 001-project-command
Copilot AI review requested due to automatic review settings September 11, 2026 03:13
Lane: 001-project-command
Lane: 001-project-command
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Lane: 001-project-command
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

One or more issues must be addressed before approval.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (8)

.specify/extensions/git/git-config.yml:25

  • The new commit_style: conventional configuration is documented as supported here, but none of the Bash, Python, or PowerShell auto-commit implementations reads it; the setting silently continues to use the static/default message. Implement the option consistently or remove the advertised configuration before exposing it.
    .specify/extensions/git/scripts/python/auto_commit.py:73
  • The Python parser drops the final configuration record whenever git-config.yml has no trailing newline, even though that is valid YAML and the Bash/PowerShell implementations process it. An event or message on the final line is therefore ignored on Python-based hooks; iterate over content.splitlines() directly instead of breaking on records without \n.
    .specify/extensions/git/scripts/python/git_common.py:69
  • This Python validator accepts branch names such as 123- and timestamp-shaped names ending in a bare separator because the sequential check only requires the prefix. The Bash/PowerShell twins and the documented contract require -.+ and reject timestamp-shaped prefixes without a slug, so the same branch is accepted or refused depending on the implementation used. Require a non-empty suffix and exclude the timestamp prefix in the sequential arm.
    openspec/changes/resolve-pr-review-findings/proposal.md:11
  • This change adds a separate project clean command with explicit push, worktree-removal, and branch-deletion actions, but the PR description and the project-command requirements list only new, benches, status, doctor, and update. Please either document clean and its safety contract in the PR scope/validation or split it out, because this currently leaves a significant destructive-capability change undisclosed.
    project:112
  • A registry key whose value is null is treated as if the key were absent here. registry() unpacks the resulting None at line 134, producing an uncaught TypeError, while doctor/update can misreport the malformed selected entry instead of returning the required structured refusal. Distinguish a missing key from a present None value before the mapping check.
    project:377
  • Cleanup only probes refs/remotes/origin/HEAD here. A repository whose default remote is named upstream (or another configured name), with a nonstandard default branch and no manifest declaration, has valid remote-HEAD evidence but is refused as having no default branch. Enumerate the repository's remote HEAD symrefs, or otherwise honor the configured remote, before falling back to main/master.
    project:601
  • Python treats bool as a subclass of int, so a profile containing JSON "schema_version": true passes this comparison and is reported as schema version 1. That is not a valid .project.json schema value; require an exact integer type so malformed profile metadata is refused rather than exposed by status/doctor.
    specs/001-project-command/tasks.md:7
  • This is the authoritative Speckit task list, but every task is a broad checked-off sentence without the exact file paths required by the repository's task format. The workflow cannot map these entries to independently executable implementation work; split them into actionable tasks with the affected paths (and user-story labels where applicable) rather than marking the umbrella items complete.
  • Files reviewed: 120/125 changed files
  • Comments generated: 3
  • Review effort level: Lite

Comment thread .specify/extensions/.registry Resolved
Comment thread project Resolved
Comment thread project Resolved
Copilot AI review requested due to automatic review settings September 11, 2026 03:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved critical and moderate findings remain in cleanup safety, remote handling, parsing, and workflow integration.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (10)

Previously missed (4) — in code that hasn't changed since the last review.

.specify/extensions/git/scripts/python/auto_commit.py:72

  • This parser discards the last config record whenever the YAML file lacks a trailing newline. The Bash twin explicitly handles that case, so a final enabled or message line can be ignored and the Python implementation can silently use the wrong auto-commit setting; process the unterminated record instead of breaking.
    project:134
  • If a registry contains a null bench entry, bench_definition returns None and this unpack raises TypeError, so project benches emits a traceback instead of the structured refusal required for malformed registry data. Handle the missing definition before unpacking.
    project:376
  • Default-branch discovery only checks refs/remotes/origin/HEAD. Repositories whose configured default remote is named upstream (or another name) are refused even when a remote HEAD identifies the merge target, contrary to the manifest/remote-HEAD contract; enumerate remote HEAD refs or derive the configured remote instead of hard-coding origin.
    specs/001-project-command/tasks.md:7
  • This checked-in feature task list is not executable under the repository's Speckit task contract: the user-story tasks are not grouped or labeled with [USn], and none identifies the exact file path to change. As written, downstream task generation/implementation cannot trace these completed items to the P1/P2 stories or concrete files; regenerate this list in the required checklist format with story labels and paths.

.agents/skills/speckit-specify/SKILL.md:99

  • The Codex source workflow copies only the core template, bypassing the preset/extension/override resolver that this checkout provides and that the Claude workflow uses. A project with a template override or preset will therefore generate different specs depending on the integration; resolve the active spec-template before copying it.
   - Copy `TARGET_REPO_ROOT/.specify/templates/spec-template.md` to `SPECIFY_FEATURE_DIRECTORY/spec.md` as the starting point

.specify/extensions/git/git-config.yml:25

  • The newly documented commit_style: conventional setting is never read by the auto-commit command or any of its Bash, PowerShell, or Python implementations; they only consume the enable/message fields and always use the configured/static message. A user changing this setting gets no behavior change, so remove the unsupported option or implement it consistently before advertising it.
    project:553
  • The cleanup contract says that when a branch has no upstream, the user can establish an explicitly named upstream, but this parser exposes no remote or remote-branch selection and the implementation silently hard-codes origin plus the local branch name. Repositories using another remote or a differently named first upstream cannot perform the promised explicit push; add explicit upstream arguments (and validate them) or refuse until one is configured.
    project:45
  • Path.read_text() decodes as UTF-8 before yaml.safe_load; a malformed/non-UTF-8 YAML manifest raises UnicodeDecodeError, which is not covered by this exception tuple and escapes as a traceback. The CLI contract calls for malformed YAML to be a structured refusal, so include the decode error in the handled exceptions (and keep the JSON/YAML error output path).
    project:30
  • A malformed JSON file containing invalid UTF-8 raises UnicodeDecodeError from read_text(), which is not caught here or by main(). Commands such as status --json then emit a traceback instead of the structured refusal required for invalid configuration; catch the decoding error alongside the existing parse errors.
    specs/001-project-command/analysis.md:9
  • The verification count is stale: tests/test_project.py currently contains 38 test methods and the PR description claims 38 offline CLI tests, but this artifact records only 19. Update the evidence to the suite actually run and distinguish the CLI and workBenches counts so the validation record is not ambiguous.
  • Files reviewed: 120/125 changed files
  • Comments generated: 2
  • Review effort level: Lite

Comment thread project Resolved
Comment thread project Resolved
Copilot AI review requested due to automatic review settings September 11, 2026 03:37
Lane: 001-project-command
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Lane: 001-project-command
@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved critical and moderate findings remain in the coordinator, Claude skills, Git helpers, and cleanup/update paths.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Review details

Suppressed comments (11)

.specify/extensions/git/scripts/python/auto_commit.py:72

  • Using splitlines(keepends=True) and breaking on a record without \n skips the final configuration entry when git-config.yml has no trailing newline. If that entry enables the event, the Python auto-commit path silently stays disabled, unlike the Bash twin which handles unterminated final lines.
    .specify/extensions/git/scripts/python/git_common.py:69
  • The Python validator accepts 001- and 20260319-143022- because both regexes stop at the hyphen; the Bash/PowerShell twins and the command contract require a nonempty suffix. This lets an invalid branch pass validation on the Python path.
    openspec/changes/resolve-pr-review-findings/tasks.md:21
  • This remediation task remains unchecked even though the PR description claims the full verification and review closure. Leaving the task open makes the change set self-declared incomplete; mark it complete only after running the full verification and resolving or replying to the new review threads.
    project:114
  • A valid JSON registry can contain a null bench entry. In that case bench_definition() returns None, but registry() unpacks it immediately, so project benches raises a traceback instead of returning the structured refusal promised for malformed bench configuration. Distinguish a missing key from a present non-mapping entry before returning.
    project:618
  • The remote parser searches for github.com anywhere in the string, so a non-GitHub remote such as https://evilgithub.com/acme/app.git is treated as acme/app. That can make status/doctor inspect the wrong parked-work records; anchor the host and parse the complete remote URL before deriving an identity.
    project:709
  • Catching every Refused from handoff converts malformed workspace or parked-record YAML (including invalid UTF-8) into an unavailable field and still returns a successful status/doctor report. This bypasses the remediation contract that every YAML decoding error must be a structured refusal with JSON exit code 2; let the reader error propagate instead of swallowing it.
    project:553
  • When a branch has no upstream, this path always publishes to origin/<local-branch>, but the cleanup contract also allows establishing an explicitly named upstream. There is no remote or remote-branch input, so a repository with a non-origin remote or a differently named initial upstream cannot be targeted; add explicit options or narrow the contract.
    project:859
  • When no manifest branch and no origin/HEAD are available, this fallback assumes main, so a clean repository on local master is rejected as not being the tracking checkout. That contradicts default_branch()'s explicit main/master resolution at project:374-384; reuse that resolver here.
    project:836
  • Nested family members with no declared tracking branch are also forced to main, so updates cannot proceed for a clean member on master (or another locally declared default). Use the member checkout's default-branch resolution consistently with the top-level update guard.
    project:696
  • A project leg with no declared tracking_branch is unconditionally labeled main. Consequently, a clean leg checked out on master is rejected by the child-state guard even though the repository's default-branch resolver supports master. Resolve the leg's local default instead of hard-coding this fallback.
    specs/001-project-command/tasks.md:7
  • These tasks do not follow the repository's required Speckit task format: user-story labels are missing and descriptions have no exact file paths, despite the rules in .claude/skills/speckit-tasks/SKILL.md:147-167. As written, the checked-off tasks are not independently actionable or traceable.
  • Files reviewed: 124/129 changed files
  • Comments generated: 5
  • Review effort level: Lite

4. Feature paths come from `.specify/scripts/bash/check-prerequisites.sh --json` (or `SPECIFY_FEATURE_DIRECTORY` / `.specify/feature.json`). In three-leg, `FEATURE_DIR` is inside the feature's spec worktree and the code worktree is the sibling `<code>/` directory beside it; implementation edits go there.
5. Run the `openspec` CLI with the current directory at the owner of `openspec/`: the root in a single repository, `<spec>/` in a three-leg project.

Full rules: `/home/brett/projects/new-workstation/home/.agents/protocols/openspec-speckit-workflow.md` ("Repository Shape", "Worktree Rules").
author: github-spec-kit
source: git:commands/speckit.git.feature.md
user-invocable: true
disable-model-invocation: true
4. Feature paths come from `.specify/scripts/bash/check-prerequisites.sh --json` (or `SPECIFY_FEATURE_DIRECTORY` / `.specify/feature.json`). In three-leg, `FEATURE_DIR` is inside the feature's spec worktree and the code worktree is the sibling `<code>/` directory beside it; implementation edits go there.
5. Run the `openspec` CLI with the current directory at the owner of `openspec/`: the root in a single repository, `<spec>/` in a three-leg project.

Full rules: `/home/brett/projects/new-workstation/home/.agents/protocols/openspec-speckit-workflow.md` ("Repository Shape", "Worktree Rules").
4. Feature paths come from `.specify/scripts/bash/check-prerequisites.sh --json` (or `SPECIFY_FEATURE_DIRECTORY` / `.specify/feature.json`). In three-leg, `FEATURE_DIR` is inside the feature's spec worktree and the code worktree is the sibling `<code>/` directory beside it; implementation edits go there.
5. Run the `openspec` CLI with the current directory at the owner of `openspec/`: the root in a single repository, `<spec>/` in a three-leg project.

Full rules: `/home/brett/projects/new-workstation/home/.agents/protocols/openspec-speckit-workflow.md` ("Repository Shape", "Worktree Rules").
Comment thread project
Comment on lines +574 to +584
if not args.branch:
raise Refused("Branch cleanup requires --branch BRANCH")
matches = [row for row in rows if row.get("branch") == args.branch]
if args.branch == report["target_branch"]:
raise Refused("The default branch is protected and cannot be deleted.")
if matches and any(row.get("present") and row.get("branch") == args.branch for row in matches):
raise Refused("Remove the linked worktree first; branch deletion is a separate action.")
if ancestor(root, git_text(root, "rev-parse", "--verify", f"refs/heads/{args.branch}"), report["target_branch"]) is not True:
raise Refused(f"Branch {args.branch} is not verified as merged into {report['target_branch']}.")
branch_head = git_text(root, "rev-parse", "--verify", f"refs/heads/{args.branch}")
command = ["git", "-C", str(root), "branch", "-d", args.branch]
Copilot AI review requested due to automatic review settings September 11, 2026 03:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

One or more issues must be addressed before approval.

Review details

Suppressed comments (9)

Previously missed (2) — in code that hasn't changed since the last review.

project:604

  • Because Python treats True == 1, a profile with "schema_version": true passes this check even though it is not schema version 1. That malformed profile is then reported and used for bench/container inspection; validate the type explicitly before accepting the schema.
    specs/001-project-command/tasks.md:7
  • This is the executable Speckit task list, but its entries omit the required user-story labels and exact file paths. The repository task template specifies [ID] [P?] [Story] Description and explicitly requires exact paths; without those fields, the implementation handoff cannot reliably group work or identify its targets. Please rewrite these checked tasks in the template format.

.claude/skills/speckit-git-commit/SKILL.md:21

  • This skill embeds a developer-specific absolute home path, so Claude users on other machines will be sent to a file that does not exist and cannot follow the repository-shape rules. Use the portable AGENT_PROTOCOL_ROOT/$HOME fallback used by AGENTS.md:9-11 instead.
Full rules: `/home/brett/projects/new-workstation/home/.agents/protocols/openspec-speckit-workflow.md` ("Repository Shape", "Worktree Rules").

.claude/skills/speckit-git-feature/SKILL.md:9

  • This is the skill used by the mandatory before_specify hook in .specify/extensions.yml, but disable-model-invocation: true prevents Claude from executing it as an automatic hook. In Claude, /speckit-specify therefore cannot run the required feature-checkout step. Set this to false (or remove the field) as with the other generated Claude skills.
disable-model-invocation: true

.claude/skills/speckit-git-initialize/SKILL.md:21

  • This skill embeds a developer-specific absolute home path, so Claude users on other machines will be sent to a file that does not exist and cannot follow the repository-shape rules. Use the portable AGENT_PROTOCOL_ROOT/$HOME fallback used by AGENTS.md:9-11 instead.
Full rules: `/home/brett/projects/new-workstation/home/.agents/protocols/openspec-speckit-workflow.md` ("Repository Shape", "Worktree Rules").

.claude/skills/speckit-git-remote/SKILL.md:21

  • This skill embeds a developer-specific absolute home path, so Claude users on other machines will be sent to a file that does not exist and cannot follow the repository-shape rules. Use the portable AGENT_PROTOCOL_ROOT/$HOME fallback used by AGENTS.md:9-11 instead.
Full rules: `/home/brett/projects/new-workstation/home/.agents/protocols/openspec-speckit-workflow.md` ("Repository Shape", "Worktree Rules").

.specify/extensions/git/scripts/python/auto_commit.py:71

  • A valid YAML file does not have to end with a newline. With splitlines(keepends=True), the final record then fails this condition and is skipped, so an auto_commit event defined on the last line is silently treated as disabled; the Bash and PowerShell implementations do process that record. Iterate over content.splitlines() (or otherwise handle the final record) without requiring a trailing newline.
    .specify/extensions/git/scripts/python/create_new_feature_branch.py:277
  • When a branch template has a namespace, scope_prefix is supposed to make numbering independent of unrelated specs/NNN-* directories, as the Bash implementation does. This unconditional get_highest_from_specs makes the Python legacy entry point skip to a number from another namespace (for example, it chooses 043 instead of 001 when only specs/042-* exists), so the two entry points produce different branch sequences.
    .specify/extensions/git/scripts/python/create_new_feature_branch.py:376
  • This validator only checks that {number} appears, so the Python legacy entry point accepts duplicate {number} tokens and unknown tokens even though the Bash and PowerShell implementations reject them and the configuration contract says the template has exactly one number token. Such a config can render a different branch shape or leave an invalid token in the branch name. Mirror the shared token and exact-count validation here.
  • Files reviewed: 124/129 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@brettheap
brettheap merged commit a040790 into main Sep 11, 2026
10 checks passed
brettheap added a commit that referenced this pull request Oct 7, 2026
…e-pr-review-findings, project-command (#4)

* Archive add-project-clean-command: landed in PR #1 (a040790); all 9 tasks done

Archived with `openspec archive add-project-clean-command --yes`:
the change moves to openspec/changes/archive/2026-10-07-add-project-clean-command
and its ADDED requirements are merged into the new canonical capability
openspec/specs/project-clean/spec.md (5 added).

Lane: openRepoProject-1

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Archive resolve-pr-review-findings: landed in PR #1 (a040790); all 16 tasks done

Archived with `openspec archive resolve-pr-review-findings --yes`:
the change moves to openspec/changes/archive/2026-10-07-resolve-pr-review-findings
and its ADDED requirements are merged into three new canonical capabilities
under openspec/specs/: project-clean-review-safety (4), project-review-safety
(6) and speckit-extension-integration (1).

Lane: openRepoProject-1

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

* Archive project-command: landed in PR #1 (a040790); all 5 tasks done

Archived with `openspec archive project-command --yes`: the change moves to
openspec/changes/archive/2026-10-07-project-command and its ADDED requirements
are merged into the new canonical capability openspec/specs/project-command/
spec.md (4 added).

The 5 tasks are the Speckit tasks in specs/001-project-command/tasks.md
(T001-T005, all checked); the OpenSpec tasks.md is a handoff stub, so the
tool reports "Task status: No tasks".

Lane: openRepoProject-1

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants