From 15b4e4e15ebaaf1bccd17d941411098fd5d05f4e Mon Sep 17 00:00:00 2001 From: leemour Date: Wed, 18 Nov 2026 19:49:24 +0100 Subject: [PATCH] fix(ready): cli-dev ready knows the tracker category and asks for trackerSourceContract new writes "tracker" (labelled "issue tracker (issues, projects, teams)") into DESIGN.md for a tracker CLI, and cli-dev ready answered that it is no category new writes. Found building linear-cli from a config. Co-Authored-By: Claude Opus 5.5 --- changes/fix-ready-tracker-category.md | 4 ++++ src/dev/ready.test.ts | 15 +++++++++++++++ src/dev/ready.ts | 1 + 3 files changed, 20 insertions(+) create mode 100644 changes/fix-ready-tracker-category.md diff --git a/changes/fix-ready-tracker-category.md b/changes/fix-ready-tracker-category.md new file mode 100644 index 0000000..2183e53 --- /dev/null +++ b/changes/fix-ready-tracker-category.md @@ -0,0 +1,4 @@ +### Fixed + +- **`cli-dev ready` knows the tracker category** that `new` writes (`tracker`, or its label "issue tracker (issues, + projects, teams)") and asks for cli-core's `trackerSourceContract`. A tracker CLI got "is no category new writes". diff --git a/src/dev/ready.test.ts b/src/dev/ready.test.ts index ff85d1c..8fb9160 100644 --- a/src/dev/ready.test.ts +++ b/src/dev/ready.test.ts @@ -232,6 +232,21 @@ describe("cli-dev ready", () => { }) }) + it("asks a tracker for cli-core's tracker contract, by the category's value or its label", () => { + for (const category of ["tracker", "issue tracker (issues, projects, teams)"]) { + const cwd = cli({ + "docs/dev/DESIGN.md": `- **Category:** ${category}\n`, + "src/tracker.test.ts": "it('x', () => {})\n", + }) + expect(row(cwd, shell(cwd).run, "contracts")).toMatchObject({ + status: "not verified", + fix: + "run cli-core's trackerSourceContract in a test (testing.md), or except it in lint/contract-exceptions.json " + + "with its reason, then run cli-dev ready again", + }) + } + }) + it("does not verify the live check from another version's record or from code changed since", () => { const other = cli({ "docs/dev/live-checks.txt": "0.2.0 abc123 2026-11-10 bin/acme-live\n" }) expect(row(other, shell(other).run, "live")).toMatchObject({ diff --git a/src/dev/ready.ts b/src/dev/ready.ts index 1f2bf7d..01888c1 100644 --- a/src/dev/ready.ts +++ b/src/dev/ready.ts @@ -58,6 +58,7 @@ const CATEGORY_CONTRACTS: { names: string[]; contracts: string[] }[] = [ "meetingTranscriptStoreContract", ], }, + { names: ["tracker", "issue tracker (issues, projects, teams)"], contracts: ["trackerSourceContract"] }, { names: ["messenger", "notes"], contracts: [] }, ]