Open
Conversation
Adds dedicated autoresearch_* telemetry events covering the full usage funnel: hub discovery, pack/workflow selection, configuration, message submission, and backend run lifecycle (started / task_completed / finished / cancel_requested). Also backfills data-telemetry-id on key DOM elements so existing ui_click events gain semantic identifiers. Privacy: user input content is never sent — only input_length, command name (from scenario_id), and attachment counts. Project paths are SHA256-hashed. Existing server-side sanitizer continues to strip any content/prompt/output fields as a second line of defense. Co-Authored-By: Claude Opus 4.7 <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.
Summary
autoresearch_*telemetry events covering the full usage funnel: hub discovery → pack/workflow selection → configuration → message submission → backend run lifecyclesrc/utils/autoresearchTelemetry.tswith micro-batched queue (reuses existing/api/telemetry/eventspipeline andisTelemetryEnabled()opt-out)server/routes/auto-research.jsemitsautoresearch_run_started,_task_completed,_finished(with outcome + duration), and_cancel_requestedviaenqueueTelemetryEventdata-telemetry-idon autoresearch buttons so existingui_clickevents gain semantic identifiers as a backup data laneWhy
Existing telemetry only captures generic DOM events (
ui_click,ui_change,ui_submit) plusagent_dialogue_meta. It cannot answer core product questions: which pack are users picking? Which workflow is most used? Does the config flow convert? Are autoresearch runs finishing or failing? This PR closes that gap with a focused event set.Privacy
input_length,command(from scenario_id), andattachment_countproject_pathis SHA256-hashed (first 16 chars) before emissionserver/routes/telemetry.jsBLOCKED_EVENT_KEYS) continues to stripcontent / prompt / output / message / contextas a second line of defenseEvents added
Frontend (source:
autoresearch-ui):autoresearch_hub_opened,_hub_viewed,_dropdown_toggled,_pack_expanded,_workflow_selected,_scenario_clicked,_config_section_opened,_mcp_selected,_configure_clicked,_configure_result,_guide_toggled,_guide_dismissed,_message_sentBackend (source:
auto-research-backend):autoresearch_run_started,_run_task_completed,_run_finished(outcome: completed/failed/cancelled + duration_ms),_run_cancel_requestedTest plan
npm run typecheckpassesnpm run buildpasses/api/telemetry/eventscontain the new event names and no user contentautoresearch_run_startedand_run_finishedwith correct outcomeautoresearch_run_cancel_requestedis emitted🤖 Generated with Claude Code