feat(server): PR monitor ownership and review-thread handoff - #183
Merged
ronak-guliani merged 3 commits intoAug 12, 2026
Merged
Conversation
ronak-guliani
force-pushed
the
feat/pr-monitor-c-ownership-handoff
branch
from
August 11, 2026 19:37
c6fd1de to
ad2a2b4
Compare
There was a problem hiding this comment.
Pull request overview
Adds durable PR-monitor ownership, automatic monitoring after PR creation, ownership transfer, and review-thread handoff across contracts, server, MCP, and web UI.
Changes:
- Adds ownership/review-thread contracts, RPCs, persistence, and auditing.
- Automatically associates PRs with threads and exposes handoff tools.
- Adds settings and monitor ownership indicators.
Reviewed changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated 9 comments.
Show a summary per file
| File | Description |
|---|---|
packages/contracts/src/settings.ts |
Adds the auto-monitor setting. |
packages/contracts/src/rpc.ts |
Defines transfer and handoff RPCs. |
packages/contracts/src/pullRequestMonitor.ts |
Extends monitor ownership contracts. |
packages/contracts/src/git.ts |
Adds project/thread context to Git actions. |
packages/client-runtime/src/state/vcsAction.ts |
Forwards ownership context. |
packages/client-runtime/src/state/pullRequests.ts |
Adds monitor mutation commands. |
apps/web/src/state/sourceControlActions.ts |
Supplies web thread context. |
apps/web/src/components/settings/SettingsPanels.tsx |
Adds the auto-monitor toggle. |
apps/web/src/components/pullRequest/PullRequestMonitorStrip.tsx |
Displays owner and reviewer IDs. |
apps/web/src/components/GitActionsControl.tsx |
Scopes Git actions to the active thread. |
apps/server/src/ws.ts |
Handles RPCs and automatic monitoring. |
apps/server/src/pullRequestMonitor/PullRequestMonitorStore.ts |
Persists ownership metadata and events. |
apps/server/src/pullRequestMonitor/PullRequestMonitorService.ts |
Implements transfer and handoff logic. |
apps/server/src/pullRequestMonitor/PullRequestMonitorService.test.ts |
Tests transfer and handoff behavior. |
apps/server/src/persistence/Migrations/052_PullRequestMonitorOwnership.ts |
Adds ownership persistence schema. |
apps/server/src/persistence/Migrations.ts |
Registers migration 052. |
apps/server/src/mcp/toolkits/orchestrator/tools.ts |
Exposes the handoff MCP tool. |
apps/server/src/mcp/toolkits/orchestrator/handlers.ts |
Handles MCP handoff requests. |
apps/server/src/auth/RpcAuthorization.ts |
Assigns authorization scopes. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Owner
Author
Review follow-upAddressed on tip branch
Stack tip: #184 |
ronak-guliani
force-pushed
the
feat/pr-monitor-c-ownership-handoff
branch
from
August 12, 2026 05:46
1f8f0b0 to
db62918
Compare
Base automatically changed from
feat/pr-monitor-b-feedback-reporting
to
base/pr-monitor-v2
August 12, 2026 05:49
Associate created PRs with owning threads when enabled, support single-owner transfer with audit events, and link review threads via submitFindings RPC/MCP without concurrent modifying owners. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ronak-guliani
force-pushed
the
feat/pr-monitor-c-ownership-handoff
branch
from
August 12, 2026 05:49
db62918 to
068d6b2
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 5-6 of the PR monitor stack (stacked on B / #182).
autoMonitorPullRequestsOnCreateis enabled, associateownerThreadIdand start server-owned monitoring.transferOwnershipreplaces the owner (never concurrent modifiers) and writes durable ownership audit events (migration 052).submitFindingsRPC + MCPt3_pr_monitor_submit_findingslinkslinkedReviewThreadIdto the owner monitor without dual ownership.projectId/threadId.Stack
base/pr-monitor-v2tofeat/pr-monitor-a-contracts-observefeat/pr-monitor-b-feedback-reportingfeat/pr-monitor-c-ownership-handoffMigrations
052_PullRequestMonitorOwnership:linked_review_thread_id,pull_request_monitor_ownership_eventsTests
vp test run src/pullRequestMonitor(8 tests): start/status, transfer ownership, submitFindings handoffNotes
monitorSnapshot.Model: Grok 4.5 via GitHub Copilot CLI