Skip to content

Label new tickets from the labels a project already uses - #22

Merged
nerdburn merged 1 commit into
mainfrom
feat/fold-labels
Nov 25, 2026
Merged

nerdburn merged 1 commit into
mainfrom
feat/fold-labels

Conversation

@nerdburn

Copy link
Copy Markdown
Owner

What

  • Fold. Tickets the fold creates used to have no labels. It now proposes labels for them, sees a "Labels in use" list (labels on non-archived tickets, most used first) and each ticket's labels in the tracked-work table, and is told to copy from that list only. applyFoldCreations enforces it: a label the project does not already use is dropped, and a known one takes the existing spelling.
  • Agents (MCP). lore_work_add, lore_work_set and lore_work_label describe the rule (reuse an existing label; add a new one only when a person asked or agreed). When a write does create a new label, the reply says so and lists the labels in use. A project with no labels yet gets no note.

Checked

Slack-reaction tickets and fold-created tickets were both created with labels: []; neither path could invent a label before this change.

Testing

npm test: 485 pass, with new tests for the fold rule and the MCP note. The fold prompt change has not been run against a live fold.

🤖 Generated with Claude Code

The fold now labels the tickets it creates, choosing only from the labels
live tickets carry (shown to it as "Labels in use"); anything else is
dropped, since an unattended run has nobody to ask before coining one.

The MCP ticket tools tell an agent to reuse existing labels, and their
reply says so when a write created a new label, listing the ones in use.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@nerdburn
nerdburn merged commit a0c92eb into main Nov 25, 2026
1 check passed
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