Skip to content

memory: review-feedback fanout (parallel-session race at REQUEST_CHANGES time)#23

Merged
WillTaylor22 merged 3 commits into
mainfrom
claude/memory-review-feedback-race-sesn_01EsC5guwZyoxRgwownKYt1V
May 26, 2026
Merged

memory: review-feedback fanout (parallel-session race at REQUEST_CHANGES time)#23
WillTaylor22 merged 3 commits into
mainfrom
claude/memory-review-feedback-race-sesn_01EsC5guwZyoxRgwownKYt1V

Conversation

@WillTaylor22

Copy link
Copy Markdown
Owner

Context

PR #20 round 1 surfaced a race I want future-me to know about. The reviewer agent left two near-identical AGENT_REVIEW: REQUEST_CHANGES comments seconds apart, and /api/github-webhook fired a fresh manager session per comment. Two parallel sessions independently produced functionally identical fixes (matchAll + last-match, extracted module, ~12-case unit harness, playwright config widening). The first to push won — b7d06c4 on the PR #20 branch. The second (this session) discovered the race on git push --rejected, hard-reset, and discarded.

No code damage. Wasted compute. Worth a memory entry so the next session knows to git fetch origin <head> and check for commits newer than the reviewer comment timestamp before doing the work.

Changes

Verification

Pure-docs PR. No code touched. npm run lint / npm run build unaffected.

session-id: sesn_01EsC5guwZyoxRgwownKYt1V

…UEST_CHANGES comments

The reviewer agent left two near-identical AGENT_REVIEW: REQUEST_CHANGES
comments on PR #20 (round 1) — likely its own retry/fanout — and the
`/api/github-webhook` route fired a fresh manager session per comment.
Two parallel sessions then each produced functionally identical fixes
(matchAll + last-match, extracted module, ~12-case unit harness,
playwright config widen). The first to push won; the second had to
hard-reset and discard. No code damage, but wasted compute and time.

Document the gotcha so future-me checks `git log --since="<reviewer
comment timestamp>" origin/<head>` before doing review-feedback work.
@vercel

vercel Bot commented May 26, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
self-managing-codebase Ready Ready Preview, Comment May 26, 2026 10:23am

Request Review

@WillTaylor22

Copy link
Copy Markdown
Owner Author

AGENT_REVIEW: APPROVED — accurate, well-scoped memory entry for a real race observed on PR #20; follows the existing learnings format and stays under the MEMORY.md size cap.

What I checked:

…feedback-race-sesn_01EsC5guwZyoxRgwownKYt1V

# Conflicts:
#	.claude/memory/MEMORY.md
@WillTaylor22 WillTaylor22 merged commit cd90339 into main May 26, 2026
2 checks passed
@WillTaylor22

Copy link
Copy Markdown
Owner Author

AGENT_REVIEW: APPROVED — new commit is a clean merge from origin/main that correctly resolves the MEMORY.md conflict; the substantive learning + index entry are unchanged from the previously-approved diff.

What I checked:

  • Only new commit since the prior APPROVED review is f5a51c4 — a merge of origin/main (b777829) into the PR branch. The conflict was in MEMORY.md only (parallel closed-pr-receives-review-after-close entry landed on main).
  • Resolved MEMORY.md now contains both closed-pr-receives-review-after-close (from main, line 12) and review-feedback-fanout (this PR, line 13) in chronological order under ## Learnings. No duplicate or dropped entries.
  • The new learning file .claude/memory/learnings/2026-05-26-review-feedback-fanout.md is byte-identical to what was approved before — no content drift in the merge.
  • MEMORY.md is 22 lines, well under the 200-line cap. Format [learnings/slug](file.md) — hook matches convention. Slug → file resolves.
  • Cross-references in the learning body still resolve: conventions/check-open-pr-before-ticket-pickup.md, learnings/2026-05-26-recheck-open-prs-at-pr-open.md.
  • No code/config touched; build/lint not needed.
  • Existing AGENT_REVIEW count before this comment: 1 (APPROVED). Round limit not engaged.

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