ref(pr-metrics): Add observability for dropped delegated-agent attribution#119005
Open
giovanni-guidini wants to merge 1 commit into
Open
ref(pr-metrics): Add observability for dropped delegated-agent attribution#119005giovanni-guidini wants to merge 1 commit into
giovanni-guidini wants to merge 1 commit into
Conversation
…ution Missing SEER_DELEGATED_CURSOR attributions are currently undiagnosable. When a Cursor completion webhook arrives but the agent PR is not attributed, the guard in handle_status_change skips silently, so there is no trace of which condition blocked it. Separately, a delegation's Seer run_id could not be joined to the Cursor agent_id that provider webhooks key on, because the launch log omitted the launched agent ids. Add a cursor_webhook.attribution_skipped log that fires when a completed agent is not attributed, recording known_to_seer and has_pr_url so the blocking gate is visible. Surface known_to_seer on the status_updated_to_seer log, and include the launched agent_ids on the coding-agent launch_result log to provide the run_id -> agent_id join key. No change to attribution behavior. Co-Authored-By: Claude <noreply@anthropic.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.
Adds a few logs to the Cursor delegated-agent attribution path so we can tell why some completed agents don't get attributed.
The completion webhook silently skips attribution when one of its guards fails, so today there's no way to see whether it was
known_to_seer, a missing PR URL, or the webhook not matching a run. This logs the blocking gate and adds arun_id -> agent_idjoin key on the launch log. No behavior change.