Skip to content

feat(pr_metrics): Include group_ids in delegated agent attribution#119810

Open
giovanni-guidini wants to merge 1 commit into
masterfrom
gio/feat/delegated-agent-signal-group-ids
Open

feat(pr_metrics): Include group_ids in delegated agent attribution#119810
giovanni-guidini wants to merge 1 commit into
masterfrom
gio/feat/delegated-agent-signal-group-ids

Conversation

@giovanni-guidini

@giovanni-guidini giovanni-guidini commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

I want this because I recently moved the HEX dashboard to look for missing matches based on group_id match. It's harder for delegated agents cause we don't include those in the attribution.


Adds a group_ids field to DelegatedAgentSignalDetails and populates it on the two write paths where the resolved group ids were already available but previously discarded:

  • The synchronous Seer match response (_send_seer_delegated_agent_match) already sends group_ids to Seer on the outbound MatchDelegatedAgentPrRequest; those same ids are now carried into the stored signal_details.
  • The GitHub Copilot / Claude Code autofix pollers now thread group_id from the originating Group (via GroupAutofixEndpoint.get) down through poll_github_copilot_agents / poll_claude_code_agents into the attribution write.

The Cursor webhook path and the async record_pr_attribution RPC callback are left unchanged — neither has group context readily available without new plumbing on the Seer side, and can be addressed separately.

DelegatedAgentSignalDetails previously only carried agent_id/pr_url/run_id,
even though the resolved group ids were already available at write time
in two of its three call sites: the synchronous Seer match response
already had them on the outbound MatchDelegatedAgentPrRequest, and the
Copilot/Claude Code autofix pollers had them via the originating Group.

Add a group_ids field to the schema and thread the existing values
through both paths instead of dropping them.

The Cursor webhook path and the async record_pr_attribution RPC
callback are left as-is for now; group context isn't available there
without new plumbing on the Seer side.
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 16, 2026
@giovanni-guidini giovanni-guidini marked this pull request as ready for review July 16, 2026 11:21
@giovanni-guidini giovanni-guidini requested a review from a team as a code owner July 16, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant