← Back to Pull requests

agents: add scale-run-metrics reference skill #4266

Open
Jefftree opened this pull request with 156 lines diff across 2 files
View on GitHub
Jefftree Jefftree commented on Aug 13, 2026 19:23 UTC
Author

Catalogs which Prometheus series and profiles from a scale run are important.

I've been doing a lot of agent assisted analysis and each time the shape comes out somewhat differently with new metrics requested by reviewers. Some metrics get missed or agents tunnel into certain metrics. This is an attempt to unify them into a reference so future analysis can loosely follow a template.

Overall shape is up for discussion, so feel free to suggest different ways of representing this info if desired.

Diff: 156 lines (+156 / -0) across 2 files Reviewer: serathius Review duration: 99932m
All Vouch review confidence checks passed
Residual risk 0.05 = Change Risk (0.42) × (1 − Review Confidence (0.89)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 156 lines diff across 2 files
0.42
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 5 substantive comment(s)
0.89
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
88%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.303
Real PR Conversation Timeline
6 items
kubernetes-prow[bot] kubernetes-prow[bot] commented on Aug 13, 2026 19:23 UTC
Bot

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: <a href="https://github.com/kubernetes/perf-tests/pull/4266#" title="Author self-approved">Jefftree</a>
Once this PR has been reviewed and has the lgtm label, please assign wojtek-t for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

<details open>
Needs approval from an approver in each of these files:

  • OWNERS
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":["wojtek-t"]} -->

    Jefftree Jefftree commented on Aug 13, 2026 19:26 UTC
    Author

    /cc @serathius @michaelasp @seans3

    serathius serathius commented on code on Aug 14, 2026 10:10 UTC
    Code Review
    .agents/skills/scale-run-metrics/references/metrics.md:1
    @@ -0,0 +1,143 @@
    +# Metrics of interest when analyzing a scale run

    I was hoping that we could make perflens the codified list of good metrics via dashboards, so humans can read them and AI agents can use them as documentation. What do you think about adding graphs for all the metrics below and have agent just read queries from dashboard?

    Jefftree Jefftree commented on code on Aug 14, 2026 14:57 UTC
    Code Review
    .agents/skills/scale-run-metrics/references/metrics.md:1
    @@ -0,0 +1,143 @@
    +# Metrics of interest when analyzing a scale run

    Semantically I think having a holistic reference steers the agents better.

    I find purely using perflens to be quite token inefficient, and giving agents a guide lets them build out the dashboards too. This isn't intended to be an isolated skill, most runs will probably invoke both perflens and this skill. Also, the large json blobs of perflens is not really human readable, and I was hoping we can map out something simpler in this markdown file.

    Anyway this is just empirical evidence, I can encode them in perflens directly if you'd like but I don't think we're going to want to read the json for that and end up just going off the UI.

    serathius serathius commented on code on Aug 18, 2026 09:43 UTC
    Code Review
    .agents/skills/scale-run-metrics/references/metrics.md:1
    @@ -0,0 +1,143 @@
    +# Metrics of interest when analyzing a scale run

    I'm looking for a single source of truth, not necessarily pushing everyone to single solution. If perflens is efficient let's discuss that separately. Human will not read json blob, agent can just use jq to take queries out via skill.

    Reviewers
    Assignees
    Jefftree Jefftree
    Labels
    risk: low confidence: 88.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 41.7% (MEDIUM) · Higher = larger blast radius
    41.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 88.6% · Lower = rushed or shallow review
    88.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 4.8% · Safe to merge
    4.8%