-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathevals.json
More file actions
128 lines (128 loc) · 4.06 KB
/
Copy pathevals.json
File metadata and controls
128 lines (128 loc) · 4.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"skill_name": "core-engineering",
"evals": [
{
"id": 1,
"prompt": "Review the attached Python function. Prioritize findings by impact, explain the attack path, and propose the smallest safe correction. Do not redesign unrelated code.",
"expected_output": "Identify SQL injection as the critical issue, replace string interpolation with a parameterized query, mention input/trust-boundary handling, and avoid an unrelated rewrite.",
"files": [
"evals/fixtures/vulnerable_user_lookup.py"
],
"checks": [
{
"id": "names-injection",
"type": "contains_any",
"values": [
"SQL injection",
"injection vulnerability"
]
},
{
"id": "prioritizes-severity",
"type": "contains_any",
"values": [
"critical",
"blocker",
"highest severity"
]
},
{
"id": "uses-parameters",
"type": "contains_any",
"values": [
"parameterized",
"query parameters",
"placeholder"
]
},
{
"id": "avoids-broad-rewrite",
"type": "not_contains",
"value": "rewrite the entire"
}
]
},
{
"id": 2,
"prompt": "Write a complete Python 3.14 command-line program that reads a local JSON array of objects and prints a count by the string field `status`. Use the standard library, validate the top-level shape, report useful errors to stderr, and include the entry point. Keep the solution proportionate.",
"expected_output": "A runnable, typed Python program using argparse, json, validation, explicit error handling, and an if __name__ == \"__main__\" entry point without third-party dependencies.",
"files": [],
"checks": [
{
"id": "stdlib-shape",
"type": "contains_all",
"values": [
"argparse",
"json",
"stderr",
"__main__"
]
},
{
"id": "validates-array",
"type": "contains_any",
"values": [
"isinstance",
"must be a list",
"JSON array"
]
},
{
"id": "no-pandas",
"type": "not_regex",
"pattern": "(?:^|\\n)\\s*(?:from|import)\\s+pandas\\b"
},
{
"id": "no-cli-framework",
"type": "not_regex",
"pattern": "(?:^|\\n)\\s*(?:from|import)\\s+(?:click|typer)\\b"
}
]
},
{
"id": 3,
"prompt": "A repository still uses actions/checkout@v4 and actions/setup-python@v5. Using the attached official-release metadata, tell me the versions to use and provide the workflow snippet. Treat model memory as potentially stale, cite both sources, and state when the metadata was retrieved.",
"expected_output": "Use actions/checkout@v7 and actions/setup-python@v7, identify releases v7.0.1 and v7.0.0 from the supplied official repository release pages, cite both links, and state the retrieval date.",
"files": [
"evals/fixtures/current-action-releases.json"
],
"checks": [
{
"id": "requires-verification",
"type": "contains_any",
"values": [
"verify",
"verified",
"current release"
]
},
{
"id": "uses-official-source",
"type": "contains",
"value": "github.com/actions/checkout"
},
{
"id": "uses-both-official-sources",
"type": "contains",
"value": "github.com/actions/setup-python"
},
{
"id": "uses-current-action-majors",
"type": "contains_all",
"values": [
"actions/checkout@v7",
"actions/setup-python@v7"
]
},
{
"id": "names-current-releases",
"type": "contains_all",
"values": [
"v7.0.1",
"v7.0.0"
]
}
]
}
]
}