refactor(thunderagent): simplify plugin parameters and sample config #4174
All Vouch review confidence checks passed
Residual risk 0.30 = Change Risk (0.70) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.70 · 326 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.346
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.070
Ai Authored
ai_authored
0.050
Real PR Conversation Timeline
1 comments
"Review active on #4174"
general
weight: 0.35
ahg-g
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Simplifies the
thunder-agent(Alpha) plugin parameters and trims its sample configuration (test/e2e/artifacts/config/thunderagent-config.yaml):metav1.Durationstrings ("30s","5m","30m") for durations:-
fallbackCapacityTokens(default4194304): fallback per-pod KV capacity in tokens when the endpoint does not report cache size metrics.-
usableCapacityRatio(default1.0): share of each pod's KV capacity available to sessions, in(0, 1].-
idleGracePeriod(default"30s"): how long an idle session keeps its space before another session can pause it ("0s"reclaims idle sessions immediately).-
forceAdmitTimeout(default"5m"): maximum queue wait before a request is admitted even when no pod has free space ("0s"turns this off).evictionTtlSecondsandevictionSweepSecondsfrom user config and manages idle session cleanup internally (10ssweep interval,2 max(forceAdmitTimeout, 5m)retention).time.Durationvalues on the admission path instead of float64 millisecond conversions.name: thunder,max-score-picker,single-profile-handler, andschedulingProfiles) fromtest/e2e/artifacts/config/thunderagent-config.yaml, and updatespkg/epp/framework/plugins/thunderagent/README.md.Test plan
2 max(forceAdmitTimeout, 5m)idleGracePeriodis0s, disable forced admission whenforceAdmitTimeoutis0s, and handle sub-secondforceAdmitTimeoutdurationsthunder-agentand wire the single instance across scorer, saturation detector, and fairness policy when loading the trimmed sample configWhich issue(s) this PR fixes:
Fixes #4171
Release note _(write
NONEif no user-facing change)_:``
release-notecapacityTokensthunder-agent (Alpha): replace
,utilThreshold,idleLeaseSeconds,headWaitStarvationMs,evictionTtlSeconds, andevictionSweepSecondswithfallbackCapacityTokens,usableCapacityRatio,idleGracePeriod, andforceAdmitTimeout(Go duration strings), raise default forced-admission timeout to5m, and handle idle session cleanup internally.
``