Repository navigation
Implement project creation, diagnostics and maintenance command - #1
Conversation
Lane: project-command
Lane: project-command
There was a problem hiding this comment.
Sorry @brettheap, your pull request is larger than the review limit of 150,000 diff characters
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Lane: project-command
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Lane: project-command
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🟡 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
visitedas 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 bothbenchesand the selected entry are mappings. A malformed but parseable registry such as"testBench": []makesentry.get(...)raise an uncaughtAttributeError, producing a traceback instead of the CLI's structured refusal/exit code 2. Validate the registry shape here (includingproject_scriptsentries) or reuse the same validation before accessing these fields.
project:569 - A missing declared leg has
present: falseand nodirtyorbranch, so this guard treats it as safe and proceeds with shape/bench updates against an incomplete project. Refuse whennot 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 benchactually resolves and runs the exactupdate-<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().parentsexcludes the current directory itself, so runningproject benchesfrom a custom workBenches checkout root (without the marker orWORKBENCHES_ROOT) never tests the registry located atcwd/config/bench-config.jsonand incorrectly refuses. Include the current directory in discovery.
project:419- Existing project legs are appended as bare
repo_state()dictionaries, butprint_report()andcheck_rows()recurse into every child with fields such asname,kind,handoff,profile,workflow, andcontainer. As soon as a declared leg checkout exists,project statusordoctor --validatetherefore raisesKeyErrorinstead 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 makesupdate-shape.pyreturn from its own confirmation without asking the owner. That contradicts the documented requirement that shape mode retain openRepoShape's confirmation prompt (including when project--yesis 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/Fooand~/Projects/Foo/Fooexist,project status Foosilently 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.
There was a problem hiding this comment.
🟡 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 accepts123-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 finalafter_*orenabled: falseentry 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 withbenchesas a list, or a non-object entry, reaches.get()and raises an uncaughtAttributeErrorindoctor(including--json) instead of producing a structured refusal or diagnostic. Validate the mapping and entry types before readingpath, 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 readsdirtyandbranchfrom 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, andsnapshot()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, andcontainer) 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 asmembers/Atlas), but this resolves only<holder-parent>/<name>. A normal family holder therefore reports its realmembers/<name>checkout as missing and may inspect an unrelated sibling instead. Resolve the validated manifest path underroot(and keep the containment check) rather than reconstructing a sibling path.
project:91 - When
projectis run from an explicitly checked-out workBenches directory with a nonstandard path, this search skipsPath.cwd()itself and only tests its parents as<parent>/workBenches. The command then reports that the registry is missing even thoughcwd/config/bench-config.jsonexists. Include the current directory as a candidate in addition to the parent-derived locations.
project:570 - A declared leg that is absent has
present: falseand 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/Fooand~/Projects/Foo/Fooexist,project status Foosilently 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
Lane: 001-project-command
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🟡 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-and20260319-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 inopenspec/changes/*/tasks.mdand requires one linked Speckitspecs/<feature>/tasks.md. It also has no Speckit handoff, so/opsx:apply/archivecannot 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:archivecontract 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.shandresume.shunder 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 indoctor, even though those capabilities belong to the workspace/estate tooling. Query the owning overlay/commands instead of assuming they live underextensions/git.
project:700 - Doctor only verifies that the declared bench directory exists and ignores the profile's
typeand its registered generator script. A.project.jsonselecting a missing generator therefore receives anokbench check, so the diagnostic command fails to report an unavailable declared tool. Resolve the exact bench/type entry and check its script availability, asregistry()does for the benches report.
project:226 --dry-runis 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 makesproject new ... --workflow --dry-rununusable on a machine that only wants to inspect the plan; defer thewhichcheck 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 everyproject_scriptsitem are mappings. A valid JSON file with a malformed entry (for example, a list or scalar) raisesAttributeErrorhere, 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
featuretrackingorigin/review-feature), but this rejects every such valid mapping and then pushes the local name instead of the configured upstream ref. Use the parsedremote_branchin the push refspec and only reject malformed upstream values.
project:613 - The
pathin 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
Lane: 001-project-command
Lane: 001-project-command
Lane: 001-project-command
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Lane: 001-project-command
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🟡 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: conventionalconfiguration 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.ymlhas 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 overcontent.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 cleancommand with explicit push, worktree-removal, and branch-deletion actions, but the PR description and the project-command requirements list onlynew,benches,status,doctor, andupdate. Please either documentcleanand 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
nullis treated as if the key were absent here.registry()unpacks the resultingNoneat line 134, producing an uncaughtTypeError, whiledoctor/updatecan misreport the malformed selected entry instead of returning the required structured refusal. Distinguish a missing key from a presentNonevalue before the mapping check.
project:377 - Cleanup only probes
refs/remotes/origin/HEADhere. A repository whose default remote is namedupstream(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 tomain/master.
project:601 - Python treats
boolas a subclass ofint, so a profile containing JSON"schema_version": truepasses this comparison and is reported as schema version 1. That is not a valid.project.jsonschema 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
There was a problem hiding this comment.
🟡 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
enabledormessageline 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
nullbench entry,bench_definitionreturnsNoneand this unpack raisesTypeError, soproject benchesemits 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 namedupstream(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-codingorigin.
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-templatebefore 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: conventionalsetting 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
originplus 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 beforeyaml.safe_load; a malformed/non-UTF-8 YAML manifest raisesUnicodeDecodeError, 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
UnicodeDecodeErrorfromread_text(), which is not caught here or bymain(). Commands such asstatus --jsonthen 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.pycurrently 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
Lane: 001-project-command
Lane: 001-project-command
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Lane: 001-project-command
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Lane: 001-project-command
|
@codex review |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
🟡 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\nskips the final configuration entry whengit-config.ymlhas 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-and20260319-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()returnsNone, butregistry()unpacks it immediately, soproject benchesraises 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.comanywhere in the string, so a non-GitHub remote such ashttps://evilgithub.com/acme/app.gitis treated asacme/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
Refusedfromhandoffconverts malformed workspace or parked-record YAML (including invalid UTF-8) into anunavailablefield 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/HEADare available, this fallback assumesmain, so a clean repository on localmasteris rejected as not being the tracking checkout. That contradictsdefault_branch()'s explicitmain/masterresolution atproject: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 onmaster(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_branchis unconditionally labeledmain. Consequently, a clean leg checked out onmasteris rejected by the child-state guard even though the repository's default-branch resolver supportsmaster. 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"). |
| 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] |
There was a problem hiding this comment.
🔵 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": truepasses 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] Descriptionand 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/$HOMEfallback used byAGENTS.md:9-11instead.
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_specifyhook in.specify/extensions.yml, butdisable-model-invocation: trueprevents Claude from executing it as an automatic hook. In Claude,/speckit-specifytherefore cannot run the required feature-checkout step. Set this tofalse(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/$HOMEfallback used byAGENTS.md:9-11instead.
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/$HOMEfallback used byAGENTS.md:9-11instead.
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 anauto_commitevent defined on the last line is silently treated as disabled; the Bash and PowerShell implementations do process that record. Iterate overcontent.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_prefixis supposed to make numbering independent of unrelatedspecs/NNN-*directories, as the Bash implementation does. This unconditionalget_highest_from_specsmakes the Python legacy entry point skip to a number from another namespace (for example, it chooses 043 instead of 001 when onlyspecs/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
…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]>
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.