Repository navigation
Archive completed OpenSpec changes: add-project-clean-command, resolve-pr-review-findings, project-command - #4
Conversation
…asks 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]>
… 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]>
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]>
Reviewer's GuideThis housekeeping PR archives the three completed OpenSpec changes from merged PR #1 and materializes their requirements as five validated canonical specifications; it does not change implementation code, documentation, or active work. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
brettheap
left a comment
There was a problem hiding this comment.
Lane: openRepoProject-1
Re-verification — openRepoProject#4 @0e7f029 (archive)
Read-only independent re-verification at head 0e7f029a6a908739935825bff4bc5141d2c8be64 (PR head confirmed = 0e7f029, DRAFT, base main a040790, mergeable CLEAN). Measured in a detached worktree of the head; nothing was fixed, committed, pushed or marked ready.
Verdict: READY (opinion, offered for Brett Heap's advance word "ratify the archive PR when ready"). 0 BLOCKING, 5 non-blocking notes.
Closed
-
Renames are pure.
git diff --name-status -M origin/main..0e7f029 -- openspec/changesgives 17R100lines;git diff -M … -- openspec/changes | grep -c '^similarity index 100%'= 17; 17 = the files the three changes held on main (5 + 7 + 5;git ls-treeof main shows 18 underopenspec/changes/, the 18th beingarchive/.gitkeep, which is kept). Tree-hash proof, source dir vs archive dir:add-project-clean-command26e67a4e… = 26e67a4e…;project-commandf96edff3… = f96edff3…;resolve-pr-review-findings1bd3a970… = 1bd3a970…. Whole diff: 298 insertions, 0 deletions, 0 modified, 0 deleted files; nothing outsideopenspec/changed (git diff --stat origin/main..0e7f029 -- . ':!openspec'empty). No non-100% rename, no content change. -
Canonical-spec merge is faithful. For each capability,
diff <(sed -n '/^### Requirement:/,$p' source) <(sed -n '/^### Requirement:/,$p' canonical)exits 0 (byte-identical requirement sections: names, SHALL text, scenarios, same order), and a second parser pass compared every block by name: 20/20 EQUAL, 0 duplicates, 0 only-in-source, 0 only-in-canonical, scenario counts equal. The Purpose text is identical; the only header difference is the tool's# <cap> Specificationtitle and## ADDED Requirements→## Requirements, plus one blank line after## Purpose. Source headings are only## Purposeand## ADDED Requirements(no MODIFIED/REMOVED/RENAMED), and no capability is fed by two changes, so there was no same-capability merge to lose anything in.capability canonical file (req headings at) canonical source ADDED writer scenarios (canon/src) result project-clean openspec/specs/project-clean/spec.md(L10,25,39,55,70)5 5 (add-project-clean-command) 5 5/5 EQUAL project-clean-review-safety openspec/specs/project-clean-review-safety/spec.md(L9,21,38,49)4 4 (resolve-pr-review-findings) 4 5/5 EQUAL project-review-safety openspec/specs/project-review-safety/spec.md(L9,21,32,51,67,78)6 6 (resolve-pr-review-findings) 6 8/8 EQUAL speckit-extension-integration openspec/specs/speckit-extension-integration/spec.md(L9)1 1 (resolve-pr-review-findings) 1 2/2 EQUAL project-command openspec/specs/project-command/spec.md(L9,22,31,40)4 4 (project-command) 4 5/5 EQUAL total 20 20 20 25/25 openspec/specs/.gitkeepis retained; the five spec files are the only additions (allA). -
Validators and tests (measured at head, openspec 1.13.1).
openspec validate --all --strict→Totals: 5 passed, 0 failed (5 items), exit 0.openspec validate --archived→Totals: 3 passed, 0 failed (3 items), exit 0.openspec list→No active changes found.openspec list --specs→ project-clean 5, project-clean-review-safety 4, project-command 4, project-review-safety 6, speckit-extension-integration 1.python3 -m pytest tests -q→43 passed in 14.86s; CI's own runnerpython3 -m unittest discover -s tests→Ran 43 tests … OK. The diff touches no code or tests, so main's 43 carries over. -
Completeness. Archived
tasks.mdcheckboxes:add-project-clean-command9 checked / 0 unchecked;resolve-pr-review-findings16 / 0 (1.1-1.8, 2.1-2.4, 3.1-3.4);project-commandtasks.mdis the 4-line "Speckit handoff" stub (0 boxes, L1-4) and the real listspecs/001-project-command/tasks.mdL3-7 is T001-T005, 5/5[x], 0 unchecked;grep -rnE '^\s*- \[ \]' specs openspecreturns nothing.git merge-base --is-ancestor a040790 origin/main→ true;origin/main= a040790;gh pr view 1→ MERGED, mergeCommit a040790…, mergedAt 2026-09-11. Spot-checks of the body's evidence table on this tree all hold:projectL396cleanup_report, L598profile, L618remote_repository_identity, L508require_unchanged_cleanup_state, L788inspect_project, L357--ignored=matching, L217 "Destination already exists", L571worktree remove, L586branch -d; all 21 named tests exist intests/; on opensoft/workBenchesscripts/setup-project-command.py,scripts/onpexist andscripts/new-project.shL5 isexec bash "$script_dir/project" new "$@". No README/AGENTS/docs/specs pointer to an archived path:git grep -nE 'add-project-clean-command|resolve-pr-review-findings|changes/project-command' -- . ':!openspec'is empty (the.claude/commands/opsx/*.mdhits are<name>template placeholders, andspecs/001-project-command/spec.md:3is the Speckit branch label). -
Hygiene. PR body line 1 is
Lane: openRepoProject-1. Three commits (5acb0e9, 230f11a, 0e7f029), one per change, each endingLane: openRepoProject-1andCo-Authored-By: Claude Sonnet 5.5 <[email protected]>; each commit is only R100 renames of its own change plus its own new spec(s) (5 R100 + 1 A; 7 R100 + 3 A; 5 R100 + 1 A). Body's results table (43 passed; 5 passed; 3 passed; tasks 9/9, 16/16, 5/5) matches what I measured. DRAFT confirmed (isDraft: true). Design branch:git diff --stat origin/main..origin/docs/project-maintenance-design -- openspecis empty (5 files, allideation/brainstorm/*), andgit merge-tree --write-treeof the two heads is conflict-free. The OPENED line exists at/workspace/projects/brett-wip/lanes/log/openRepoProject-1.md:73:OPENED — lane openRepoProject-1, … 2026-10-07T00:09:36Z, opensoft/openRepoProject#4 — … DRAFT @0e7f029. -
CI is green, not action_required.
gh pr checks 4: 8/8test (ubuntu|macos-latest, 3.10|3.12)= pass, in twotestsruns, both withheadSha0e7f029: push run 37550398801 (success) and pull_request run 37550456405 (success).gh run listshows bothcompleted success. Local pytest is not needed as a substitute.
Non-blocking
N1. The body says "zero fetch/pull/--force strings in project". Not literally true: project:372 ("local refs only; no fetch"), :473 ("…as of the last fetch; no fetch performed") and :468 ("…pull-request or merge process") are report text. The substance holds: there is no git fetch/pull invocation and no --force flag anywhere in project. Wording only; it describes already-merged code, not this diff.
N2. Sourcery appended a "Summary by Sourcery" block to the body (labels the PR "Enhancements"; it is a housekeeping/chore PR with no code change) and posted its reviewer's guide as a comment. If the body is used as the squash message, trim that block.
N3. CI runs python -m unittest discover (.github/workflows/tests.yml), not pytest; the body quotes pytest. Both give 43; no discrepancy.
N4. Commit subjects are 79 and 81 characters (5acb0e9, 230f11a), over the usual 72; GitHub displays them with a "…" and a continuation, but git log shows them intact.
N5. Forward look, no action needed: open PR #2 (cleanup) adds four new ADDED-only changes under openspec/changes/. git merge-tree of #2 and #4 is conflict-free, and a throwaway export of that merged tree validates openspec validate --all --strict → 9 passed (4 changes + 5 specs). Merge order of #2 and #4 does not matter.
BLOCKING
None.
READY as an opinion for Brett Heap's advance word. The merge itself remains with the lane and Brett Heap.
|
Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 17 hours and 5 minutes by commenting |
The capabilities note cited chore/archive-completed-changes as having no pull request; #4 was opened for it at 0e7f029 while this proposal was drafted, so the note now names it. Refs #3 Lane: openRepoProject-1 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…r-triad-in-project-new Lane: openRepoProject-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Lane: openRepoProject-1 LANDED by squash as |
Apply the lead's rulings R1 to R14 on both alignment reports. - Scope is creation-only: the status/doctor advisory and its exemption reader leave What Changes, Impact and Rules; Out of Scope records why, the detection and record-rule divergences, and the pre-existing doctor --validate --strict exit. - D2's stderr advisory is owed after a flag-chosen or non-interactive single-repository creation, before any --workflow step; the rule that contradicted it is restated. - One helper decides a person at the terminal (stdin and stdout ttys, CI false-y); the choosing flags, the question's position, its answers, the Triad prerequisites, the name constraint and the -wip exemption are stated. - Modified Capabilities now names project-command (archive PR #4 merged as 67efa80); the standalone capability is dropped. - Why adds the routing through workBenches lane project-command's claim; Impact adds the pty test helper, pinned fixtures and the one Speckit handoff. Lane: openRepoProject-1 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…r-triad-project-shape) (#5) * OpenSpec: propose prefer-triad-in-project-new (openxFactory task 5.6) Scaffold the change and draft proposal.md only: an interactive `project new` offers the Triad first, explicit flags keep today's behaviour, and `status`/`doctor` give the advisory once for a non-exempt single repository, never as a gate, check or review input. Alignment review, council and design follow in the same pull request. Refs #3 Lane: openRepoProject-1 Co-Authored-By: Claude Opus 5.5 <[email protected]> * OpenSpec: prefer-triad-in-project-new names archive PR #4 The capabilities note cited chore/archive-completed-changes as having no pull request; #4 was opened for it at 0e7f029 while this proposal was drafted, so the note now names it. Refs #3 Lane: openRepoProject-1 Co-Authored-By: Claude Opus 5.5 <[email protected]> * OpenSpec: revise prefer-triad-in-project-new after alignment review Apply the lead's rulings R1 to R14 on both alignment reports. - Scope is creation-only: the status/doctor advisory and its exemption reader leave What Changes, Impact and Rules; Out of Scope records why, the detection and record-rule divergences, and the pre-existing doctor --validate --strict exit. - D2's stderr advisory is owed after a flag-chosen or non-interactive single-repository creation, before any --workflow step; the rule that contradicted it is restated. - One helper decides a person at the terminal (stdin and stdout ttys, CI false-y); the choosing flags, the question's position, its answers, the Triad prerequisites, the name constraint and the -wip exemption are stated. - Modified Capabilities now names project-command (archive PR #4 merged as 67efa80); the standalone capability is dropped. - Why adds the routing through workBenches lane project-command's claim; Impact adds the pty test helper, pinned fixtures and the one Speckit handoff. Lane: openRepoProject-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> * OpenSpec: prefer-triad-in-project-new proposal wording pass Reflow the terminal-helper paragraph and say plainly why project asks for the visibility: openRepoShape would otherwise default it to private. Lane: openRepoProject-1 Co-Authored-By: Claude Fable 5.1 <[email protected]> * OpenSpec: prefer-triad-in-project-new resolves the council verdicts Apply the lead's eleven VALID verdicts (V1 to V11) to proposal.md and record the six NOTED ones (N1 to N6) in a new clarifications.md. - Known obstacles: the assembly-root name form, openRepoShape on PATH and the parent directory are read before the question, named beside the Triad, and refused with exit 2 on a Triad answer before any prompt or network; openRepoShape's own refusals keep its status. "CamelCase" is gone; Preview is reworded for both answers. - --workflow: project keeps its advisory; setup-openspeckit's follows as a second ratified form, and the double offer is recorded with its cases and a workBenches follow-up. - The organisation and visibility prompts get the question's rules and a restating line; the --workflow refusal is hoisted only when the question is asked. - The prompt-stream wording and the pty helper are corrected; the advisory write is guarded and ASCII-only; a bench creation counts as a single repository whether or not Git is initialised. - Declining, agents at a pty, the -wip reading at creation, the workBenches pin-advance handoff issue, the y/yes/n/no answers and four small corrections. Lane: openRepoProject-1 Co-Authored-By: Claude Opus 5.5 <[email protected]> * OpenSpec: prefer-triad-in-project-new spec delta for project-command Write the change's delta on the project-command capability. - MODIFIED "Delegate project creation": the whole requirement restated, adding the Triad-first offer, typed organization and visibility as explicit, the creation advisory, and that nothing is created without the person's confirmation; "Preview" now holds for both answers. - ADDED six requirements: who is asked the creation question and where it sits; the question's entries and answers; the known Triad obstacles, named beside the Triad and refused with exit 2 on a Triad answer; the organization and visibility prompts and the restating line; the creation advisory and its guarded write; and the order under --workflow. - 47 scenarios, behaviour only; openRepoShape's refusals promise no status beyond passing through. Lane: openRepoProject-1 Co-Authored-By: Claude Opus 5.5 <[email protected]> * OpenSpec: prefer-triad-in-project-new design Decide how project new builds the spec delta, answering the council's noted constraints N1 to N6. - One terminal rule and one offer value computed once in new(); the --workflow refusal is hoisted only for an asked invocation. - Both answers re-enter today's shape and bench branches; the question and the Triad prompts share one retry and end-of-input rule through ask(). - Known obstacles are three local reads; the assembly-root and -wip forms are pinned from openRepoShape 1a9fc537. - The advisory is written with os.write on stderr's descriptor: probes show a swallowed buffered write exits 120 on /dev/full and print(file=sys.stderr) lands on stdout when stderr is closed. - Under --workflow, project's offer comes first and setup-openspeckit follows unchanged; Ctrl-C while openRepoShape runs keeps today's behaviour, documented, with the wait-for-child alternative recorded. - Fixed ASCII text, exit statuses, the pty helper and the fakes. Lane: openRepoProject-1 Co-Authored-By: Claude Opus 5.5 <[email protected]> * OpenSpec: prefer-triad-in-project-new governance tasks and handoff tasks.md is the governance and handoff record only: the governance boxes (ratification by Brett Heap's word left open), the one Speckit feature still to be created by /speckit.specify, and the landing and archive steps. Implementation tasks belong to that feature alone. Lane: openRepoProject-1 Co-Authored-By: Claude Opus 5.5 <[email protected]> * Fold four non-blocking review notes into prefer-triad-in-project-new From review 5436721813 (READY, zero blocking findings): 1. design.md D14 and proposal.md test plan: the --workflow tests assert the fake setup-openspeckit is what PATH resolves, and the refusal test without it asserts None. 2. spec.md creation-advisory requirement: SHALL NOT run adopt-project.py, convert an existing repository, or write a manifest or record on the advisory's account. 3. design.md D13: lower-case "preferred, not required" in entry 1 so it matches the spec scenario. 4. spec.md creation-advisory requirement: "(chosen by flag, or the terminal rule does not hold)" now covers the CI case. Nothing else changed. Lane: openRepoProject-1 Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Lane: openRepoProject-1
Housekeeping DRAFT. Archives the three OpenSpec changes whose Speckit work and PR landed as PR #1 (a040790, merged 2026-09-11). One commit per change, each produced by
openspec archive <name> --yes(openspec 1.13.1) with no--skip-specsand no--no-validate.Rule applied: the shared protocol (
~/.agents/protocols/openspec-speckit-workflow.md, Lifecycle step 7) archives a change only after its Speckit work and PR have landed. This repo is a single repository, so the OpenSpec root is the repo root.gh pr view 1reports state MERGED, mergeCommit a040790.Verification table
add-project-clean-commandtasks.md)projectcleanup_report()L396 classifies worktrees;tracking_freshness"local refs only ... no fetch performed" L473; zerofetch/pull/--forcestrings inproject; remove runs onlygit worktree remove(L571) formerged-removable, branch delete onlygit branch -d(L586). Tests PASSED:test_clean_is_read_only_and_classifies_linked_worktrees,test_clean_removes_only_merged_worktree_and_keeps_branch,test_clean_refuses_unmerged_worktree_removal,test_clean_pushes_explicit_clean_feature_branch_without_force,test_clean_reports_dirty_detached_and_pushed_unmerged_states. README "Clean up Git worktrees" section present.openspec validate --all --strictpass before and after;validate --archivedpassresolve-pr-review-findingstasks.md)profile()L598 returns onlyschema_version/bench/type/container;remote_repository_identity()L618 accepts only full github.com forms; ignored files via--ignored=matchingL357 yieldingignored-local-files; no-guess default branch refusal L403;require_unchanged_cleanup_state()L508 ("Cleanup state changed after confirmation");.claude/skills/speckit-git-{commit,feature,initialize,remote,validate}/SKILL.mdpresent. Tests PASSED:test_profile_reports_filter_unknown_secret_fields,test_clean_preserves_ignored_files_in_an_otherwise_merged_worktree,test_clean_refuses_to_guess_a_nonstandard_default_branch,test_clean_revalidates_a_worktree_after_confirmation,test_handoff_rejects_non_github_host_before_record_lookup,test_handoff_rejects_path_like_remote_identity_before_record_lookup,test_invalid_yaml_encoding_is_a_structured_error,test_malformed_bench_entries_refuse_without_tracebacks,test_registered_claude_git_commands_have_skill_bundles.openspec validate --all --strictpass before and after;validate --archivedpass (tool printed one non-blocking proposal warning: "Consider splitting changes with more than 10 deltas")project-commandtasks.mdis a Speckit handoff stub (tool: "Task status: No tasks"); the real listspecs/001-project-command/tasks.mdis 5/5 checked (T001-T005), 0 unchecked, no unchecked boxes anywhere underspecs/projectsubcommandsnew(L204; "Destination already exists" refusal L217;--dry-runL248),benches,status/doctor(inspect_projectL788),update(L844;--dry-runL908), all in the parser L926-975. Tests PASSED:test_benches_excludes_updaters_and_reports_missing,test_dry_run_creates_no_parent,test_existing_destination_and_noninteractive_confirmation_refuse,test_shape_skips_assembly_dot_and_reports_missing_legs,test_status_from_nested_path_and_feature_worktree_is_read_only,test_update_default_and_dry_run_do_not_execute,test_update_refuses_dirty_and_feature_branch. Cross-repo leg (spec "Distribution and compatibility"): on opensoft/workBenchesmain,scripts/setup-project-command.py(SHA-256 verified, commit-pinned installer),scripts/onp(forwards tonew-project.sh),scripts/new-project.sh(exec bash "$script_dir/project" new "$@").openspec validate --all --strictpass before and after;validate --archivedpassNo change under
openspec/changes/contained "blocked", "awaiting" or an unchecked task. The only grep hit for "pending" was the scenario title "Worktree changes while confirmation is pending" inresolve-pr-review-findings/specs/project-clean-review-safety/spec.md, which is requirement text and not a status.What the archive did to openspec/specs/ (canonical spec merge)
openspec/specs/held only.gitkeep. Each archive merged the change's ADDED requirements into new canonical capabilities (allcreate, none modified, removed or renamed):project-cleanproject-clean-review-safetyproject-review-safetyspeckit-extension-integrationproject-commandChanges now live under
openspec/changes/archive/2026-10-07-<name>/, moved as renames, content unchanged.openspec/changes/has no active changes left.Pointers
grepforopenspec/changes/<name>and the three change names across README, AGENTS.md, docs/, specs/ and the tool directories on main found no pointer to an archived path. The only name hits are the Speckit branch label001-project-commandinspecs/001-project-command/spec.md, which is not an OpenSpec path, and the change files themselves. No README or AGENTS edit was needed. The design branchdocs/project-maintenance-designadds onlyideation/brainstorm/*and touches nothing underopenspec/, so this PR does not conflict with it.Left unarchived
None. All three candidates verified complete and the tool accepted each.
Results at head
python3 -m pytest tests -q: 43 passed (same as main).openspec validate --all --strict: 5 passed, 0 failed (the five new canonical specs; no active changes).openspec validate --archived: 3 passed, 0 failed.Draft only; not marked ready, not merged.
🤖 Generated with Claude Code
Summary by Sourcery
Archive the completed project command work and merge its requirements into the canonical OpenSpec specifications.
Enhancements:
Chores: