|
7 | 7 | "expected_output": "Structured review of gbt9704 extension with APPROVE verdict. Should check duplicate, repo, README, license, category, quality, and security. Repo is public, MIT licensed, has README, correct category (custom-formats.yml).", |
8 | 8 | "files": [], |
9 | 9 | "assertions": [ |
10 | | - {"id": "has_verdict", "description": "Output contains APPROVE, REQUEST_CHANGES, or INVESTIGATE verdict", "type": "contains_any", "values": ["APPROVE", "REQUEST_CHANGES", "INVESTIGATE"]}, |
11 | | - {"id": "checks_duplicate", "description": "Output mentions duplicate check", "type": "contains_any", "values": ["duplicate", "Duplicate"]}, |
12 | | - {"id": "checks_license", "description": "Output mentions license check", "type": "contains_any", "values": ["license", "License", "MIT"]}, |
13 | | - {"id": "checks_readme", "description": "Output mentions README check", "type": "contains_any", "values": ["readme", "README"]}, |
14 | | - {"id": "checks_security", "description": "Output mentions security scan", "type": "contains_any", "values": ["security", "Security"]}, |
15 | | - {"id": "correct_verdict", "description": "Verdict is APPROVE (repo is clean, MIT, has README, correct category)", "type": "contains", "value": "APPROVE"}, |
16 | | - {"id": "names_repo", "description": "Output names the repository", "type": "contains", "value": "songwupei/quarto-gbt9704"} |
| 10 | + { |
| 11 | + "id": "has_verdict", |
| 12 | + "description": "Output contains APPROVE, REQUEST_CHANGES, or INVESTIGATE verdict", |
| 13 | + "type": "contains_any", |
| 14 | + "values": [ |
| 15 | + "APPROVE", |
| 16 | + "REQUEST_CHANGES", |
| 17 | + "INVESTIGATE" |
| 18 | + ] |
| 19 | + }, |
| 20 | + { |
| 21 | + "id": "checks_duplicate", |
| 22 | + "description": "Output mentions duplicate check", |
| 23 | + "type": "contains_any", |
| 24 | + "values": [ |
| 25 | + "duplicate", |
| 26 | + "Duplicate" |
| 27 | + ] |
| 28 | + }, |
| 29 | + { |
| 30 | + "id": "checks_license", |
| 31 | + "description": "Output mentions license check", |
| 32 | + "type": "contains_any", |
| 33 | + "values": [ |
| 34 | + "license", |
| 35 | + "License", |
| 36 | + "MIT" |
| 37 | + ] |
| 38 | + }, |
| 39 | + { |
| 40 | + "id": "checks_readme", |
| 41 | + "description": "Output mentions README check", |
| 42 | + "type": "contains_any", |
| 43 | + "values": [ |
| 44 | + "readme", |
| 45 | + "README" |
| 46 | + ] |
| 47 | + }, |
| 48 | + { |
| 49 | + "id": "checks_security", |
| 50 | + "description": "Output mentions security scan", |
| 51 | + "type": "contains_any", |
| 52 | + "values": [ |
| 53 | + "security", |
| 54 | + "Security" |
| 55 | + ] |
| 56 | + }, |
| 57 | + { |
| 58 | + "id": "correct_verdict", |
| 59 | + "description": "Verdict is APPROVE (repo is clean, MIT, has README, correct category)", |
| 60 | + "type": "contains", |
| 61 | + "value": "APPROVE" |
| 62 | + }, |
| 63 | + { |
| 64 | + "id": "names_repo", |
| 65 | + "description": "Output names the repository", |
| 66 | + "type": "contains", |
| 67 | + "value": "songwupei/quarto-gbt9704" |
| 68 | + } |
17 | 69 | ] |
18 | 70 | }, |
19 | 71 | { |
|
22 | 74 | "expected_output": "Structured review of shortiquiz and stepbystep extensions. Two entries from same author. Should check both, run security scan on each, return per-entry verdicts. PR verdict is the worst across both entries.", |
23 | 75 | "files": [], |
24 | 76 | "assertions": [ |
25 | | - {"id": "reviews_both_entries", "description": "Output mentions both shortiquiz and stepbystep", "type": "contains_all", "values": ["shortiquiz", "stepbystep"]}, |
26 | | - {"id": "has_verdict", "description": "Output contains a verdict", "type": "contains_any", "values": ["APPROVE", "REQUEST_CHANGES", "INVESTIGATE"]}, |
27 | | - {"id": "checks_security_both", "description": "Security check appears for both entries", "type": "contains", "value": "security"}, |
28 | | - {"id": "checks_license", "description": "License checked for at least one entry", "type": "contains_any", "values": ["license", "License", "MIT"]}, |
29 | | - {"id": "checks_duplicate", "description": "Duplicate check ran", "type": "contains_any", "values": ["duplicate", "Duplicate"]} |
| 77 | + { |
| 78 | + "id": "reviews_both_entries", |
| 79 | + "description": "Output mentions both shortiquiz and stepbystep", |
| 80 | + "type": "contains_all", |
| 81 | + "values": [ |
| 82 | + "shortiquiz", |
| 83 | + "stepbystep" |
| 84 | + ] |
| 85 | + }, |
| 86 | + { |
| 87 | + "id": "has_verdict", |
| 88 | + "description": "Output contains a verdict", |
| 89 | + "type": "contains_any", |
| 90 | + "values": [ |
| 91 | + "APPROVE", |
| 92 | + "REQUEST_CHANGES", |
| 93 | + "INVESTIGATE" |
| 94 | + ] |
| 95 | + }, |
| 96 | + { |
| 97 | + "id": "checks_security_both", |
| 98 | + "description": "Security check appears for both entries", |
| 99 | + "type": "contains", |
| 100 | + "value": "security" |
| 101 | + }, |
| 102 | + { |
| 103 | + "id": "checks_license", |
| 104 | + "description": "License checked for at least one entry", |
| 105 | + "type": "contains_any", |
| 106 | + "values": [ |
| 107 | + "license", |
| 108 | + "License", |
| 109 | + "MIT" |
| 110 | + ] |
| 111 | + }, |
| 112 | + { |
| 113 | + "id": "checks_duplicate", |
| 114 | + "description": "Duplicate check ran", |
| 115 | + "type": "contains_any", |
| 116 | + "values": [ |
| 117 | + "duplicate", |
| 118 | + "Duplicate" |
| 119 | + ] |
| 120 | + } |
| 121 | + ] |
| 122 | + }, |
| 123 | + { |
| 124 | + "id": 2, |
| 125 | + "prompt": "Review PR 2162 for the extension listing", |
| 126 | + "expected_output": "Review of the index extension (jmgirard/quarto-index). All mechanical checks pass, it uses the MIT license, and the category is correct. The review must explain that Quarto's native indexing is PDF-only through raw LaTeX and makeidx, so the extension fills a gap rather than duplicating a built-in feature. Quarto CLI discussion 3849 is the canonical open feature request. The verdict is APPROVE, with the repository's recent creation reported as context rather than a finding.", |
| 127 | + "files": [], |
| 128 | + "assertions": [ |
| 129 | + { |
| 130 | + "id": "correct_verdict", |
| 131 | + "description": "Verdict is APPROVE", |
| 132 | + "type": "contains", |
| 133 | + "value": "APPROVE" |
| 134 | + }, |
| 135 | + { |
| 136 | + "id": "states_problem_solved", |
| 137 | + "description": "Says what problem the extension solves, not just that it is valid", |
| 138 | + "type": "contains_any", |
| 139 | + "values": [ |
| 140 | + "Solves", |
| 141 | + "solves", |
| 142 | + "subject index", |
| 143 | + "index entries" |
| 144 | + ] |
| 145 | + }, |
| 146 | + { |
| 147 | + "id": "finds_native_limit", |
| 148 | + "description": "Identifies that native Quarto indexing is PDF-only", |
| 149 | + "type": "contains_any", |
| 150 | + "values": [ |
| 151 | + "PDF-only", |
| 152 | + "PDF only", |
| 153 | + "only works in PDF", |
| 154 | + "ignored for non-PDF" |
| 155 | + ] |
| 156 | + }, |
| 157 | + { |
| 158 | + "id": "names_native_mechanism", |
| 159 | + "description": "Names the native mechanism rather than asserting a gap vaguely", |
| 160 | + "type": "contains_any", |
| 161 | + "values": [ |
| 162 | + "makeidx", |
| 163 | + "makeindex", |
| 164 | + "\\index{" |
| 165 | + ] |
| 166 | + }, |
| 167 | + { |
| 168 | + "id": "finds_upstream_thread", |
| 169 | + "description": "Finds the canonical upstream discussion", |
| 170 | + "type": "contains", |
| 171 | + "value": "3849" |
| 172 | + }, |
| 173 | + { |
| 174 | + "id": "reports_youth_as_context", |
| 175 | + "description": "Reports repo age or lack of users as context, not as a blocking finding", |
| 176 | + "type": "contains_any", |
| 177 | + "values": [ |
| 178 | + "0 stars", |
| 179 | + "zero-star", |
| 180 | + "single author", |
| 181 | + "brand-new", |
| 182 | + "created" |
| 183 | + ] |
| 184 | + }, |
| 185 | + { |
| 186 | + "id": "no_binary_only_statuses", |
| 187 | + "description": "Uses textual verdict words the template requires", |
| 188 | + "type": "contains_any", |
| 189 | + "values": [ |
| 190 | + "PASS", |
| 191 | + "WARN", |
| 192 | + "UNVERIFIED", |
| 193 | + "INVESTIGATE" |
| 194 | + ] |
| 195 | + } |
| 196 | + ] |
| 197 | + }, |
| 198 | + { |
| 199 | + "id": 3, |
| 200 | + "prompt": "Review a listing PR adding an extension whose repository has no LICENSE file, no license detected by GitHub, and no license section in its README.", |
| 201 | + "expected_output": "The listing requirements demand an open-source license, so this cannot be APPROVE. Expected REQUEST_CHANGES naming the missing license, and a contributor comment draft asking for one. Must not silently downgrade to a warning and approve.", |
| 202 | + "files": [], |
| 203 | + "assertions": [ |
| 204 | + { |
| 205 | + "id": "does_not_approve", |
| 206 | + "description": "Verdict is not a bare APPROVE", |
| 207 | + "type": "not_contains", |
| 208 | + "value": "RECOMMEND: APPROVE" |
| 209 | + }, |
| 210 | + { |
| 211 | + "id": "requests_changes", |
| 212 | + "description": "Asks for changes or investigation", |
| 213 | + "type": "contains_any", |
| 214 | + "values": [ |
| 215 | + "REQUEST_CHANGES", |
| 216 | + "INVESTIGATE" |
| 217 | + ] |
| 218 | + }, |
| 219 | + { |
| 220 | + "id": "names_license_as_reason", |
| 221 | + "description": "License is named as the reason", |
| 222 | + "type": "contains_any", |
| 223 | + "values": [ |
| 224 | + "license", |
| 225 | + "License" |
| 226 | + ] |
| 227 | + }, |
| 228 | + { |
| 229 | + "id": "drafts_comment", |
| 230 | + "description": "Produces a contributor comment draft", |
| 231 | + "type": "contains_any", |
| 232 | + "values": [ |
| 233 | + "comment", |
| 234 | + "Comment", |
| 235 | + "draft" |
| 236 | + ] |
| 237 | + } |
| 238 | + ] |
| 239 | + }, |
| 240 | + { |
| 241 | + "id": 4, |
| 242 | + "prompt": "Review a listing PR where the GitHub API returns a rate-limit error partway through the checks.", |
| 243 | + "expected_output": "Failed lookups must be reported as UNVERIFIED and the remaining checks completed. A rate-limited call must not be reported as a missing README, a missing license or a deleted repository, and the PR must not be approved on the strength of checks that never ran.", |
| 244 | + "files": [], |
| 245 | + "assertions": [ |
| 246 | + { |
| 247 | + "id": "does_not_approve", |
| 248 | + "description": "Does not approve on the strength of checks that never ran", |
| 249 | + "type": "not_contains", |
| 250 | + "value": "RECOMMEND: APPROVE" |
| 251 | + }, |
| 252 | + { |
| 253 | + "id": "reports_unverified", |
| 254 | + "description": "Uses an unverified state rather than inferring absence", |
| 255 | + "type": "contains_any", |
| 256 | + "values": [ |
| 257 | + "UNVERIFIED", |
| 258 | + "unverified", |
| 259 | + "not checked", |
| 260 | + "could not verify" |
| 261 | + ] |
| 262 | + }, |
| 263 | + { |
| 264 | + "id": "does_not_infer_absence", |
| 265 | + "description": "Does not claim the README or repo is missing", |
| 266 | + "type": "not_contains", |
| 267 | + "value": "no README" |
| 268 | + }, |
| 269 | + { |
| 270 | + "id": "continues_other_checks", |
| 271 | + "description": "Other checks still reported", |
| 272 | + "type": "contains_any", |
| 273 | + "values": [ |
| 274 | + "duplicate", |
| 275 | + "category", |
| 276 | + "order" |
| 277 | + ] |
| 278 | + }, |
| 279 | + { |
| 280 | + "id": "withholds_verdict", |
| 281 | + "description": "Recommends investigation or changes rather than approval", |
| 282 | + "type": "contains_any", |
| 283 | + "values": [ |
| 284 | + "INVESTIGATE", |
| 285 | + "REQUEST_CHANGES" |
| 286 | + ] |
| 287 | + } |
30 | 288 | ] |
31 | 289 | } |
32 | | - ] |
| 290 | + ], |
| 291 | + "notes": "scripts/self-test.sh covers deterministic behavior: regex metacharacters in names, repository path prefixes, extension discovery when directory and repository names differ, vendored documentation copies, ordering, and cross-file consistency. These evals cover judgments that require a model." |
33 | 292 | } |
0 commit comments