Skip to content

feat: copy Linear's cycles as sprints, and drop trashed issues at the daily pass - #17

Merged
leemour merged 4 commits into
mainfrom
feat/sprints
Nov 25, 2026
Merged

leemour merged 4 commits into
mainfrom
feat/sprints

Conversation

@leemour

@leemour leemour commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Task

Wire cli-core 0.750.0's tracker changes into linear-cli (owner rulings NEED-2739 A, NEED-2740 A; FIND-2844.b, FIND-2844.c):
Linear's cycles as a sprint kind, trashed issues leaving the copy, the duplicate state type kept, and documents
restored from Linear's trash coming back without --rescan.

What

  • Dependency: cli-core 0.750.0 (cli-base stays 0.132.0), with the regenerated contract and command docs.
  • Sprints: a tracker kind sprint from Linear's cycles. Issues carry sprint (cycle.id), so
    issues list sprint:<id> and sprint:none narrow by cycle.
  • Trashed issues: issues map deleted to Linear's trashed, and the daily id pass selects it. Trashing leaves an
    issue's updatedAt unchanged (checked live), so only that pass sees it. The issue and its comments leave the copy,
    and come back when it is restored.
  • Documents: rescanEvery: "7d". A restore from the trash moves no updatedAt and leaves no audit entry, so only
    a full walk brings the document back.
  • Lint: sprints goes in the lint baseline until cli-base has the word (cli-base #717).
  • Docs and checks: README lines, the test matrix, a sprint step in scripts/live.sh, and a changelog fragment
    (Added → 0.4.0).

Testing

  • src/tracker-sprints.test.ts runs over cli-core's strict manifest fake:
    • through the CLI, one sync: sprints list, narrowing by sprint:<id> and sprint:none, and a Duplicate state with
      its issues kept;
    • through syncTracker: a trashed issue leaves at the daily pass with its comments, and comes back with them once
      restored.
    • The fake seeds three rows of each kind, two a page, and one sync over them took more than CI's 15 s. So the tests
      keep two rows of each kind, and the trash case syncs only issues and comments.
  • tracker-contracts.test.ts runs cli-core's new trash contract case. The options test covers sprints list.
  • Full suite: 622 passed. Typecheck, lint, lint:commands, docs:check and the test-matrix check pass.
  • Live check on this branch against the test workspace passed: sprint 2 synced, and the sprints step passed.

🤖 Generated with Claude Code

leemour and others added 3 commits November 25, 2026 00:52
Brings the tracker's sprints, trashed issues, the duplicate state, the
changed-rows count and the documents' rescanEvery (cli-core #3316, #3302).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… daily pass

- A tracker kind `sprint` from Linear's `cycles`; issues carry `sprint`
  (`cycle.id`), so `issues list sprint:<id>` and `sprint:none` narrow by cycle.
- Issues map `deleted` to Linear's `trashed`, and the daily id pass selects it.
  Trashing an issue leaves its updatedAt, so only that pass sees it: the issue
  and its comments leave the copy, and come back when restored.
- Documents walk everything once a week (`rescanEvery: "7d"`): a restore from
  Linear's trash moves no updatedAt and has no audit entry.
- `sprints` sits in the lint baseline until cli-base has the word.
- Tests over cli-core's strict manifest fake, README, test matrix, live check
  step and a changelog fragment (Added, 0.4.0).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the shell string

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@socket-security

socket-security Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​wirecat/​cli-core@​0.744.0 ⏵ 0.750.097 +1100100 +19670

View full report

The strict fake seeds three rows of each kind, two a page, and each page is
several store writes: one sync took over 15 s on a CI runner. The tests keep two
rows of each kind (one page), check sprints and the Duplicate state over one
sync, and run the trash and restore case through syncTracker over the issue
and comment kinds only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@leemour
leemour merged commit 77ba3af into main Nov 25, 2026
16 checks passed
@leemour
leemour deleted the feat/sprints branch November 25, 2026 01:43
@leemour leemour mentioned this pull request Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant