@rasensio/aidlc-content 2.15.0 → 2.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/roadmap.md CHANGED
@@ -601,6 +601,27 @@ An item that has left a projected status keeps its open issue and is reported ev
601
601
  a user-side step, and a shipped action would start firing in every project on the next
602
602
  `aidlc update`.
603
603
 
604
+ ### Milestones on GitHub
605
+
606
+ With a valid `.aidlc/roadmap/milestones.yaml`, `sync` also projects each milestone to a GitHub
607
+ milestone, in file order and before any issue write. The milestone's title is its `title`, and its
608
+ description is its exit test followed by a line `aidlc-milestone: <id>` — that line, not the title, is
609
+ how the next run finds it, so renaming a milestone in the file renames it on GitHub. A milestone whose
610
+ status is done is closed; one that gains an open item again is reopened. Each projected issue is put
611
+ under its item's milestone, or has its milestone cleared when the item is Unassigned. This goes by
612
+ milestone number through `gh api`, because `gh issue edit --milestone` only finds open milestones and
613
+ an issue could then never sit under a done one. An issue the same run creates gets its milestone in
614
+ that run.
615
+
616
+ It is push-only like the rest. A milestone retitled on GitHub, or an issue moved to another milestone
617
+ there, is put back on the next sync; nothing is read back into the files. A GitHub milestone that
618
+ carries a marker the file no longer lists is reported as `milestone-orphan` and left alone — deleting
619
+ it is yours. `sync` refuses, writing nothing, when the file does not parse, when two GitHub milestones
620
+ carry the same marker, or when a milestone's title is already used by another entry or by a GitHub
621
+ milestone that is not its own. Only projected issues are counted, so a milestone's GitHub total
622
+ leaves out items whose status `sync` does not project. Without a milestones file, `sync` makes the
623
+ same calls as before and never touches an issue's milestone.
624
+
604
625
  ### Moving a Project board
605
626
 
606
627
  Put the issues on a GitHub Project and they all land in one column. That is the projection stopping
@@ -646,7 +667,7 @@ the two differ.
646
667
  - `packages/cli/src/roadmap/sync` — the GitHub projection: `plan.ts` is pure and imports no
647
668
  filesystem, no subprocess and not the `gh` seam, so planning is testable with no network at all;
648
669
  `execute.ts` is the only writer and imports no `node:fs`; `gh.ts` is the single subprocess boundary,
649
- argument-array only. `body.ts` renders the projection-owned region and merges it into an existing
670
+ argument-array only. `milestone-projection.ts` plans the GitHub milestones, as pure as `plan.ts`. `body.ts` renders the projection-owned region and merges it into an existing
650
671
  issue; `sanitize.ts` defuses item prose; `markdown.ts` is the one place that decides what counts as
651
672
  code, shared by the sanitizer and the marker scanner so the two cannot disagree.
652
673
  - `packages/cli/src/commands/roadmap.ts` — the `sync`, `import` and `board-workflow` commands,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rasensio/aidlc-content",
3
- "version": "2.15.0",
3
+ "version": "2.16.0",
4
4
  "bugs": "https://github.com/rasensio/aidlc-feedback/issues",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -249,11 +249,12 @@ Move the item to `hold/` and append the `history` entry, with a reason prefixed
249
249
 
250
250
  Optional, opt-in, and inert until a `roadmap.sync` section exists in `.aidlc/config.yaml`. When a user asks how the roadmap can be visible to people who will not clone the repo, or how it can appear where their team already triages, the answer is `aidlc roadmap sync` — see `docs/roadmap.md`.
251
251
 
252
- Four things to know before you offer it:
252
+ Five things to know before you offer it:
253
253
 
254
254
  - It is a **projection, not sync**. Disk stays the source of truth; nothing is written back to disk, so no item gains a `remote:` field and no flow above changes. The link lives on the issue as a marker carrying the item `id`.
255
255
  - **`inbox/` and `hold/` are not projected by default**, because an untriaged idea and a parked one are not decisions anybody has published. Do not widen that list on a user's behalf.
256
256
  - **Every write needs consent.** Suggest `aidlc roadmap sync --dry-run` first, always. It prints the plan, names the target repository, and touches nothing.
257
+ - **Milestones follow the file.** With a `milestones.yaml`, sync creates, retitles, closes and reopens one GitHub milestone per entry and sets each issue's milestone from its item's `milestone:` line. Change a milestone in the file, never on GitHub — a GitHub-side edit is overwritten on the next sync.
257
258
  - **The issue body carries the whole item** — its frontmatter facts, its prose, and links to its file and to the items it names — inside a region marked `<!-- aidlc-body:begin -->` … `<!-- aidlc-body:end -->`, regenerated on every sync. Text outside that region is preserved, so a note added to an issue description survives. When somebody asks why a projected issue is out of date, the answer is that a sync has not run since the item changed, not that the body is frozen.
258
259
 
259
260
  Editing an item's body is therefore a publishing act on a repo with `roadmap.sync` configured. That is not a reason to hesitate, but it is a reason not to paste anything into an item you would not put on the tracker. Item prose is sanitized on the way out — HTML comments removed, `@name` and `#123` made inert — so no sync notifies anybody; secrets are not sanitized, and never were. If a user's braindump contains credentials, the existing hard rule applies: flag it and leave them out of the file.