Skip to content

refactor: rename Consolidate-Tasks.ps1 -> Consolidate-Specs.ps1#185

Merged
MarkMichaelis merged 1 commit into
mainfrom
refactor/184-rename-consolidate-specs
Jun 5, 2026
Merged

refactor: rename Consolidate-Tasks.ps1 -> Consolidate-Specs.ps1#185
MarkMichaelis merged 1 commit into
mainfrom
refactor/184-rename-consolidate-specs

Conversation

@MarkMichaelis

Copy link
Copy Markdown
Contributor

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 standard docs/ archive (docs/specs/ + docs/designs/); the old name no longer matches what it does now that the tasks/ convention is retired.

Changes

  • git mv both files (history preserved -- 98% / 99% rename similarity).
  • Pull-SDLC.ai.ps1:
    • MetaScriptPaths and Invoke-MainTreeCleanup candidate defaults now use the new names.
    • UpstreamManagedPaths carries both the new names and the retired ones. The retired entries are required for orphan cleanup: Get-UpstreamOps filters the diff-replay by this pathspec, so the old path must remain listed or every consumer keeps a stale Consolidate-Tasks.ps1 after the rename lands.
  • docs/README.md migration guide + the script's own manifest/log strings updated.

Testing (behavior-first)

  • Tests updated first (Red), then the rename (Green).
  • Added a Get-UpstreamOps regression that proves the Consolidate-Tasks -> Consolidate-Specs rename replays as an orphan-removing op when both names are managed.
  • Kept the retired names asserted in Test-IsUpstreamManagedPath so the orphan-cleanup contract can't silently regress.
  • Full suite: 226 passing, 0 failing (193 Pull-SDLC + 33 Consolidate-Specs).

Closes #184

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>
@MarkMichaelis MarkMichaelis merged commit 50f1233 into main Jun 5, 2026
2 checks passed
@MarkMichaelis MarkMichaelis deleted the refactor/184-rename-consolidate-specs branch June 5, 2026 17:44
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.

refactor: rename Consolidate-Tasks.ps1 -> Consolidate-Specs.ps1

1 participant