Skip to content

Artifacts of a milestone that lives in milestones/M###/ are still written flat #70

Closed

Description

@lx-0

What happens

yt_find_artifacts (hooks/lib/git-ctx.sh) reads milestone artifacts from the flat layout and from milestones/, milestones/*/, backlog/, backlog/*/ and quick/, but every skill that writes an artifact (plan-task, summarize-task, slice-milestone, plan-milestone) writes it flat into .ytstack/. A project that moved the files of its older milestones into .ytstack/milestones/M###/ therefore gets the next PLAN or SUMMARY of such a milestone back at the top level, next to the moved ones.

Seen in

A consumer repository with about 40 milestones moved 299 files of its older milestones to .ytstack/milestones/M###/ and 312 ad-hoc files to .ytstack/backlog/<PREFIX>/ (ytstack 0.9.2). ytstack-frontier list and check answer the same before and after the move, so reading works. Writing does not follow: the next task file of an open old milestone lands flat again.

Expected

When a milestone's artifacts already live in milestones/M###/ (or the ROADMAP is found there), new artifacts of that milestone are written to the same directory. Same for a backlog/<PREFIX>/ directory that already holds files of that prefix.

Version

ytstack 0.9.2 (hooks/lib/git-ctx.sh, comment "Writing stays flat; only reading tolerates the alternatives").

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions