Problem
Consolidate-Tasks.ps1 strips the leading YYYY-MM-DD- date prefix from every
imported design-note / PRD filename via Get-FeatureSlug. The original date --
and therefore the chronological ordering of the artifacts -- is discarded and
recorded nowhere. For example a real run collapsed seven dated design notes:
docs/designs/2026-04-12-fix-setup-config-path-plan.md -> tasks/fix-setup-config-path-plan.md
docs/designs/2026-04-13-auth-consolidation-plan.md -> tasks/auth-consolidation-plan.md
...
The tasks/ listing no longer sorts chronologically and the provenance date is lost.
Fix
- Preserve a leading
YYYY-MM-DD- prefix on the destination name so the
tasks/ listing sorts chronologically (slug + kind suffix retained).
- Add a
Source Date column to tasks/MIGRATION.md (embedded date, else
the file's last-write date) and sort manifest rows chronologically -- this
captures order for sources with no date in the name (session plan.md).
- Update
tasks/README.md and the script help; add tests.
Problem
Consolidate-Tasks.ps1strips the leadingYYYY-MM-DD-date prefix from everyimported design-note / PRD filename via
Get-FeatureSlug. The original date --and therefore the chronological ordering of the artifacts -- is discarded and
recorded nowhere. For example a real run collapsed seven dated design notes:
The
tasks/listing no longer sorts chronologically and the provenance date is lost.Fix
YYYY-MM-DD-prefix on the destination name so thetasks/listing sorts chronologically (slug + kind suffix retained).Source Datecolumn totasks/MIGRATION.md(embedded date, elsethe file's last-write date) and sort manifest rows chronologically -- this
captures order for sources with no date in the name (session
plan.md).tasks/README.mdand the script help; add tests.