Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
copilot: emit router decision to restricted telemetry with full scores
Add a sendEnhancedGHTelemetryEvent call (automode.routerDecisionRestricted)
alongside the existing unrestricted routerDecision event. The restricted
event includes:

- hydraScores: JSON-encoded 4-dim capability scores
- binaryScores: JSON-encoded binary classifier scores
- chosenModel, candidateModels, chosenShortfall, stickyOverride
- Per-class scores (scoreNeedsReasoning, scoreNoReasoning)
- All fields from the existing unrestricted event
  • Loading branch information
Aashna Garg committed Apr 23, 2026
commit 672e30b4211632d4d97682fcc4d6ed91c754a1ba
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,33 @@ export class RouterDecisionFetcher {
stickyOverride: result.sticky_override ? 1 : 0,
}
);

Comment thread
bhavyaus marked this conversation as resolved.
this._telemetryService.sendEnhancedGHTelemetryEvent('automode.routerDecisionRestricted',
{
conversationId: conversationId ?? '',
vscodeRequestId: vscodeRequestId ?? '',
predictedLabel: result.predicted_label,
routingMethod: result.routing_method ?? '',
fallback: String(result.fallback ?? false),
fallbackReason: result.fallback_reason ?? '',
candidateModel: result.candidate_models?.[0] ?? '',
chosenModel: result.chosen_model ?? '',
candidateModels: JSON.stringify(result.candidate_models ?? []),
stickyOverrideStr: String(result.sticky_override ?? false),
hydraScores: result.hydra_scores ? JSON.stringify(result.hydra_scores) : 'null',
binaryScores: JSON.stringify(result.scores),
},
{
confidence: result.confidence,
latencyMs: result.latency_ms,
e2eLatencyMs: e2eLatencyMs,
stickyOverride: result.sticky_override ? 1 : 0,
chosenShortfall: result.chosen_shortfall,
scoreNeedsReasoning: result.scores.needs_reasoning,
scoreNoReasoning: result.scores.no_reasoning,
}
);

return result;
}
}
Loading