Skip to content

Ticket claims, bulk archive, and the enso bridge - #19

Merged
nerdburn merged 1 commit into
mainfrom
feat/work-archive
Nov 24, 2026
Merged

nerdburn merged 1 commit into
mainfrom
feat/work-archive

Conversation

@nerdburn

Copy link
Copy Markdown
Owner

What

  • Claims. A ticket has one holder. lore work claim takes it for a run and refuses a second holder (or the same holder under another run ref) with exit 3. release lets go, renew is the holder's heartbeat. MCP tools: lore_work_claim, lore_work_release.
  • No duplicates across machines. A claim whose push the origin refuses is dropped and decided again on the new table, so the second of two racing claims is refused.
  • Claims never lapse on their own. A holder silent for six hours is emailed about once per silence (to LORE_ALERT_NOTIFY, else client.owner). The fold skips held tickets.
  • Bulk archive. lore work archive / unarchive by keys or filter (--origin, --status, --label), with --dry-run. Unarchive restores the previous status.
  • Board. "Show archived" switch on the kanban view, an Unarchive card action, and the holder and stage on claimed cards.
  • integrations/enso/lore_bridge.py. A model-free script that runs tickets assigned to an agent through an enso project, one task per ticket, and writes stage changes back.
  • Fix. lore mcp --portfolio exited in an unlinked folder because lore_load_all was registered twice.

Testing

npm test: 474 pass. New: test/work-claim.test.ts (including a two-clone race through a shared origin) and test/work-archive.test.ts. The bridge was exercised against a real lore repo with a stand-in for enso, not real enso. The board changes typecheck but were not clicked through in a browser.

Notes

  • Bulk archive does not update linked GitHub Projects items the way a single move does.
  • The bridge needs enso with task add --unique-ref and task stop.

🤖 Generated with Claude Code

Claims: a ticket has one holder. `lore work claim` takes it for a run and
refuses a second holder, or the same holder under another run ref, with
exit 3; the same holder and ref claiming again hands it to the next stage.
A push the origin refuses is dropped and decided again on the new table,
so of two machines racing for a ticket the second is refused. `release`
lets go, `renew` is the holder's heartbeat. Claims never lapse on their
own: a holder silent for six hours is emailed about once, and the fold
leaves held tickets alone. MCP: lore_work_claim, lore_work_release. The
board shows the holder and stage on each card.

Archive: `lore work archive` / `unarchive` by keys or by filter (origin,
status, label) with --dry-run; the board gets a "Show archived" switch
and an Unarchive action that restores the previous status.

integrations/enso/lore_bridge.py runs tickets assigned to an agent
through an enso project, one task per ticket, and writes each stage
change back.

Also fixes `lore mcp --portfolio` exiting in an unlinked folder, where
lore_load_all was registered twice.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@nerdburn
nerdburn merged commit fa645f6 into main Nov 24, 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