refactor: rename Consolidate-Tasks.ps1 -> Consolidate-Specs.ps1#185
Merged
Conversation
The script was inverted in #182 to consolidate legacy spec artifacts INTO the standard docs/ archive (docs/specs/ + docs/designs/). Its name still said "Tasks", which is misleading now that the tasks/ convention is retired. Rename it (and its Pester suite) to Consolidate-Specs to match the docs/specs vocabulary. - git mv Consolidate-Tasks.ps1 -> Consolidate-Specs.ps1 (+ .Tests.ps1) - Pull-SDLC.ai.ps1: MetaScriptPaths and Invoke-MainTreeCleanup candidates use the new names; UpstreamManagedPaths carries BOTH the new and the retired names so the rename/delete replays into consumer trees (orphan cleanup -- Get-UpstreamOps filters the diff by this pathspec). - docs/README.md and the script's own manifest/log strings updated. - Tests updated first (Red), then the rename (Green); added a Get-UpstreamOps orphan-propagation regression and kept the retired names asserted as managed. Closes #184 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Renames the spec-consolidation meta-script
Consolidate-Tasks.ps1->Consolidate-Specs.ps1(and its Pester suite). The script was inverted in #182 to consolidate legacy spec artifacts INTO the standarddocs/archive (docs/specs/+docs/designs/); the old name no longer matches what it does now that thetasks/convention is retired.Changes
git mvboth files (history preserved -- 98% / 99% rename similarity).Pull-SDLC.ai.ps1:MetaScriptPathsandInvoke-MainTreeCleanupcandidate defaults now use the new names.UpstreamManagedPathscarries both the new names and the retired ones. The retired entries are required for orphan cleanup:Get-UpstreamOpsfilters the diff-replay by this pathspec, so the old path must remain listed or every consumer keeps a staleConsolidate-Tasks.ps1after the rename lands.docs/README.mdmigration guide + the script's own manifest/log strings updated.Testing (behavior-first)
Get-UpstreamOpsregression that proves theConsolidate-Tasks -> Consolidate-Specsrename replays as an orphan-removing op when both names are managed.Test-IsUpstreamManagedPathso the orphan-cleanup contract can't silently regress.Closes #184