Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Commit c1da85f

Browse files
nimrod-teichclaude
andcommitted
feat: add WRS selection metrics to standard spec endpoint
Add selection_latency, selection_availability, selection_sync, selection_stake, and selection_composite to AVAILABLE_METRICS so the standard (non-key) spec endpoint accepts them as valid metric choices. Also update AVAILABLE_METRICS_FULL labels to match existing terminology (e.g. "Latency Score" instead of "Selection Latency"). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8ffa9f9 commit c1da85f

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/query/utils/querySpecOptimizerMetricsHandlerUtils.ts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,12 @@ export const AVAILABLE_METRICS = {
478478
sync_score: "Sync Score",
479479
generic_score: "Reputation Score",
480480
node_error_rate: "Error Rate",
481-
entry_index: "Entry Index"
481+
entry_index: "Entry Index",
482+
selection_latency: "Latency Score",
483+
selection_availability: "Availability Score",
484+
selection_sync: "Sync Score",
485+
selection_stake: "Stake Score",
486+
selection_composite: "Composite Score"
482487
} as const;
483488

484489
export const AVAILABLE_METRICS_FULL = {
@@ -491,11 +496,11 @@ export const AVAILABLE_METRICS_FULL = {
491496
provider_stake: "Provider Stake",
492497
metrics_count: "Metrics Count",
493498
epoch: "Epoch",
494-
selection_availability: "Selection Availability",
495-
selection_latency: "Selection Latency",
496-
selection_sync: "Selection Sync",
497-
selection_stake: "Selection Stake",
498-
selection_composite: "Selection Composite"
499+
selection_availability: "Availability Score",
500+
selection_latency: "Latency Score",
501+
selection_sync: "Sync Score",
502+
selection_stake: "Stake Score",
503+
selection_composite: "Composite Score"
499504
} as const;
500505

501506
export interface MetricsResponse {

0 commit comments

Comments
 (0)