File size: 39,911 Bytes
f639cc2 | 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 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 | {
"atom_ledger_sha256": "bb6045f75522766aff5c3ad3077144acdf45cca2705f2017149799d5004c9d88",
"benchmark": "deepswe",
"levels": {
"S0": {
"atom_selection_sha256": "9610a7fb547d297ec34dc242d1482676fa9aa2aa357b89276a6d6472aaf5890c",
"content_sha256": "a7322ac0994faf5dd2ba7e0d09b728d5ba3c3a4a5b833f1043554b7eadf78768",
"content_text": "Inspect and edit the provided repository in /app.",
"instruction_sha256": "0d3402cdf7abb4cd6156d39d1cfcc2bfd186f0332b8c080820af799d06d7eefb",
"instruction_text": "Inspect and edit the provided repository in /app.\n\nIMPORTANT: Please work on this in a new branch from main and commit everything when you are done.\n",
"renderer": {
"mode": "deterministic",
"template_sha256": null
},
"selected_atom_ids": [
"a00"
],
"withheld_atom_ids": [
"a_045e55ac49f30807",
"a_04ead9b87ff46a5b",
"a_0521d52e80fff6f1",
"a_0aacfd435e535772",
"a_1492b1d42a1db9d4",
"a_243b8760f68ed530",
"a_28474510c5c8f44f",
"a_2e381f722ed6d35d",
"a_3656884d5dbfe189",
"a_40ddc975ad35aa4d",
"a_47d7b348c082b49c",
"a_497967e9bdb2ab3e",
"a_49854fc2e46ecaa9",
"a_4f1c095de80f87f2",
"a_5259b5e52f8849d3",
"a_532eda3a22b587cc",
"a_569d5d21d6973e69",
"a_5bac684cb044adb8",
"a_5cfb95c01dd6cfbc",
"a_5d66f9fcd4bad8bd",
"a_706761ada355979d",
"a_708f5ca26773f9e5",
"a_7647ce1af1a30aec",
"a_774d1306e3aa23e3",
"a_7965a2fbe20cfb31",
"a_7e21ad42e2641359",
"a_8c293aed28acebfe",
"a_9a7c9a101d5547cf",
"a_9d93f5a5f6f02536",
"a_9dd3a8e085d70020",
"a_9f56d71dc5bb1855",
"a_b14d4824df05a0ad",
"a_b8fbfd1b2c1c2577",
"a_c54f090285aadbac",
"a_c9247f029173b08e",
"a_cae46ff79ffd4187",
"a_cc97f883ac1fb703",
"a_d2f5045724993f66",
"a_e05059af26012c00",
"a_e1ee9e6d7e5a2c59",
"a_e851a13f0b08ab80",
"a_e8e007320e3ed314",
"a_ea348fc42b74b178",
"a_ed38f73f27f2eebe",
"a_edf47d0f6847de59",
"a_f0f7471fa202aa08",
"a_f194161151947411",
"a_f3992aa6145b2fa7",
"a_f6ff3093a950d6fe",
"a_fb9f32cca67683f2"
]
},
"S1": {
"atom_selection_sha256": "7abdeb4a7a6a5ea8ea724f10aed82e8ce6b33db04227765ddd67727db3895695",
"content_sha256": "7538c03b205642c859f93be2437bc8cf1abd4367d5e94fb6d4b346898a4deb5f",
"content_text": "Inspect and edit the provided repository in /app.\n\nProvide a public, type-safe API for ranking, offset, and aggregate window expressions.",
"instruction_sha256": "277df724a866c8c61c0f1c39cab86968c6ed38c87582d583709a09c3eba1ac97",
"instruction_text": "Inspect and edit the provided repository in /app.\n\nProvide a public, type-safe API for ranking, offset, and aggregate window expressions.\n\nIMPORTANT: Please work on this in a new branch from main and commit everything when you are done.\n",
"renderer": {
"model": "gpt-5.6-luna",
"reasoning_effort": "max",
"template_sha256": "a9a945297cda17d9129a783203aeecd78abdd6c22fa8b0f347dcb740f2582825"
},
"selected_atom_ids": [
"a00",
"a_708f5ca26773f9e5"
],
"withheld_atom_ids": [
"a_045e55ac49f30807",
"a_04ead9b87ff46a5b",
"a_0521d52e80fff6f1",
"a_0aacfd435e535772",
"a_1492b1d42a1db9d4",
"a_243b8760f68ed530",
"a_28474510c5c8f44f",
"a_2e381f722ed6d35d",
"a_3656884d5dbfe189",
"a_40ddc975ad35aa4d",
"a_47d7b348c082b49c",
"a_497967e9bdb2ab3e",
"a_49854fc2e46ecaa9",
"a_4f1c095de80f87f2",
"a_5259b5e52f8849d3",
"a_532eda3a22b587cc",
"a_569d5d21d6973e69",
"a_5bac684cb044adb8",
"a_5cfb95c01dd6cfbc",
"a_5d66f9fcd4bad8bd",
"a_706761ada355979d",
"a_7647ce1af1a30aec",
"a_774d1306e3aa23e3",
"a_7965a2fbe20cfb31",
"a_7e21ad42e2641359",
"a_8c293aed28acebfe",
"a_9a7c9a101d5547cf",
"a_9d93f5a5f6f02536",
"a_9dd3a8e085d70020",
"a_9f56d71dc5bb1855",
"a_b14d4824df05a0ad",
"a_b8fbfd1b2c1c2577",
"a_c54f090285aadbac",
"a_c9247f029173b08e",
"a_cae46ff79ffd4187",
"a_cc97f883ac1fb703",
"a_d2f5045724993f66",
"a_e05059af26012c00",
"a_e1ee9e6d7e5a2c59",
"a_e851a13f0b08ab80",
"a_e8e007320e3ed314",
"a_ea348fc42b74b178",
"a_ed38f73f27f2eebe",
"a_edf47d0f6847de59",
"a_f0f7471fa202aa08",
"a_f194161151947411",
"a_f3992aa6145b2fa7",
"a_f6ff3093a950d6fe",
"a_fb9f32cca67683f2"
]
},
"S2": {
"atom_selection_sha256": "244f9c7ef573c1e0fc04a249a37e3e3a625391479f6cf47e067c27a38b6971cf",
"content_sha256": "2f944d4db175cb0c52eecf95bf4385cf326ade876e463d7b40841c1f7b7f8c3d",
"content_text": "Inspect and edit the provided repository in /app.\n\n- Provide a public, type-safe API for ranking, offset, and aggregate window expressions.\n- Each helper in the new public API returns a builder.\n- The new public API includes offset helpers lag, lead, firstValue, lastValue, and nthValue.\n- The new public API includes ranking helpers rowNumber, rank, denseRank, ntile, percentRank, and cumeDist.\n- The new public API includes aggregates windowSum, windowAvg, windowMin, and windowMax.\n- The new public API includes the aggregate helper windowCount.\n- The .over() method on each builder returned by a helper takes an inline spec or a string window name.\n- Each builder returned by a helper in the new public API has a .over() method.\n- The spec accepts partitionBy, orderBy, and frame.\n- The spec's frame values are built via rows() or range() with a { from, to } boundary object.\n- The { from, to } boundary object uses the constants unboundedPreceding, currentRow, and unboundedFollowing or the functions preceding() and following().\n- Numeric positional arguments must never become bound query parameters, even when zero.\n- `nthValue` must reject non-positive integer arguments.\n- The error message produced by `nthValue` when it rejects a non-positive integer argument must include the received value.\n- `ntile` must reject non-positive integer arguments.\n- The error message produced by `ntile` when it rejects a non-positive integer argument must include the received value.\n- The error message produced by `ntile` when it rejects a non-positive integer argument must include the JavaScript function name.\n- The error message produced by `nthValue` when it rejects a non-positive integer argument must include the JavaScript function name.\n- An error produced by a query builder's `.window()` method for an empty name must contain `non-empty`.\n- The `.window()` method on query builders must reject whitespace-only names.\n- The `.window()` method on query builders must reject empty names.\n- An error produced by a query builder's `.window()` method for a whitespace-only name must contain `whitespace`.\n- The error produced by the `rows()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`.\n- The `range()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary.\n- The error produced by the `range()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`.\n- The `rows()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary.\n- The error message produced by the `preceding()` frame boundary helper for a rejected negative numeric argument must reference the helper name.\n- The error message produced by the `preceding()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name.\n- The `preceding()` frame boundary helper must reject non-integer numeric arguments.\n- The `following()` frame boundary helper must reject non-integer numeric arguments.\n- The error message produced by the `following()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name.\n- The `following()` frame boundary helper must reject negative numeric arguments.\n- The `preceding()` frame boundary helper must reject negative numeric arguments.\n- The error message produced by the `following()` frame boundary helper for a rejected negative numeric argument must reference the helper name.\n- `windowCount()` without an argument emits `count(*)`.\n- All window function helpers compile to correct `snake_case` SQL names.\n- Positional-argument functions accept optional trailing arguments.\n- An empty OVER specification appends \"over ()\".\n- Named window definitions compile to a WINDOW clause before ORDER BY.\n- Named window references compile to OVER followed by the quoted name without parentheses.\n- The chainable .window(name, spec) method is available on select builders across all supported dialects.\n- All helpers, constants, and frame utilities are exported from the top-level package.\n- Value-access functions are typed nullable. lead strips null when a default value is provided. lag strips null when a default value is provided.",
"instruction_sha256": "6a16bfddb617d6ae30f5a4fe9e78c122e0cfd78d39667f0bae24e31e74a30ab8",
"instruction_text": "Inspect and edit the provided repository in /app.\n\n- Provide a public, type-safe API for ranking, offset, and aggregate window expressions.\n- Each helper in the new public API returns a builder.\n- The new public API includes offset helpers lag, lead, firstValue, lastValue, and nthValue.\n- The new public API includes ranking helpers rowNumber, rank, denseRank, ntile, percentRank, and cumeDist.\n- The new public API includes aggregates windowSum, windowAvg, windowMin, and windowMax.\n- The new public API includes the aggregate helper windowCount.\n- The .over() method on each builder returned by a helper takes an inline spec or a string window name.\n- Each builder returned by a helper in the new public API has a .over() method.\n- The spec accepts partitionBy, orderBy, and frame.\n- The spec's frame values are built via rows() or range() with a { from, to } boundary object.\n- The { from, to } boundary object uses the constants unboundedPreceding, currentRow, and unboundedFollowing or the functions preceding() and following().\n- Numeric positional arguments must never become bound query parameters, even when zero.\n- `nthValue` must reject non-positive integer arguments.\n- The error message produced by `nthValue` when it rejects a non-positive integer argument must include the received value.\n- `ntile` must reject non-positive integer arguments.\n- The error message produced by `ntile` when it rejects a non-positive integer argument must include the received value.\n- The error message produced by `ntile` when it rejects a non-positive integer argument must include the JavaScript function name.\n- The error message produced by `nthValue` when it rejects a non-positive integer argument must include the JavaScript function name.\n- An error produced by a query builder's `.window()` method for an empty name must contain `non-empty`.\n- The `.window()` method on query builders must reject whitespace-only names.\n- The `.window()` method on query builders must reject empty names.\n- An error produced by a query builder's `.window()` method for a whitespace-only name must contain `whitespace`.\n- The error produced by the `rows()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`.\n- The `range()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary.\n- The error produced by the `range()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`.\n- The `rows()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary.\n- The error message produced by the `preceding()` frame boundary helper for a rejected negative numeric argument must reference the helper name.\n- The error message produced by the `preceding()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name.\n- The `preceding()` frame boundary helper must reject non-integer numeric arguments.\n- The `following()` frame boundary helper must reject non-integer numeric arguments.\n- The error message produced by the `following()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name.\n- The `following()` frame boundary helper must reject negative numeric arguments.\n- The `preceding()` frame boundary helper must reject negative numeric arguments.\n- The error message produced by the `following()` frame boundary helper for a rejected negative numeric argument must reference the helper name.\n- `windowCount()` without an argument emits `count(*)`.\n- All window function helpers compile to correct `snake_case` SQL names.\n- Positional-argument functions accept optional trailing arguments.\n- An empty OVER specification appends \"over ()\".\n- Named window definitions compile to a WINDOW clause before ORDER BY.\n- Named window references compile to OVER followed by the quoted name without parentheses.\n- The chainable .window(name, spec) method is available on select builders across all supported dialects.\n- All helpers, constants, and frame utilities are exported from the top-level package.\n- Value-access functions are typed nullable. lead strips null when a default value is provided. lag strips null when a default value is provided.\n\nIMPORTANT: Please work on this in a new branch from main and commit everything when you are done.\n",
"renderer": {
"model": "gpt-5.6-luna",
"reasoning_effort": "max",
"template_sha256": "a9a945297cda17d9129a783203aeecd78abdd6c22fa8b0f347dcb740f2582825"
},
"selected_atom_ids": [
"a00",
"a_708f5ca26773f9e5",
"a_243b8760f68ed530",
"a_40ddc975ad35aa4d",
"a_47d7b348c082b49c",
"a_49854fc2e46ecaa9",
"a_5cfb95c01dd6cfbc",
"a_cae46ff79ffd4187",
"a_f3992aa6145b2fa7",
"a_0521d52e80fff6f1",
"a_b8fbfd1b2c1c2577",
"a_c54f090285aadbac",
"a_7647ce1af1a30aec",
"a_1492b1d42a1db9d4",
"a_7e21ad42e2641359",
"a_9f56d71dc5bb1855",
"a_b14d4824df05a0ad",
"a_d2f5045724993f66",
"a_f6ff3093a950d6fe",
"a_2e381f722ed6d35d",
"a_706761ada355979d",
"a_e05059af26012c00",
"a_f0f7471fa202aa08",
"a_28474510c5c8f44f",
"a_532eda3a22b587cc",
"a_9d93f5a5f6f02536",
"a_e1ee9e6d7e5a2c59",
"a_569d5d21d6973e69",
"a_774d1306e3aa23e3",
"a_7965a2fbe20cfb31",
"a_8c293aed28acebfe",
"a_c9247f029173b08e",
"a_cc97f883ac1fb703",
"a_ed38f73f27f2eebe",
"a_f194161151947411",
"a_5259b5e52f8849d3",
"a_497967e9bdb2ab3e",
"a_5d66f9fcd4bad8bd",
"a_ea348fc42b74b178",
"a_edf47d0f6847de59",
"a_045e55ac49f30807",
"a_4f1c095de80f87f2",
"a_e8e007320e3ed314",
"a_0aacfd435e535772",
"a_04ead9b87ff46a5b",
"a_e851a13f0b08ab80"
],
"withheld_atom_ids": [
"a_3656884d5dbfe189",
"a_5bac684cb044adb8",
"a_9a7c9a101d5547cf",
"a_9dd3a8e085d70020",
"a_fb9f32cca67683f2"
]
},
"S3": {
"atom_selection_sha256": "a302be6aa149fb74359cc0b4d66fe531f8bd2c4a8d8e21f2b102f0e987eda4b2",
"content_sha256": "925cd5f67a340d1521ebd524e45492a33920e6f04f95deaba47a6bb24c966cd1",
"content_text": "Inspect and edit the provided repository in /app.\n\n- Provide a public, type-safe API for ranking, offset, and aggregate window expressions.\n- The existing sql template tag forces hand-written strings for running totals or row rankings.\n- The hand-written strings for running totals or row rankings bypass quoting, lose column type inference, and require users to know dialect-specific syntax.\n- The existing sql template tag provides no type safety for window expressions.\n- Each helper in the new public API returns a builder.\n- The new public API includes offset helpers `lag`, `lead`, `firstValue`, `lastValue`, and `nthValue`.\n- The new public API includes ranking helpers `rowNumber`, `rank`, `denseRank`, `ntile`, `percentRank`, and `cumeDist`.\n- The new public API includes aggregates `windowSum`, `windowAvg`, `windowMin`, and `windowMax`.\n- The new public API includes the aggregate helper `windowCount`.\n- Each builder returned by a helper in the new public API has a `.over()` method.\n- The `.over()` method on each builder returned by a helper takes an inline spec or a string window name.\n- The spec accepts `partitionBy`, `orderBy`, and `frame`.\n- The spec's frame values are built via `rows()` or `range()` with a `{ from, to }` boundary object.\n- The `{ from, to }` boundary object uses the constants `unboundedPreceding`, `currentRow`, and `unboundedFollowing` or the functions `preceding()` and `following()`.\n- Numeric positional arguments must never become bound query parameters, even when zero.\n- `nthValue` must reject non-positive integer arguments.\n- The error message produced by `nthValue` when it rejects a non-positive integer argument must include the received value.\n- The error message produced by `nthValue` when it rejects a non-positive integer argument must include the JavaScript function name.\n- `ntile` must reject non-positive integer arguments.\n- The error message produced by `ntile` when it rejects a non-positive integer argument must include the received value.\n- The error message produced by `ntile` when it rejects a non-positive integer argument must include the JavaScript function name.\n- An error produced by a query builder's `.window()` method for an empty name must contain `non-empty`.\n- The `.window()` method on query builders must reject whitespace-only names.\n- The `.window()` method on query builders must reject empty names.\n- An error produced by a query builder's `.window()` method for a whitespace-only name must contain `whitespace`.\n- The error produced by the `rows()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`.\n- The `rows()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary.\n- The error produced by the `range()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`.\n- The `range()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary.\n- The error message produced by the `preceding()` frame boundary helper for a rejected negative numeric argument must reference the helper name.\n- The error message produced by the `preceding()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name.\n- The `preceding()` frame boundary helper must reject non-integer numeric arguments.\n- The `following()` frame boundary helper must reject non-integer numeric arguments.\n- The error message produced by the `following()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name.\n- The `following()` frame boundary helper must reject negative numeric arguments.\n- The `preceding()` frame boundary helper must reject negative numeric arguments.\n- The error message produced by the `following()` frame boundary helper for a rejected negative numeric argument must reference the helper name.\n- `windowCount()` without an argument emits `count(*)`.\n- All window function helpers compile to correct `snake_case` SQL names.\n- Positional-argument functions accept optional trailing arguments.\n- An empty OVER specification appends \"over ()\".\n- Named window definitions compile to a WINDOW clause before ORDER BY.\n- Named window references compile to OVER followed by the quoted name without parentheses.\n- The chainable `.window(name, spec)` method is available on select builders across all supported dialects.\n- All helpers, constants, and frame utilities are exported from the top-level package.\n- Value-access functions are typed nullable.\n- `lead` strips null when a default value is provided.\n- `lag` strips null when a default value is provided.",
"instruction_sha256": "f2cffddd3fe7cdb5b293f4589cce0694832ca6c0d7bdd3c7fd20ce1313f15bae",
"instruction_text": "Inspect and edit the provided repository in /app.\n\n- Provide a public, type-safe API for ranking, offset, and aggregate window expressions.\n- The existing sql template tag forces hand-written strings for running totals or row rankings.\n- The hand-written strings for running totals or row rankings bypass quoting, lose column type inference, and require users to know dialect-specific syntax.\n- The existing sql template tag provides no type safety for window expressions.\n- Each helper in the new public API returns a builder.\n- The new public API includes offset helpers `lag`, `lead`, `firstValue`, `lastValue`, and `nthValue`.\n- The new public API includes ranking helpers `rowNumber`, `rank`, `denseRank`, `ntile`, `percentRank`, and `cumeDist`.\n- The new public API includes aggregates `windowSum`, `windowAvg`, `windowMin`, and `windowMax`.\n- The new public API includes the aggregate helper `windowCount`.\n- Each builder returned by a helper in the new public API has a `.over()` method.\n- The `.over()` method on each builder returned by a helper takes an inline spec or a string window name.\n- The spec accepts `partitionBy`, `orderBy`, and `frame`.\n- The spec's frame values are built via `rows()` or `range()` with a `{ from, to }` boundary object.\n- The `{ from, to }` boundary object uses the constants `unboundedPreceding`, `currentRow`, and `unboundedFollowing` or the functions `preceding()` and `following()`.\n- Numeric positional arguments must never become bound query parameters, even when zero.\n- `nthValue` must reject non-positive integer arguments.\n- The error message produced by `nthValue` when it rejects a non-positive integer argument must include the received value.\n- The error message produced by `nthValue` when it rejects a non-positive integer argument must include the JavaScript function name.\n- `ntile` must reject non-positive integer arguments.\n- The error message produced by `ntile` when it rejects a non-positive integer argument must include the received value.\n- The error message produced by `ntile` when it rejects a non-positive integer argument must include the JavaScript function name.\n- An error produced by a query builder's `.window()` method for an empty name must contain `non-empty`.\n- The `.window()` method on query builders must reject whitespace-only names.\n- The `.window()` method on query builders must reject empty names.\n- An error produced by a query builder's `.window()` method for a whitespace-only name must contain `whitespace`.\n- The error produced by the `rows()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`.\n- The `rows()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary.\n- The error produced by the `range()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`.\n- The `range()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary.\n- The error message produced by the `preceding()` frame boundary helper for a rejected negative numeric argument must reference the helper name.\n- The error message produced by the `preceding()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name.\n- The `preceding()` frame boundary helper must reject non-integer numeric arguments.\n- The `following()` frame boundary helper must reject non-integer numeric arguments.\n- The error message produced by the `following()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name.\n- The `following()` frame boundary helper must reject negative numeric arguments.\n- The `preceding()` frame boundary helper must reject negative numeric arguments.\n- The error message produced by the `following()` frame boundary helper for a rejected negative numeric argument must reference the helper name.\n- `windowCount()` without an argument emits `count(*)`.\n- All window function helpers compile to correct `snake_case` SQL names.\n- Positional-argument functions accept optional trailing arguments.\n- An empty OVER specification appends \"over ()\".\n- Named window definitions compile to a WINDOW clause before ORDER BY.\n- Named window references compile to OVER followed by the quoted name without parentheses.\n- The chainable `.window(name, spec)` method is available on select builders across all supported dialects.\n- All helpers, constants, and frame utilities are exported from the top-level package.\n- Value-access functions are typed nullable.\n- `lead` strips null when a default value is provided.\n- `lag` strips null when a default value is provided.\n\nIMPORTANT: Please work on this in a new branch from main and commit everything when you are done.\n",
"renderer": {
"model": "gpt-5.6-luna",
"reasoning_effort": "max",
"template_sha256": "a9a945297cda17d9129a783203aeecd78abdd6c22fa8b0f347dcb740f2582825"
},
"selected_atom_ids": [
"a00",
"a_708f5ca26773f9e5",
"a_3656884d5dbfe189",
"a_5bac684cb044adb8",
"a_9a7c9a101d5547cf",
"a_9dd3a8e085d70020",
"a_fb9f32cca67683f2",
"a_243b8760f68ed530",
"a_40ddc975ad35aa4d",
"a_47d7b348c082b49c",
"a_49854fc2e46ecaa9",
"a_5cfb95c01dd6cfbc",
"a_cae46ff79ffd4187",
"a_f3992aa6145b2fa7",
"a_0521d52e80fff6f1",
"a_b8fbfd1b2c1c2577",
"a_c54f090285aadbac",
"a_7647ce1af1a30aec",
"a_1492b1d42a1db9d4",
"a_7e21ad42e2641359",
"a_9f56d71dc5bb1855",
"a_b14d4824df05a0ad",
"a_d2f5045724993f66",
"a_f6ff3093a950d6fe",
"a_2e381f722ed6d35d",
"a_706761ada355979d",
"a_e05059af26012c00",
"a_f0f7471fa202aa08",
"a_28474510c5c8f44f",
"a_532eda3a22b587cc",
"a_9d93f5a5f6f02536",
"a_e1ee9e6d7e5a2c59",
"a_569d5d21d6973e69",
"a_774d1306e3aa23e3",
"a_7965a2fbe20cfb31",
"a_8c293aed28acebfe",
"a_c9247f029173b08e",
"a_cc97f883ac1fb703",
"a_ed38f73f27f2eebe",
"a_f194161151947411",
"a_5259b5e52f8849d3",
"a_497967e9bdb2ab3e",
"a_5d66f9fcd4bad8bd",
"a_ea348fc42b74b178",
"a_edf47d0f6847de59",
"a_045e55ac49f30807",
"a_4f1c095de80f87f2",
"a_e8e007320e3ed314",
"a_0aacfd435e535772",
"a_04ead9b87ff46a5b",
"a_e851a13f0b08ab80"
],
"withheld_atom_ids": []
},
"S4": {
"atom_selection_sha256": "a302be6aa149fb74359cc0b4d66fe531f8bd2c4a8d8e21f2b102f0e987eda4b2",
"content_sha256": "925cd5f67a340d1521ebd524e45492a33920e6f04f95deaba47a6bb24c966cd1",
"content_text": "Inspect and edit the provided repository in /app.\n\n- Provide a public, type-safe API for ranking, offset, and aggregate window expressions.\n- The existing sql template tag forces hand-written strings for running totals or row rankings.\n- The hand-written strings for running totals or row rankings bypass quoting, lose column type inference, and require users to know dialect-specific syntax.\n- The existing sql template tag provides no type safety for window expressions.\n- Each helper in the new public API returns a builder.\n- The new public API includes offset helpers `lag`, `lead`, `firstValue`, `lastValue`, and `nthValue`.\n- The new public API includes ranking helpers `rowNumber`, `rank`, `denseRank`, `ntile`, `percentRank`, and `cumeDist`.\n- The new public API includes aggregates `windowSum`, `windowAvg`, `windowMin`, and `windowMax`.\n- The new public API includes the aggregate helper `windowCount`.\n- Each builder returned by a helper in the new public API has a `.over()` method.\n- The `.over()` method on each builder returned by a helper takes an inline spec or a string window name.\n- The spec accepts `partitionBy`, `orderBy`, and `frame`.\n- The spec's frame values are built via `rows()` or `range()` with a `{ from, to }` boundary object.\n- The `{ from, to }` boundary object uses the constants `unboundedPreceding`, `currentRow`, and `unboundedFollowing` or the functions `preceding()` and `following()`.\n- Numeric positional arguments must never become bound query parameters, even when zero.\n- `nthValue` must reject non-positive integer arguments.\n- The error message produced by `nthValue` when it rejects a non-positive integer argument must include the received value.\n- The error message produced by `nthValue` when it rejects a non-positive integer argument must include the JavaScript function name.\n- `ntile` must reject non-positive integer arguments.\n- The error message produced by `ntile` when it rejects a non-positive integer argument must include the received value.\n- The error message produced by `ntile` when it rejects a non-positive integer argument must include the JavaScript function name.\n- An error produced by a query builder's `.window()` method for an empty name must contain `non-empty`.\n- The `.window()` method on query builders must reject whitespace-only names.\n- The `.window()` method on query builders must reject empty names.\n- An error produced by a query builder's `.window()` method for a whitespace-only name must contain `whitespace`.\n- The error produced by the `rows()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`.\n- The `rows()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary.\n- The error produced by the `range()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`.\n- The `range()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary.\n- The error message produced by the `preceding()` frame boundary helper for a rejected negative numeric argument must reference the helper name.\n- The error message produced by the `preceding()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name.\n- The `preceding()` frame boundary helper must reject non-integer numeric arguments.\n- The `following()` frame boundary helper must reject non-integer numeric arguments.\n- The error message produced by the `following()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name.\n- The `following()` frame boundary helper must reject negative numeric arguments.\n- The `preceding()` frame boundary helper must reject negative numeric arguments.\n- The error message produced by the `following()` frame boundary helper for a rejected negative numeric argument must reference the helper name.\n- `windowCount()` without an argument emits `count(*)`.\n- All window function helpers compile to correct `snake_case` SQL names.\n- Positional-argument functions accept optional trailing arguments.\n- An empty OVER specification appends \"over ()\".\n- Named window definitions compile to a WINDOW clause before ORDER BY.\n- Named window references compile to OVER followed by the quoted name without parentheses.\n- The chainable `.window(name, spec)` method is available on select builders across all supported dialects.\n- All helpers, constants, and frame utilities are exported from the top-level package.\n- Value-access functions are typed nullable.\n- `lead` strips null when a default value is provided.\n- `lag` strips null when a default value is provided.",
"instruction_sha256": "f2cffddd3fe7cdb5b293f4589cce0694832ca6c0d7bdd3c7fd20ce1313f15bae",
"instruction_text": "Inspect and edit the provided repository in /app.\n\n- Provide a public, type-safe API for ranking, offset, and aggregate window expressions.\n- The existing sql template tag forces hand-written strings for running totals or row rankings.\n- The hand-written strings for running totals or row rankings bypass quoting, lose column type inference, and require users to know dialect-specific syntax.\n- The existing sql template tag provides no type safety for window expressions.\n- Each helper in the new public API returns a builder.\n- The new public API includes offset helpers `lag`, `lead`, `firstValue`, `lastValue`, and `nthValue`.\n- The new public API includes ranking helpers `rowNumber`, `rank`, `denseRank`, `ntile`, `percentRank`, and `cumeDist`.\n- The new public API includes aggregates `windowSum`, `windowAvg`, `windowMin`, and `windowMax`.\n- The new public API includes the aggregate helper `windowCount`.\n- Each builder returned by a helper in the new public API has a `.over()` method.\n- The `.over()` method on each builder returned by a helper takes an inline spec or a string window name.\n- The spec accepts `partitionBy`, `orderBy`, and `frame`.\n- The spec's frame values are built via `rows()` or `range()` with a `{ from, to }` boundary object.\n- The `{ from, to }` boundary object uses the constants `unboundedPreceding`, `currentRow`, and `unboundedFollowing` or the functions `preceding()` and `following()`.\n- Numeric positional arguments must never become bound query parameters, even when zero.\n- `nthValue` must reject non-positive integer arguments.\n- The error message produced by `nthValue` when it rejects a non-positive integer argument must include the received value.\n- The error message produced by `nthValue` when it rejects a non-positive integer argument must include the JavaScript function name.\n- `ntile` must reject non-positive integer arguments.\n- The error message produced by `ntile` when it rejects a non-positive integer argument must include the received value.\n- The error message produced by `ntile` when it rejects a non-positive integer argument must include the JavaScript function name.\n- An error produced by a query builder's `.window()` method for an empty name must contain `non-empty`.\n- The `.window()` method on query builders must reject whitespace-only names.\n- The `.window()` method on query builders must reject empty names.\n- An error produced by a query builder's `.window()` method for a whitespace-only name must contain `whitespace`.\n- The error produced by the `rows()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`.\n- The `rows()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary.\n- The error produced by the `range()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`.\n- The `range()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary.\n- The error message produced by the `preceding()` frame boundary helper for a rejected negative numeric argument must reference the helper name.\n- The error message produced by the `preceding()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name.\n- The `preceding()` frame boundary helper must reject non-integer numeric arguments.\n- The `following()` frame boundary helper must reject non-integer numeric arguments.\n- The error message produced by the `following()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name.\n- The `following()` frame boundary helper must reject negative numeric arguments.\n- The `preceding()` frame boundary helper must reject negative numeric arguments.\n- The error message produced by the `following()` frame boundary helper for a rejected negative numeric argument must reference the helper name.\n- `windowCount()` without an argument emits `count(*)`.\n- All window function helpers compile to correct `snake_case` SQL names.\n- Positional-argument functions accept optional trailing arguments.\n- An empty OVER specification appends \"over ()\".\n- Named window definitions compile to a WINDOW clause before ORDER BY.\n- Named window references compile to OVER followed by the quoted name without parentheses.\n- The chainable `.window(name, spec)` method is available on select builders across all supported dialects.\n- All helpers, constants, and frame utilities are exported from the top-level package.\n- Value-access functions are typed nullable.\n- `lead` strips null when a default value is provided.\n- `lag` strips null when a default value is provided.\n\nIMPORTANT: Please work on this in a new branch from main and commit everything when you are done.\n",
"renderer": {
"model": "gpt-5.6-luna",
"reasoning_effort": "max",
"template_sha256": "a9a945297cda17d9129a783203aeecd78abdd6c22fa8b0f347dcb740f2582825"
},
"selected_atom_ids": [
"a00",
"a_708f5ca26773f9e5",
"a_3656884d5dbfe189",
"a_5bac684cb044adb8",
"a_9a7c9a101d5547cf",
"a_9dd3a8e085d70020",
"a_fb9f32cca67683f2",
"a_243b8760f68ed530",
"a_40ddc975ad35aa4d",
"a_47d7b348c082b49c",
"a_49854fc2e46ecaa9",
"a_5cfb95c01dd6cfbc",
"a_cae46ff79ffd4187",
"a_f3992aa6145b2fa7",
"a_0521d52e80fff6f1",
"a_b8fbfd1b2c1c2577",
"a_c54f090285aadbac",
"a_7647ce1af1a30aec",
"a_1492b1d42a1db9d4",
"a_7e21ad42e2641359",
"a_9f56d71dc5bb1855",
"a_b14d4824df05a0ad",
"a_d2f5045724993f66",
"a_f6ff3093a950d6fe",
"a_2e381f722ed6d35d",
"a_706761ada355979d",
"a_e05059af26012c00",
"a_f0f7471fa202aa08",
"a_28474510c5c8f44f",
"a_532eda3a22b587cc",
"a_9d93f5a5f6f02536",
"a_e1ee9e6d7e5a2c59",
"a_569d5d21d6973e69",
"a_774d1306e3aa23e3",
"a_7965a2fbe20cfb31",
"a_8c293aed28acebfe",
"a_c9247f029173b08e",
"a_cc97f883ac1fb703",
"a_ed38f73f27f2eebe",
"a_f194161151947411",
"a_5259b5e52f8849d3",
"a_497967e9bdb2ab3e",
"a_5d66f9fcd4bad8bd",
"a_ea348fc42b74b178",
"a_edf47d0f6847de59",
"a_045e55ac49f30807",
"a_4f1c095de80f87f2",
"a_e8e007320e3ed314",
"a_0aacfd435e535772",
"a_04ead9b87ff46a5b",
"a_e851a13f0b08ab80"
],
"withheld_atom_ids": []
}
},
"objective_atom_id": "a_708f5ca26773f9e5",
"protocol_fingerprint": {
"kind": "trailing_lines",
"lines_sha256": "56fa373e0b23716665edb58a2a5ba5d86f09791b540ad33bae0bf85f1ad2eb64",
"prefix_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"suffix_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"release_id": "si25-rebuilt-v1",
"schema_version": "interactive-coding-dataset-v1",
"source_adjudication_ids": [],
"task_id": "drizzle-orm-window-function-builders"
}
|