MCPcopy Create free account
hub / github.com/openai/plugins / computeCheckPenalty

Function computeCheckPenalty

plugins/plugin-eval/src/core/scoring.js:63–67  ·  view source on GitHub ↗
(check)

Source from the content-addressed store, hash-verified

61}
62
63function computeCheckPenalty(check) {
64 const weight = SEVERITY_WEIGHT[check.severity] ?? 0;
65 const multiplier = STATUS_MULTIPLIER[check.status] ?? 0;
66 return weight * multiplier;
67}
68
69function deriveCheckWhy(check) {
70 if (check.why) {

Callers 2

buildDeductionsFunction · 0.85
rankActionableChecksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected