{"category": "workspace_access", "default_specification_level": "S0", "id": "a00", "provenance_quote": "", "source": {"source_id": "synthetic:workspace_access"}, "synthetic": true, "text": "Inspect and edit the provided repository in /app."} {"category": "core_task", "default_specification_level": "S1", "id": "a_708f5ca26773f9e5", "provenance_quote": "## Background\n\nThe existing sql template tag provides no type safety for window expressions, forcing hand-written strings for running totals or row rankings. These raw strings lose column type inference, bypass quoting, and require users to know dialect-specific syntax.\n\n## Expected Behavior\n\nNew public API: ranking helpers rowNumber, rank, denseRank, ntile, percentRank, cumeDist; offset helpers lag, lead, firstValue, lastValue, nthValue; aggregates windowSum, windowAvg, windowMin, windowMax, windowCount. Each helper returns a builder with a .over() method taking an inline spec or a string window name.", "source": {"field": "", "path": "instruction.md", "quote_end": 609, "quote_start": 0, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "Provide a public, type-safe API for ranking, offset, and aggregate window expressions."} {"category": "debugging_context", "default_specification_level": "S3", "id": "a_3656884d5dbfe189", "provenance_quote": "The existing sql template tag provides no type safety for window expressions, forcing hand-written strings for running totals or row rankings.", "source": {"field": "", "path": "instruction.md", "quote_end": 157, "quote_start": 15, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The existing sql template tag forces hand-written strings for running totals or row rankings."} {"category": "debugging_context", "default_specification_level": "S3", "id": "a_5bac684cb044adb8", "provenance_quote": "The existing sql template tag provides no type safety for window expressions, forcing hand-written strings for running totals or row rankings. These raw strings lose column type inference, bypass quoting, and require users to know dialect-specific syntax.", "source": {"field": "", "path": "instruction.md", "quote_end": 270, "quote_start": 15, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The hand-written strings for running totals or row rankings bypass quoting."} {"category": "debugging_context", "default_specification_level": "S3", "id": "a_9a7c9a101d5547cf", "provenance_quote": "The existing sql template tag provides no type safety for window expressions, forcing hand-written strings for running totals or row rankings. These raw strings lose column type inference, bypass quoting, and require users to know dialect-specific syntax.", "source": {"field": "", "path": "instruction.md", "quote_end": 270, "quote_start": 15, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The hand-written strings for running totals or row rankings lose column type inference."} {"category": "debugging_context", "default_specification_level": "S3", "id": "a_9dd3a8e085d70020", "provenance_quote": "The existing sql template tag provides no type safety for window expressions, forcing hand-written strings for running totals or row rankings.", "source": {"field": "", "path": "instruction.md", "quote_end": 157, "quote_start": 15, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The existing sql template tag provides no type safety for window expressions."} {"category": "debugging_context", "default_specification_level": "S3", "id": "a_fb9f32cca67683f2", "provenance_quote": "The existing sql template tag provides no type safety for window expressions, forcing hand-written strings for running totals or row rankings. These raw strings lose column type inference, bypass quoting, and require users to know dialect-specific syntax.", "source": {"field": "", "path": "instruction.md", "quote_end": 270, "quote_start": 15, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The hand-written strings for running totals or row rankings require users to know dialect-specific syntax."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_243b8760f68ed530", "provenance_quote": "New public API: ranking helpers rowNumber, rank, denseRank, ntile, percentRank, cumeDist; offset helpers lag, lead, firstValue, lastValue, nthValue; aggregates windowSum, windowAvg, windowMin, windowMax, windowCount. Each helper returns a builder with a .over() method taking an inline spec or a string window name.", "source": {"field": "", "path": "instruction.md", "quote_end": 609, "quote_start": 294, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "Each helper in the new public API returns a builder."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_40ddc975ad35aa4d", "provenance_quote": "New public API: ranking helpers rowNumber, rank, denseRank, ntile, percentRank, cumeDist; offset helpers lag, lead, firstValue, lastValue, nthValue;", "source": {"field": "", "path": "instruction.md", "quote_end": 442, "quote_start": 294, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The new public API includes offset helpers lag, lead, firstValue, lastValue, and nthValue."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_47d7b348c082b49c", "provenance_quote": "New public API: ranking helpers rowNumber, rank, denseRank, ntile, percentRank, cumeDist; offset helpers lag, lead, firstValue, lastValue, nthValue; aggregates windowSum, windowAvg, windowMin, windowMax, windowCount. Each helper returns a builder with a .over() method taking an inline spec or a string window name.", "source": {"field": "", "path": "instruction.md", "quote_end": 609, "quote_start": 294, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The .over() method on each builder returned by a helper takes an inline spec or a string window name."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_49854fc2e46ecaa9", "provenance_quote": "New public API: ranking helpers rowNumber, rank, denseRank, ntile, percentRank, cumeDist;", "source": {"field": "", "path": "instruction.md", "quote_end": 383, "quote_start": 294, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The new public API includes ranking helpers rowNumber, rank, denseRank, ntile, percentRank, and cumeDist."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_5cfb95c01dd6cfbc", "provenance_quote": "New public API: ranking helpers rowNumber, rank, denseRank, ntile, percentRank, cumeDist; offset helpers lag, lead, firstValue, lastValue, nthValue; aggregates windowSum, windowAvg, windowMin, windowMax, windowCount. Each helper returns a builder with a .over() method taking an inline spec or a string window name.", "source": {"field": "", "path": "instruction.md", "quote_end": 609, "quote_start": 294, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "Each builder returned by a helper in the new public API has a .over() method."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_cae46ff79ffd4187", "provenance_quote": "New public API: ranking helpers rowNumber, rank, denseRank, ntile, percentRank, cumeDist; offset helpers lag, lead, firstValue, lastValue, nthValue; aggregates windowSum, windowAvg, windowMin, windowMax, windowCount.", "source": {"field": "", "path": "instruction.md", "quote_end": 510, "quote_start": 294, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The new public API includes aggregates windowSum, windowAvg, windowMin, and windowMax."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_f3992aa6145b2fa7", "provenance_quote": "aggregates windowSum, windowAvg, windowMin, windowMax, windowCount.", "source": {"field": "", "path": "instruction.md", "quote_end": 510, "quote_start": 443, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The new public API includes the aggregate helper windowCount."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_0521d52e80fff6f1", "provenance_quote": "The spec accepts partitionBy, orderBy, and frame;", "source": {"field": "", "path": "instruction.md", "quote_end": 659, "quote_start": 610, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The spec accepts partitionBy, orderBy, and frame."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_b8fbfd1b2c1c2577", "provenance_quote": "The spec accepts partitionBy, orderBy, and frame; frame values are built via rows() or range() with a { from, to } boundary object", "source": {"field": "", "path": "instruction.md", "quote_end": 740, "quote_start": 610, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The spec's frame values are built via rows() or range() with a { from, to } boundary object."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_c54f090285aadbac", "provenance_quote": "with a { from, to } boundary object using the constants unboundedPreceding, currentRow, unboundedFollowing or the functions preceding() and following().", "source": {"field": "", "path": "instruction.md", "quote_end": 857, "quote_start": 705, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The { from, to } boundary object uses the constants unboundedPreceding, currentRow, and unboundedFollowing or the functions preceding() and following()."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_7647ce1af1a30aec", "provenance_quote": "- Numeric positional arguments must never become bound query parameters, even when zero.", "source": {"field": "", "path": "instruction.md", "quote_end": 963, "quote_start": 875, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "Numeric positional arguments must never become bound query parameters, even when zero."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_1492b1d42a1db9d4", "provenance_quote": "- ntile and nthValue must reject non-positive integer arguments with an error message that includes the JavaScript function name and the received value.", "source": {"field": "", "path": "instruction.md", "quote_end": 1116, "quote_start": 964, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "`nthValue` must reject non-positive integer arguments."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_7e21ad42e2641359", "provenance_quote": "- ntile and nthValue must reject non-positive integer arguments with an error message that includes the JavaScript function name and the received value.", "source": {"field": "", "path": "instruction.md", "quote_end": 1116, "quote_start": 964, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The error message produced by `ntile` when it rejects a non-positive integer argument must include the received value."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_9f56d71dc5bb1855", "provenance_quote": "- ntile and nthValue must reject non-positive integer arguments with an error message that includes the JavaScript function name and the received value.", "source": {"field": "", "path": "instruction.md", "quote_end": 1116, "quote_start": 964, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "`ntile` must reject non-positive integer arguments."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_b14d4824df05a0ad", "provenance_quote": "- ntile and nthValue must reject non-positive integer arguments with an error message that includes the JavaScript function name and the received value.", "source": {"field": "", "path": "instruction.md", "quote_end": 1116, "quote_start": 964, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The error message produced by `nthValue` when it rejects a non-positive integer argument must include the received value."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_d2f5045724993f66", "provenance_quote": "- ntile and nthValue must reject non-positive integer arguments with an error message that includes the JavaScript function name and the received value.", "source": {"field": "", "path": "instruction.md", "quote_end": 1116, "quote_start": 964, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The error message produced by `ntile` when it rejects a non-positive integer argument must include the JavaScript function name."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_f6ff3093a950d6fe", "provenance_quote": "- ntile and nthValue must reject non-positive integer arguments with an error message that includes the JavaScript function name and the received value.", "source": {"field": "", "path": "instruction.md", "quote_end": 1116, "quote_start": 964, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The error message produced by `nthValue` when it rejects a non-positive integer argument must include the JavaScript function name."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_2e381f722ed6d35d", "provenance_quote": "- The .window() method on query builders must reject empty names with an error containing \"non-empty\", and reject whitespace-only names with an error containing \"whitespace\".", "source": {"field": "", "path": "instruction.md", "quote_end": 1291, "quote_start": 1117, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "An error produced by a query builder's `.window()` method for an empty name must contain `non-empty`."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_706761ada355979d", "provenance_quote": "- The .window() method on query builders must reject empty names with an error containing \"non-empty\", and reject whitespace-only names with an error containing \"whitespace\".", "source": {"field": "", "path": "instruction.md", "quote_end": 1291, "quote_start": 1117, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The `.window()` method on query builders must reject whitespace-only names."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_e05059af26012c00", "provenance_quote": "- The .window() method on query builders must reject empty names with an error containing \"non-empty\", and reject whitespace-only names with an error containing \"whitespace\".", "source": {"field": "", "path": "instruction.md", "quote_end": 1291, "quote_start": 1117, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The `.window()` method on query builders must reject empty names."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_f0f7471fa202aa08", "provenance_quote": "- The .window() method on query builders must reject empty names with an error containing \"non-empty\", and reject whitespace-only names with an error containing \"whitespace\".", "source": {"field": "", "path": "instruction.md", "quote_end": 1291, "quote_start": 1117, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "An error produced by a query builder's `.window()` method for a whitespace-only name must contain `whitespace`."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_28474510c5c8f44f", "provenance_quote": "- The rows() and range() frame constructors must reject a spec where the from boundary is ordered after the to boundary; the error must reference \"from\".", "source": {"field": "", "path": "instruction.md", "quote_end": 1445, "quote_start": 1292, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The error produced by the `rows()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_532eda3a22b587cc", "provenance_quote": "- The rows() and range() frame constructors must reject a spec where the from boundary is ordered after the to boundary; the error must reference \"from\".", "source": {"field": "", "path": "instruction.md", "quote_end": 1445, "quote_start": 1292, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The `range()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_9d93f5a5f6f02536", "provenance_quote": "- The rows() and range() frame constructors must reject a spec where the from boundary is ordered after the to boundary; the error must reference \"from\".", "source": {"field": "", "path": "instruction.md", "quote_end": 1445, "quote_start": 1292, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The error produced by the `range()` frame constructor for a spec where the `from` boundary is ordered after the `to` boundary must reference `from`."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_e1ee9e6d7e5a2c59", "provenance_quote": "- The rows() and range() frame constructors must reject a spec where the from boundary is ordered after the to boundary; the error must reference \"from\".", "source": {"field": "", "path": "instruction.md", "quote_end": 1445, "quote_start": 1292, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The `rows()` frame constructor must reject a spec where the `from` boundary is ordered after the `to` boundary."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_569d5d21d6973e69", "provenance_quote": "- The preceding() and following() frame boundary helpers must reject negative and non-integer numeric arguments; the error message must reference the helper name.", "source": {"field": "", "path": "instruction.md", "quote_end": 1608, "quote_start": 1446, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The error message produced by the `preceding()` frame boundary helper for a rejected negative numeric argument must reference the helper name."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_774d1306e3aa23e3", "provenance_quote": "- The preceding() and following() frame boundary helpers must reject negative and non-integer numeric arguments; the error message must reference the helper name.", "source": {"field": "", "path": "instruction.md", "quote_end": 1608, "quote_start": 1446, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The error message produced by the `preceding()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_7965a2fbe20cfb31", "provenance_quote": "- The preceding() and following() frame boundary helpers must reject negative and non-integer numeric arguments; the error message must reference the helper name.", "source": {"field": "", "path": "instruction.md", "quote_end": 1608, "quote_start": 1446, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The `preceding()` frame boundary helper must reject non-integer numeric arguments."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_8c293aed28acebfe", "provenance_quote": "- The preceding() and following() frame boundary helpers must reject negative and non-integer numeric arguments; the error message must reference the helper name.", "source": {"field": "", "path": "instruction.md", "quote_end": 1608, "quote_start": 1446, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The `following()` frame boundary helper must reject non-integer numeric arguments."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_c9247f029173b08e", "provenance_quote": "- The preceding() and following() frame boundary helpers must reject negative and non-integer numeric arguments; the error message must reference the helper name.", "source": {"field": "", "path": "instruction.md", "quote_end": 1608, "quote_start": 1446, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The error message produced by the `following()` frame boundary helper for a rejected non-integer numeric argument must reference the helper name."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_cc97f883ac1fb703", "provenance_quote": "- The preceding() and following() frame boundary helpers must reject negative and non-integer numeric arguments; the error message must reference the helper name.", "source": {"field": "", "path": "instruction.md", "quote_end": 1608, "quote_start": 1446, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The `following()` frame boundary helper must reject negative numeric arguments."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_ed38f73f27f2eebe", "provenance_quote": "- The preceding() and following() frame boundary helpers must reject negative and non-integer numeric arguments; the error message must reference the helper name.", "source": {"field": "", "path": "instruction.md", "quote_end": 1608, "quote_start": 1446, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The `preceding()` frame boundary helper must reject negative numeric arguments."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_f194161151947411", "provenance_quote": "- The preceding() and following() frame boundary helpers must reject negative and non-integer numeric arguments; the error message must reference the helper name.", "source": {"field": "", "path": "instruction.md", "quote_end": 1608, "quote_start": 1446, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The error message produced by the `following()` frame boundary helper for a rejected negative numeric argument must reference the helper name."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_5259b5e52f8849d3", "provenance_quote": "- windowCount() without an argument emits count(*).", "source": {"field": "", "path": "instruction.md", "quote_end": 1660, "quote_start": 1609, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "`windowCount()` without an argument emits `count(*)`."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_497967e9bdb2ab3e", "provenance_quote": "1. All window function helpers compile to correct snake_case SQL names.", "source": {"field": "", "path": "instruction.md", "quote_end": 1757, "quote_start": 1686, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "All window function helpers compile to correct `snake_case` SQL names."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_5d66f9fcd4bad8bd", "provenance_quote": "2. Positional-argument functions accept optional trailing arguments.", "source": {"field": "", "path": "instruction.md", "quote_end": 1826, "quote_start": 1758, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "Positional-argument functions accept optional trailing arguments."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_ea348fc42b74b178", "provenance_quote": "3. An empty OVER specification appends \"over ()\".", "source": {"field": "", "path": "instruction.md", "quote_end": 1876, "quote_start": 1827, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "An empty OVER specification appends \"over ()\"."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_edf47d0f6847de59", "provenance_quote": "4. Named window definitions compile to a WINDOW clause before ORDER BY.", "source": {"field": "", "path": "instruction.md", "quote_end": 1948, "quote_start": 1877, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "Named window definitions compile to a WINDOW clause before ORDER BY."} {"category": "behavioral_requirement", "default_specification_level": "S2", "id": "a_045e55ac49f30807", "provenance_quote": "5. Named window references compile to OVER followed by the quoted name without parentheses.", "source": {"field": "", "path": "instruction.md", "quote_end": 2040, "quote_start": 1949, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "Named window references compile to OVER followed by the quoted name without parentheses."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_4f1c095de80f87f2", "provenance_quote": "6. The chainable .window(name, spec) method is available on select builders across all supported dialects.", "source": {"field": "", "path": "instruction.md", "quote_end": 2147, "quote_start": 2041, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "The chainable .window(name, spec) method is available on select builders across all supported dialects."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_e8e007320e3ed314", "provenance_quote": "7. All helpers, constants, and frame utilities are exported from the top-level package.", "source": {"field": "", "path": "instruction.md", "quote_end": 2235, "quote_start": 2148, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "All helpers, constants, and frame utilities are exported from the top-level package."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_0aacfd435e535772", "provenance_quote": "Value-access functions are typed nullable;", "source": {"field": "", "path": "instruction.md", "quote_end": 2281, "quote_start": 2239, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "Value-access functions are typed nullable."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_04ead9b87ff46a5b", "provenance_quote": "lag and lead strip null when a default value is provided.", "source": {"field": "", "path": "instruction.md", "quote_end": 2339, "quote_start": 2282, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "lead strips null when a default value is provided."} {"category": "public_interface", "default_specification_level": "S2", "id": "a_e851a13f0b08ab80", "provenance_quote": "lag and lead strip null when a default value is provided.", "source": {"field": "", "path": "instruction.md", "quote_end": 2339, "quote_start": 2282, "source_id": "instruction.md", "source_text_sha256": "c484d36c07ce8b4615c89b2a16e585d37a26874b87b5454dceab8630d00fd7df"}, "synthetic": false, "text": "lag strips null when a default value is provided."}