Skip to content

fix: Consolidate-Tasks discards date prefix and chronological order #174

Description

@MarkMichaelis

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

  1. Preserve a leading YYYY-MM-DD- prefix on the destination name so the
    tasks/ listing sorts chronologically (slug + kind suffix retained).
  2. 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).
  3. Update tasks/README.md and the script help; add tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions