Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .claude/memory/MEMORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ Keep this file under 200 lines — anything longer is content bloat, not memory.
## Conventions
- [conventions/pr-session-id-marker](conventions/pr-session-id-marker.md) — PR body MUST end with `<!-- session-id: sesn_... -->` (or legacy `sthr_...`) so webhooks can resume
- [conventions/agent-review-marker](conventions/agent-review-marker.md) — Reviewer's verdict goes on the first line as `AGENT_REVIEW: APPROVED|REQUEST_CHANGES|ESCALATE — <rationale>`
- [conventions/check-open-pr-before-ticket-pickup](conventions/check-open-pr-before-ticket-pickup.md) — Before branching for a Linear ticket, grep open PRs for the ticket ID; abort if one already exists (PR #15 vs #16 ENG-26 race)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Before branching for a Linear ticket picked from Triage/Todo, list open PRs and grep for the ticket ID in titles AND bodies. If a PR already exists for the ticket, do NOT open a parallel one — either continue the existing branch (if it's yours) or skip the ticket and let the other session ship it. ENG-26 was opened by two sessions in parallel today (PRs #15 and #16, branches `claude/eng-26-webhook-sesn-regex-sesn_01GwXk...` and `...sesn_01UTKG...`); #15 merged first and #16 had to be closed as redundant. The race is real because Linear's In-Progress transition isn't atomic across sessions that pick up at the same wall-clock tick. The cheap mitigation is one extra `list_pull_requests` + grep before `git checkout -b`.