@beehexa/hexasync-ai-toolkit 0.0.0-stage → 2610.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (516) hide show
  1. package/.claude-plugin/marketplace.json +31 -0
  2. package/.claude-plugin/plugin.json +19 -0
  3. package/.codex-plugin/plugin.json +37 -0
  4. package/.cursor-plugin/mcp.json +12 -0
  5. package/.cursor-plugin/plugin.json +20 -0
  6. package/.mcp.json +11 -0
  7. package/README.md +46 -2
  8. package/dist/cli.js +2922 -0
  9. package/gemini-extension.json +14 -0
  10. package/openclaw.extension.mjs +9 -0
  11. package/openclaw.plugin.json +14 -0
  12. package/package.json +69 -3
  13. package/plugin.json +21 -0
  14. package/skills/hexasync-connections/SKILL.md +36 -0
  15. package/skills/hexasync-connections/references/INDEX.md +33 -0
  16. package/skills/hexasync-connections/references/INSTALL.md +35 -0
  17. package/skills/hexasync-connections/references/connections.CONNECTIONS.api-recovery.md +17 -0
  18. package/skills/hexasync-connections/references/connections.CONNECTIONS.authentication-and-setup-steps.md +64 -0
  19. package/skills/hexasync-connections/references/connections.CONNECTIONS.captured-call-and-authenticated-composition.md +96 -0
  20. package/skills/hexasync-connections/references/connections.CONNECTIONS.compiled-connector-hooks.md +23 -0
  21. package/skills/hexasync-connections/references/connections.CONNECTIONS.connection-authentication.md +36 -0
  22. package/skills/hexasync-connections/references/connections.CONNECTIONS.connection-rate-limiting.md +17 -0
  23. package/skills/hexasync-connections/references/connections.CONNECTIONS.fields.md +225 -0
  24. package/skills/hexasync-connections/references/connections.CONNECTIONS.framework-understood-connection-option-catalogue.md +225 -0
  25. package/skills/hexasync-connections/references/connections.CONNECTIONS.how-a-step-finds-its-connection.md +54 -0
  26. package/skills/hexasync-connections/references/connections.CONNECTIONS.md +84 -0
  27. package/skills/hexasync-connections/references/connections.CONNECTIONS.never-invent-a-systemcode.md +6 -0
  28. package/skills/hexasync-connections/references/connections.CONNECTIONS.one-connection-one-credential-scope.md +16 -0
  29. package/skills/hexasync-connections/references/connections.CONNECTIONS.related.md +9 -0
  30. package/skills/hexasync-connections/references/connections.CONNECTIONS.resolution-and-transport-scope.md +8 -0
  31. package/skills/hexasync-connections/references/connections.CONNECTIONS.the-self-connector.md +22 -0
  32. package/skills/hexasync-connections/references/connections.CONNECTIONS.two-spellings-of-the-collection-both-accepted.md +6 -0
  33. package/skills/hexasync-connections/references/connections.CONNECTIONS.two-spellings-of-the-provider-with-defined-precedence.md +6 -0
  34. package/skills/hexasync-connections/references/connections.CONNECTIONS.unsupported-authentication.md +26 -0
  35. package/skills/hexasync-connections/references/connections.CONNECTIONS.untyped-options-generic-validity-is-not-provider-completeness.md +192 -0
  36. package/skills/hexasync-error-handling/SKILL.md +47 -0
  37. package/skills/hexasync-error-handling/references/INDEX.md +22 -0
  38. package/skills/hexasync-error-handling/references/INSTALL.md +35 -0
  39. package/skills/hexasync-error-handling/references/routing.NEXT.md +246 -0
  40. package/skills/hexasync-error-handling/references/steps.EXCEPTION.md +139 -0
  41. package/skills/hexasync-error-handling/references/steps.Error.md +296 -0
  42. package/skills/hexasync-expressions/SKILL.md +53 -0
  43. package/skills/hexasync-expressions/references/INDEX.md +45 -0
  44. package/skills/hexasync-expressions/references/INSTALL.md +35 -0
  45. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.arguments--computed-before-the-step-runs.md +6 -0
  46. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.dialect-classification-and-silent-scriban-fallback.md +32 -0
  47. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.exact-mutation-timeline.md +41 -0
  48. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.executor-results-are-not-downstream-values.md +10 -0
  49. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.graceful-failures-and-run-errors.md +6 -0
  50. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-call-site-scope-and-bindings.md +89 -0
  51. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-engine-pinned-version-and-restrictions.md +28 -0
  52. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonpath-expressions.md +47 -0
  53. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.md +21 -0
  54. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.quick-reference-the-three-expression-dialects.md +44 -0
  55. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.related.md +5 -0
  56. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.runtime-scope.md +110 -0
  57. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.custom-array-enum-item-and-numeric-functions.md +17 -0
  58. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.custom-date-functions.md +19 -0
  59. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.custom-object-functions.md +13 -0
  60. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.custom-string-functions.md +45 -0
  61. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.host-qualified-authoring-examples.md +27 -0
  62. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.md +15 -0
  63. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.standard-engine-versus-host-custom-functions.md +32 -0
  64. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.visibility-and-call-site-constraints.md +8 -0
  65. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.shared-stepiterator-roots.md +23 -0
  66. package/skills/hexasync-expressions/references/steps.JSONata.md +200 -0
  67. package/skills/hexasync-expressions/references/steps.Liquid.md +95 -0
  68. package/skills/hexasync-expressions/references/steps.Scriban.md +156 -0
  69. package/skills/hexasync-field-mapping/SKILL.md +60 -0
  70. package/skills/hexasync-field-mapping/references/INDEX.md +54 -0
  71. package/skills/hexasync-field-mapping/references/INSTALL.md +35 -0
  72. package/skills/hexasync-field-mapping/references/steps.SAVE_TASK_DATA.md +318 -0
  73. package/skills/hexasync-field-mapping/references/tables.TABLES.best-practices.md +11 -0
  74. package/skills/hexasync-field-mapping/references/tables.TABLES.fields.md +518 -0
  75. package/skills/hexasync-field-mapping/references/tables.TABLES.md +62 -0
  76. package/skills/hexasync-field-mapping/references/tables.TABLES.minimal-declaration-and-composed-usage.md +49 -0
  77. package/skills/hexasync-field-mapping/references/tables.TABLES.related.md +10 -0
  78. package/skills/hexasync-field-mapping/references/tables.TABLES.the-system-columns-are-not-declared-here.md +6 -0
  79. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.best-practices.md +21 -0
  80. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.contract.md +12 -0
  81. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.envelope-fields.md +115 -0
  82. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.example-enrich-an-item-with-a-structured-lookup.md +36 -0
  83. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.explicit-mapping-for-push.md +37 -0
  84. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.md +20 -0
  85. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.none--disabled-versus-absent-discriminator.md +17 -0
  86. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +37 -0
  87. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.related.md +10 -0
  88. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +18 -0
  89. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.sensible-configuration.md +23 -0
  90. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.syntax.md +30 -0
  91. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-chain-contract.md +43 -0
  92. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.bulkclone--clone-many.md +24 -0
  93. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.bulkrename--rename-many.md +27 -0
  94. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.clone--copy-one-field-to-several-names.md +47 -0
  95. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +120 -0
  96. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.md +18 -0
  97. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.nested_sql--legacy-raw-sql-producing-a-nested-list.md +64 -0
  98. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +88 -0
  99. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query_many--the-dsl-replacement-for-nested_sql.md +172 -0
  100. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +220 -0
  101. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.rename--rename-one-field.md +45 -0
  102. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.resolve_raw_data--lift-a-value-out-of-the-raw-payload.md +86 -0
  103. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +49 -0
  104. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.sql--legacy-raw-sql.md +73 -0
  105. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.when-to-use.md +9 -0
  106. package/skills/hexasync-metrics-reports/SKILL.md +55 -0
  107. package/skills/hexasync-metrics-reports/references/INDEX.md +41 -0
  108. package/skills/hexasync-metrics-reports/references/INSTALL.md +35 -0
  109. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.best-practices.md +13 -0
  110. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.choosing-a-scoremode.md +44 -0
  111. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.common-metadata-properties.md +35 -0
  112. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.contract.md +6 -0
  113. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.digest-message-templates.md +31 -0
  114. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.facet-properties.md +6 -0
  115. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.fields.md +551 -0
  116. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.health-scores.md +69 -0
  117. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.md +20 -0
  118. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-configuration.md +57 -0
  119. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-kinds-reference.md +574 -0
  120. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.related.md +9 -0
  121. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.sensible-configuration.md +30 -0
  122. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.severity-scoring.md +89 -0
  123. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.syntax.md +18 -0
  124. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.when-to-use.md +6 -0
  125. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.worked-example-from-rows-to-health-score.md +108 -0
  126. package/skills/hexasync-metrics-reports/references/reports.REPORTS.md +460 -0
  127. package/skills/hexasync-metrics-reports/references/steps.METRIC_QUERY.md +171 -0
  128. package/skills/hexasync-metrics-reports/references/steps.QUERY_METRICS.md +400 -0
  129. package/skills/hexasync-pullers/SKILL.md +44 -0
  130. package/skills/hexasync-pullers/references/INDEX.md +50 -0
  131. package/skills/hexasync-pullers/references/INSTALL.md +35 -0
  132. package/skills/hexasync-pullers/references/pullers.PULLERS.api-error-classification.md +26 -0
  133. package/skills/hexasync-pullers/references/pullers.PULLERS.entity-classification.md +52 -0
  134. package/skills/hexasync-pullers/references/pullers.PULLERS.entry-context-and-transitions.md +12 -0
  135. package/skills/hexasync-pullers/references/pullers.PULLERS.error-and-final-handling.md +10 -0
  136. package/skills/hexasync-pullers/references/pullers.PULLERS.generalisation.md +17 -0
  137. package/skills/hexasync-pullers/references/pullers.PULLERS.md +36 -0
  138. package/skills/hexasync-pullers/references/pullers.PULLERS.overview.md +77 -0
  139. package/skills/hexasync-pullers/references/pullers.PULLERS.page-termination-and-the-four-platform-guards.md +49 -0
  140. package/skills/hexasync-pullers/references/pullers.PULLERS.paging-is-the-authors-job.md +8 -0
  141. package/skills/hexasync-pullers/references/pullers.PULLERS.persistence-and-safe-full-pull-removal.md +23 -0
  142. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-afterpullsteps.md +56 -0
  143. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-beforepullsteps.md +43 -0
  144. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-contracts.md +6 -0
  145. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-finalsteps.md +48 -0
  146. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-onerrorsteps.md +38 -0
  147. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-pullsteps.md +66 -0
  148. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-steps.md +46 -0
  149. package/skills/hexasync-pullers/references/pullers.PULLERS.probe-discipline.md +13 -0
  150. package/skills/hexasync-pullers/references/pullers.PULLERS.property-reference.md +561 -0
  151. package/skills/hexasync-pullers/references/pullers.PULLERS.puller-completeness-contract.md +88 -0
  152. package/skills/hexasync-pullers/references/pullers.PULLERS.related.md +11 -0
  153. package/skills/hexasync-pullers/references/pullers.PULLERS.stamp--sweep.md +21 -0
  154. package/skills/hexasync-pullers/references/pullers.PULLERS.symptom--cause--rule.md +24 -0
  155. package/skills/hexasync-pullers/references/pullers.PULLERS.the-resume-computation.md +19 -0
  156. package/skills/hexasync-pullers/references/pullers.PULLERS.the-six-slot-specificity-checklist--once-per-endpoint.md +28 -0
  157. package/skills/hexasync-pullers/references/pullers.PULLERS.the-webhook-vs-puller-division.md +8 -0
  158. package/skills/hexasync-pullers/references/pullers.PULLERS.two-puller-host-modes-not-two-workflow-constructs.md +24 -0
  159. package/skills/hexasync-pullers/references/pullers.PULLERS.watermark-trustworthiness.md +15 -0
  160. package/skills/hexasync-pullers/references/pullers.PULLERS.worked-example-legacy-paged-pull.md +38 -0
  161. package/skills/hexasync-pullers/references/pullers.PULLERS.worked-example-new-kind-snapshot-pull.md +74 -0
  162. package/skills/hexasync-pullers/references/pullers.PULLERS.worked-example-opaque-token-api.md +14 -0
  163. package/skills/hexasync-pullers/references/steps.PULLER.md +187 -0
  164. package/skills/hexasync-pushers/SKILL.md +60 -0
  165. package/skills/hexasync-pushers/references/INDEX.md +47 -0
  166. package/skills/hexasync-pushers/references/INSTALL.md +35 -0
  167. package/skills/hexasync-pushers/references/pushers.PUSHERS.association-transform-routing.md +38 -0
  168. package/skills/hexasync-pushers/references/pushers.PUSHERS.best-practices.md +38 -0
  169. package/skills/hexasync-pushers/references/pushers.PUSHERS.expression-roots-differ-from-a-puller.md +27 -0
  170. package/skills/hexasync-pushers/references/pushers.PUSHERS.fields.md +332 -0
  171. package/skills/hexasync-pushers/references/pushers.PUSHERS.four-step-phases.md +17 -0
  172. package/skills/hexasync-pushers/references/pushers.PUSHERS.indirect-pushers.md +36 -0
  173. package/skills/hexasync-pushers/references/pushers.PUSHERS.md +85 -0
  174. package/skills/hexasync-pushers/references/pushers.PUSHERS.minimal-configuration.md +45 -0
  175. package/skills/hexasync-pushers/references/pushers.PUSHERS.ordinary-result-contract.md +136 -0
  176. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-afterpushsteps.md +34 -0
  177. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-beforepushsteps.md +33 -0
  178. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-bulkpushers-afterpushsteps.md +8 -0
  179. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-bulkpushers-beforepushsteps.md +46 -0
  180. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-bulkpushers-pushsteps.md +8 -0
  181. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-contracts.md +10 -0
  182. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-finalsteps.md +99 -0
  183. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-pushsteps.md +50 -0
  184. package/skills/hexasync-pushers/references/pushers.PUSHERS.related.md +10 -0
  185. package/skills/hexasync-pushers/references/pushers.PUSHERS.resolution-ordering-locks-and-retries.md +56 -0
  186. package/skills/hexasync-pushers/references/pushers.PUSHERS.the-two-identities-a-push-step-reads-off-the-item.md +18 -0
  187. package/skills/hexasync-pushers/references/pushers.PUSHERS.troubleshooting.md +16 -0
  188. package/skills/hexasync-pushers/references/pushers.PUSHERS.worked-example-direct-push-with-dependency.md +66 -0
  189. package/skills/hexasync-pushers/references/pushers.PUSHERS.worked-example-indirect-push.md +35 -0
  190. package/skills/hexasync-pushers/references/steps.PUSHER.md +238 -0
  191. package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_STATUS.md +201 -0
  192. package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_SYNC_PROCESS.md +359 -0
  193. package/skills/hexasync-query-dsl/SKILL.md +67 -0
  194. package/skills/hexasync-query-dsl/references/INDEX.md +60 -0
  195. package/skills/hexasync-query-dsl/references/INSTALL.md +35 -0
  196. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.best-practice.md +6 -0
  197. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md +48 -0
  198. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md +51 -0
  199. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-predicates.md +51 -0
  200. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-quick-reference.md +67 -0
  201. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md +123 -0
  202. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.md +61 -0
  203. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.md +25 -0
  204. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.md +61 -0
  205. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.query-arguments.md +80 -0
  206. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.value-binding-and-casts.md +54 -0
  207. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.between-takes-a-range-not-an-operand.md +52 -0
  208. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.bitwise-predicates.md +60 -0
  209. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.last_int_unit-needs-format-on-the-left.md +92 -0
  210. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.md +16 -0
  211. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.membership-predicates.md +44 -0
  212. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.null-predicates-are-unary.md +67 -0
  213. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.regex-predicates-complete-scalar-postgresql-patterns.md +87 -0
  214. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.text-matching-six-predicates-scalar-patterns-and-value-lists.md +85 -0
  215. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.verbatim-scalar-comparisons.md +92 -0
  216. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.property-reference.md +428 -0
  217. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.quick-reference-syntax-variants-and-how-to-choose.md +363 -0
  218. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md +104 -0
  219. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.sensible-configuration.md +24 -0
  220. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md +57 -0
  221. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.grouping-precedence-and-exact-parentheses.md +102 -0
  222. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.join-types.md +91 -0
  223. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.md +10 -0
  224. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.query-envelope.md +95 -0
  225. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md +39 -0
  226. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.when-to-use.md +9 -0
  227. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.where-it-is-used.md +141 -0
  228. package/skills/hexasync-query-dsl/references/steps.QUERY_MANY.md +510 -0
  229. package/skills/hexasync-query-dsl/references/steps.QUERY_SINGLE.md +491 -0
  230. package/skills/hexasync-query-dsl/references/steps.SQL.md +362 -0
  231. package/skills/hexasync-query-dsl/references/steps.SQL_PROXY.md +315 -0
  232. package/skills/hexasync-startup-tasks-scheduling/SKILL.md +44 -0
  233. package/skills/hexasync-startup-tasks-scheduling/references/INDEX.md +28 -0
  234. package/skills/hexasync-startup-tasks-scheduling/references/INSTALL.md +35 -0
  235. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.contract.md +6 -0
  236. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.legacy-target-tasks.md +124 -0
  237. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.md +15 -0
  238. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.metric-defaults.md +73 -0
  239. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.related.md +9 -0
  240. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.scheduler-metadata.md +324 -0
  241. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.sensible-configuration.md +28 -0
  242. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.shape.md +108 -0
  243. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.syntax.md +33 -0
  244. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.when-to-use.md +10 -0
  245. package/skills/hexasync-startup-tasks-scheduling/references/steps.ENQUEUER.md +234 -0
  246. package/skills/hexasync-steps-api-http/SKILL.md +61 -0
  247. package/skills/hexasync-steps-api-http/references/INDEX.md +73 -0
  248. package/skills/hexasync-steps-api-http/references/INSTALL.md +35 -0
  249. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.best-practices.md +11 -0
  250. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.exact-authored-shape.md +37 -0
  251. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.execution-order-and-shared-values.md +13 -0
  252. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.field-contract.md +60 -0
  253. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.md +49 -0
  254. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.members-encoded-inside-yaml-expression-strings.md +18 -0
  255. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.parsejson-boundary.md +14 -0
  256. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.parser-examples.md +77 -0
  257. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.parser-groups.md +203 -0
  258. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.related.md +5 -0
  259. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.same-name-different-placement-grammars.md +80 -0
  260. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.status-narrowing.md +29 -0
  261. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.the-eight-parser-ids.md +17 -0
  262. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.troubleshooting.md +13 -0
  263. package/skills/hexasync-steps-api-http/references/routing.NEXT.md +246 -0
  264. package/skills/hexasync-steps-api-http/references/steps.API.api-pagination.md +44 -0
  265. package/skills/hexasync-steps-api-http/references/steps.API.api-response-parsing-and-outputs.md +43 -0
  266. package/skills/hexasync-steps-api-http/references/steps.API.api-response-status.md +37 -0
  267. package/skills/hexasync-steps-api-http/references/steps.API.best-practices.md +14 -0
  268. package/skills/hexasync-steps-api-http/references/steps.API.contract.md +64 -0
  269. package/skills/hexasync-steps-api-http/references/steps.API.curl-request-intake.md +31 -0
  270. package/skills/hexasync-steps-api-http/references/steps.API.failure-handling.md +18 -0
  271. package/skills/hexasync-steps-api-http/references/steps.API.fields.md +457 -0
  272. package/skills/hexasync-steps-api-http/references/steps.API.md +21 -0
  273. package/skills/hexasync-steps-api-http/references/steps.API.public-webhook-binding.md +17 -0
  274. package/skills/hexasync-steps-api-http/references/steps.API.related.md +12 -0
  275. package/skills/hexasync-steps-api-http/references/steps.API.request-builders.md +206 -0
  276. package/skills/hexasync-steps-api-http/references/steps.API.request-pipeline-and-precedence.md +13 -0
  277. package/skills/hexasync-steps-api-http/references/steps.API.sensitive-headers-and-diagnostic-trail.md +25 -0
  278. package/skills/hexasync-steps-api-http/references/steps.INDEX.md +137 -0
  279. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE._history--the-per-step-occurrence-ring.md +6 -0
  280. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.arguments-and-routing.md +103 -0
  281. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.best-practices.md +11 -0
  282. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.connection-binding.md +6 -0
  283. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.cross-cutting-step-flags.md +76 -0
  284. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.execution-budgets.md +6 -0
  285. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.executor-results-graceful-returns-and-run-error-data.md +18 -0
  286. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.executor-selection-is-exact.md +21 -0
  287. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.flow-entry.md +8 -0
  288. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.md +22 -0
  289. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.one-canonical-workflow-component.md +79 -0
  290. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.payload-selection-and-thrown-error-routing.md +19 -0
  291. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.recovery-bypasses-and-connector-restart.md +11 -0
  292. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.related.md +5 -0
  293. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.shape.md +300 -0
  294. package/skills/hexasync-steps-control-data/SKILL.md +59 -0
  295. package/skills/hexasync-steps-control-data/references/INDEX.md +133 -0
  296. package/skills/hexasync-steps-control-data/references/INSTALL.md +35 -0
  297. package/skills/hexasync-steps-control-data/references/steps.BASE64_TO_MIME_TYPE.md +101 -0
  298. package/skills/hexasync-steps-control-data/references/steps.Begin.md +80 -0
  299. package/skills/hexasync-steps-control-data/references/steps.CACHE.md +221 -0
  300. package/skills/hexasync-steps-control-data/references/steps.Composite.md +87 -0
  301. package/skills/hexasync-steps-control-data/references/steps.DIRECT_INDEX.md +303 -0
  302. package/skills/hexasync-steps-control-data/references/steps.DOWNLOAD_CSV.md +475 -0
  303. package/skills/hexasync-steps-control-data/references/steps.EXCEL_READER.md +323 -0
  304. package/skills/hexasync-steps-control-data/references/steps.End.md +100 -0
  305. package/skills/hexasync-steps-control-data/references/steps.GET_KEY_VALUE.md +167 -0
  306. package/skills/hexasync-steps-control-data/references/steps.GraphQL.md +88 -0
  307. package/skills/hexasync-steps-control-data/references/steps.IF.md +284 -0
  308. package/skills/hexasync-steps-control-data/references/steps.IGNORE_ITEM.md +170 -0
  309. package/skills/hexasync-steps-control-data/references/steps.INDEX.md +137 -0
  310. package/skills/hexasync-steps-control-data/references/steps.INVALIDATE_CACHE.md +175 -0
  311. package/skills/hexasync-steps-control-data/references/steps.LOOKUP_STEP.md +146 -0
  312. package/skills/hexasync-steps-control-data/references/steps.OData.md +133 -0
  313. package/skills/hexasync-steps-control-data/references/steps.PUBLISH_EVENT.md +274 -0
  314. package/skills/hexasync-steps-control-data/references/steps.QueryDSL.md +126 -0
  315. package/skills/hexasync-steps-control-data/references/steps.REMOVE_DATA.md +264 -0
  316. package/skills/hexasync-steps-control-data/references/steps.RESET_ITEM.md +164 -0
  317. package/skills/hexasync-steps-control-data/references/steps.RESOLVE_RAW_DATA.md +180 -0
  318. package/skills/hexasync-steps-control-data/references/steps.Restful.md +124 -0
  319. package/skills/hexasync-steps-control-data/references/steps.SEED_DATA.md +255 -0
  320. package/skills/hexasync-steps-control-data/references/steps.SET_KEY_VALUE.md +168 -0
  321. package/skills/hexasync-steps-control-data/references/steps.SLEEP.md +207 -0
  322. package/skills/hexasync-steps-control-data/references/steps.SWITCH.md +194 -0
  323. package/skills/hexasync-steps-control-data/references/steps.TRACK_FOR_REMOVAL.md +253 -0
  324. package/skills/hexasync-steps-control-data/references/steps.UPDATE_TASK_DATA_STATUS.md +247 -0
  325. package/skills/hexasync-steps-control-data/references/steps.VALUES.md +149 -0
  326. package/skills/hexasync-steps-control-data/references/steps.VERIFY_CACHED.md +172 -0
  327. package/skills/hexasync-steps-control-data/references/steps.cURL.md +78 -0
  328. package/skills/hexasync-tables-tasks-objects/SKILL.md +57 -0
  329. package/skills/hexasync-tables-tasks-objects/references/INDEX.md +78 -0
  330. package/skills/hexasync-tables-tasks-objects/references/INSTALL.md +35 -0
  331. package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.authoring-dependencies.md +80 -0
  332. package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.best-practices-and-pitfalls.md +22 -0
  333. package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.fields.md +430 -0
  334. package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.md +57 -0
  335. package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.related.md +6 -0
  336. package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.using-resolved-prerequisite-data.md +12 -0
  337. package/skills/hexasync-tables-tasks-objects/references/objectAssociations.OBJECT-ASSOCIATIONS.md +340 -0
  338. package/skills/hexasync-tables-tasks-objects/references/objects.object.best-practices-and-pitfalls.md +20 -0
  339. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dataprocessing.md +88 -0
  340. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dependencies.md +27 -0
  341. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.description.md +37 -0
  342. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.enqueue.md +179 -0
  343. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.fromconnectionid.md +21 -0
  344. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.id.md +20 -0
  345. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignorechange.md +31 -0
  346. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignoreremoval.md +25 -0
  347. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.integrationtype.md +26 -0
  348. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.isdirtyremovable.md +21 -0
  349. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.md +52 -0
  350. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metricgroups.md +28 -0
  351. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metrics.md +25 -0
  352. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.name.md +20 -0
  353. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.newtablename.md +23 -0
  354. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.oldtablename.md +23 -0
  355. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.priority.md +20 -0
  356. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.puller.md +55 -0
  357. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.pusher.md +24 -0
  358. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.queuer.md +23 -0
  359. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.toconnectionid.md +21 -0
  360. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.type.md +35 -0
  361. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.valuetablename.md +25 -0
  362. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.viewname.md +23 -0
  363. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.visible.md +21 -0
  364. package/skills/hexasync-tables-tasks-objects/references/objects.object.md +64 -0
  365. package/skills/hexasync-tables-tasks-objects/references/objects.object.minimal-declaration.md +32 -0
  366. package/skills/hexasync-tables-tasks-objects/references/objects.object.related.md +8 -0
  367. package/skills/hexasync-tables-tasks-objects/references/steps.SAVE_TASK_DATA.md +318 -0
  368. package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.best-practices.md +11 -0
  369. package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.fields.md +518 -0
  370. package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.md +62 -0
  371. package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.minimal-declaration-and-composed-usage.md +49 -0
  372. package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.related.md +10 -0
  373. package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.the-system-columns-are-not-declared-here.md +6 -0
  374. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.best-practices.md +11 -0
  375. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.fields.md +357 -0
  376. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.md +14 -0
  377. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.related.md +12 -0
  378. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.status-and-row-clocks.md +28 -0
  379. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.system-column-contract.md +44 -0
  380. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.systemcolumns-presentation.md +99 -0
  381. package/skills/hexasync-templates/SKILL.md +67 -0
  382. package/skills/hexasync-templates/references/AI-INDEX.md +125 -0
  383. package/skills/hexasync-templates/references/INDEX.md +73 -0
  384. package/skills/hexasync-templates/references/INSTALL.md +35 -0
  385. package/skills/hexasync-templates/references/KB-INDEX.md +128 -0
  386. package/skills/hexasync-templates/references/PROFILE-ROOT.composed-and-render-only-metadata.md +30 -0
  387. package/skills/hexasync-templates/references/PROFILE-ROOT.composition-fields.md +44 -0
  388. package/skills/hexasync-templates/references/PROFILE-ROOT.deployment-descriptor-retirement-and-current-composition.md +13 -0
  389. package/skills/hexasync-templates/references/PROFILE-ROOT.md +32 -0
  390. package/skills/hexasync-templates/references/PROFILE-ROOT.minimal-worker-facing-profile.md +34 -0
  391. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-references.md +54 -0
  392. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.author.md +15 -0
  393. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.connector-definition-document.md +356 -0
  394. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.connectors.md +15 -0
  395. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.contributors.md +15 -0
  396. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.creationsteps.md +12 -0
  397. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.databasename.md +12 -0
  398. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.dependencies.md +12 -0
  399. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.description.md +15 -0
  400. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.externals.md +14 -0
  401. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api--gateway_api.md +33 -0
  402. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.browser.md +101 -0
  403. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.form-field-fields.md +238 -0
  404. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.form.md +65 -0
  405. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.get_local_storage--set_local_storage.md +114 -0
  406. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.health_check_worker.md +33 -0
  407. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.if--switch.md +148 -0
  408. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.integration_app_management.md +115 -0
  409. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.jsonata--liquid.md +47 -0
  410. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md +109 -0
  411. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.nextbranch-fields.md +93 -0
  412. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.output-fields.md +82 -0
  413. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.read_queries.md +30 -0
  414. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.redirect.md +80 -0
  415. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.select_google_drive.md +47 -0
  416. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.show_info.md +65 -0
  417. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.single_choice_form--multiple_choice_form.md +47 -0
  418. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.step-envelope-fields.md +233 -0
  419. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.wait.md +79 -0
  420. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.id.md +12 -0
  421. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.legacy-roots--do-not-author.md +30 -0
  422. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.md +36 -0
  423. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.metricgroups.md +14 -0
  424. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.name.md +13 -0
  425. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.noschedules.md +12 -0
  426. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objectassociations.md +15 -0
  427. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objects.md +23 -0
  428. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pullers.md +12 -0
  429. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pushers.md +12 -0
  430. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.recommendations.md +12 -0
  431. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.reports.md +12 -0
  432. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.startuptasks.md +12 -0
  433. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.tables.md +15 -0
  434. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.thumbnail.md +12 -0
  435. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.transformations.md +13 -0
  436. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.validations.md +13 -0
  437. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.variables.md +16 -0
  438. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.webhooks.md +12 -0
  439. package/skills/hexasync-templates/references/PROFILE-ROOT.recommendation-selection.md +36 -0
  440. package/skills/hexasync-templates/references/PROFILE-ROOT.reference-composition-across-run-and-render-scope.md +29 -0
  441. package/skills/hexasync-templates/references/PROFILE-ROOT.rejected-reference-forms-and-safe-correction.md +21 -0
  442. package/skills/hexasync-templates/references/PROFILE-ROOT.related.md +5 -0
  443. package/skills/hexasync-transformations/SKILL.md +51 -0
  444. package/skills/hexasync-transformations/references/INDEX.md +40 -0
  445. package/skills/hexasync-transformations/references/INSTALL.md +35 -0
  446. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.best-practices.md +21 -0
  447. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.contract.md +12 -0
  448. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.envelope-fields.md +115 -0
  449. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.example-enrich-an-item-with-a-structured-lookup.md +36 -0
  450. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.explicit-mapping-for-push.md +37 -0
  451. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.md +20 -0
  452. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.none--disabled-versus-absent-discriminator.md +17 -0
  453. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +37 -0
  454. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.related.md +10 -0
  455. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +18 -0
  456. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.sensible-configuration.md +23 -0
  457. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.syntax.md +30 -0
  458. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-chain-contract.md +43 -0
  459. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.bulkclone--clone-many.md +24 -0
  460. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.bulkrename--rename-many.md +27 -0
  461. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.clone--copy-one-field-to-several-names.md +47 -0
  462. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +120 -0
  463. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.md +18 -0
  464. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.nested_sql--legacy-raw-sql-producing-a-nested-list.md +64 -0
  465. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +88 -0
  466. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query_many--the-dsl-replacement-for-nested_sql.md +172 -0
  467. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +220 -0
  468. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.rename--rename-one-field.md +45 -0
  469. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.resolve_raw_data--lift-a-value-out-of-the-raw-payload.md +86 -0
  470. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +49 -0
  471. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.sql--legacy-raw-sql.md +73 -0
  472. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.when-to-use.md +9 -0
  473. package/skills/hexasync-validations/SKILL.md +52 -0
  474. package/skills/hexasync-validations/references/INDEX.md +27 -0
  475. package/skills/hexasync-validations/references/INSTALL.md +35 -0
  476. package/skills/hexasync-validations/references/steps.CHECK_FORMAT.md +196 -0
  477. package/skills/hexasync-validations/references/validations.VALIDATIONS.authoring-validations.md +5 -0
  478. package/skills/hexasync-validations/references/validations.VALIDATIONS.best-practices.md +15 -0
  479. package/skills/hexasync-validations/references/validations.VALIDATIONS.composing-rules.md +37 -0
  480. package/skills/hexasync-validations/references/validations.VALIDATIONS.example-required-text-plus-a-numeric-range.md +33 -0
  481. package/skills/hexasync-validations/references/validations.VALIDATIONS.fields.md +118 -0
  482. package/skills/hexasync-validations/references/validations.VALIDATIONS.how-validations-behave.md +27 -0
  483. package/skills/hexasync-validations/references/validations.VALIDATIONS.md +57 -0
  484. package/skills/hexasync-validations/references/validations.VALIDATIONS.metadata-members.md +134 -0
  485. package/skills/hexasync-validations/references/validations.VALIDATIONS.not-the-query-dsl.md +15 -0
  486. package/skills/hexasync-validations/references/validations.VALIDATIONS.operators.md +406 -0
  487. package/skills/hexasync-validations/references/validations.VALIDATIONS.troubleshooting.md +13 -0
  488. package/skills/hexasync-webhooks/SKILL.md +62 -0
  489. package/skills/hexasync-webhooks/references/INDEX.md +46 -0
  490. package/skills/hexasync-webhooks/references/INSTALL.md +35 -0
  491. package/skills/hexasync-webhooks/references/steps.FORWARD.md +130 -0
  492. package/skills/hexasync-webhooks/references/steps.WEBHOOK_FORWARD.md +259 -0
  493. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.best-practices.md +31 -0
  494. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.gateway-mcp-webhook-workflow.md +206 -0
  495. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.md +62 -0
  496. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.message-shape.md +29 -0
  497. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-finalsteps.md +59 -0
  498. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-pullsteps.md +72 -0
  499. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.related.md +10 -0
  500. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.routing-and-boundary-ownership.md +30 -0
  501. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.shape.md +37 -0
  502. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.autoenqueue.md +66 -0
  503. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.datafilter.md +68 -0
  504. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.dataparser.md +268 -0
  505. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.id-target.md +21 -0
  506. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.matchfilter-and-matchpattern.md +77 -0
  507. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.matchremovefilter-and-matchremovepattern.md +41 -0
  508. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.md +20 -0
  509. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.objectid-deprecated.md +25 -0
  510. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.objectids.md +66 -0
  511. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.options.md +67 -0
  512. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.pullsteps.md +31 -0
  513. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.rejected-target-fields-finalsteps-and-responsefilters.md +8 -0
  514. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.troubleshooting.md +17 -0
  515. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.webhook-properties.md +117 -0
  516. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.worked-example-webhook-direct-index-plus-steps.md +71 -0
@@ -0,0 +1,51 @@
1
+ > Part of [The Query DSL](query-dsl.QUERY-DSL.md) › [Filter DSL language contract](query-dsl.QUERY-DSL.filter-dsl-language-contract.md).
2
+
3
+ ### Filter predicates
4
+
5
+ Condition dispatch lowercases names but does not trim whitespace. Listed aliases are complete; parenthesized aliases include literal `()` in the condition string, not an expression call syntax. At API request `filters`, binary comparisons/arithmetic take a left expression and one right scalar/expression; ordinary authored leaves use a bare field and literal. Text, membership and mask predicates require a field plus one meaningful right value/list; BETWEEN requires a field plus both `from` and `to`. Null predicates are unary and ignore rightOp; groups ignore leftOp and recursively read their rightOp child array. Nested binary expression support depends on deserialization, as explained in [Filter composition](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md); it is not a guarantee that an arbitrary object is an operand. Request literals are not evaluated against workflow/runtime roots: [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component), [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope), and [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) own those distinct placement contracts.
6
+
7
+ | Family | Recognized tokens/aliases | Right operand and SQL effect |
8
+ | --- | --- | --- |
9
+ | Equal | eq, eq(), = | Scalar; = |
10
+ | Greater / less | gt, gt(), > / lt, lt(), < | Scalar; > / < |
11
+ | Greater-or-equal / less-or-equal | gteq, gteq(), >= / lteq, lteq(), <= | Scalar; >= / <= |
12
+ | Not equal | neq, neq(), !=, <> | Scalar; emits != |
13
+ | Any mask bits | habw, habw(), has_any_bits, has_any_bits() | Integer/numeric string or mask array OR-reduced; `(field & mask)>0 OR field=mask` |
14
+ | All mask bits | hbw, hbw(), has_bits, has_bits() | `(field & mask)=mask OR field=mask` |
15
+ | No mask bits | not_hbw, not_hbw(), not_has_bits, not_has_bits() | `(field & mask)=0` |
16
+ | Arithmetic expressions | &, \|, ^, # | Binary arithmetic, ^ maps to PostgreSQL #. Not a boolean predicate by itself. |
17
+ | Membership | in, in() | Array elements converted to text and bound as a string list; `cast(field as varchar) = any(@parameter)` |
18
+ | Prefix | sw, sw(), starts_with, starts_with() | String plus `%`; cast varchar(4000) ILIKE |
19
+ | Negative prefix | not_sw, not_sw(), not_starts_with, not_starts_with() | NOT ILIKE |
20
+ | Contains | ct, ct(), contains, contains() | Regex-escaped text then varchar(4000) ~* |
21
+ | Negative contains | not_ct, not_ct(), not_contains, not_contains() | Escaped regex !~* |
22
+ | Regex | match_regex, match_regex() | Raw PostgreSQL pattern, maximum 512 characters; varchar(4000) ~* |
23
+ | Negative regex | not_match_regex, not_match_regex() | Raw pattern !~*, same cap |
24
+ | Range | between, between() | `{from,to}` directly bound endpoint objects; inclusive BETWEEN with serializer/driver-dependent endpoint materialization |
25
+ | Null | null, [null], nil, [nil] | Unary; rightOp ignored; IS NULL |
26
+ | Not null | notnull, notnil, [notnull], [notnil] | Unary; IS NOT NULL |
27
+ | Conjunction | and, and(), && | Child-filter array, parenthesized children AND |
28
+ | Disjunction | or, or(), \|\| | Child-filter array, parenthesized children OR |
29
+
30
+ Lowercase canonical `eq` and alias `eq()` both bind A1 and test sku=A1. Text example `{"condition":"ct","leftOp":"name","rightOp":"Chair"}` matches Chair/armchair case-insensitively because ~* is used; Builder default CONTAINS instead uses LIKE. `[nil]` on external_id is the Filter alias for IS NULL; `IS_NULL` is **not** recognized by analogy. `habw` with flags=1/mask=3 passes; `hbw` needs all bits and fails. Filter has_bits therefore differs from Builder HAS_BITS. Array mask `[1,2]` OR-reduces to3; zero/negative masks follow the exact emitted formulas, not generic truthiness. Invalid/null elements fail; direct boxed integer representations can have conversion failures, so frontend JSON numeric/string transport is not a guarantee for every caller.
31
+
32
+ Raw `&`/`|`/`^`/`#` dispatches to binary arithmetic; `^` emits PostgreSQL `#`. Recognition is not a supported boolean WHERE predicate: the compiler supplies neither a comparison with zero nor a Builder-style `::int8` cast, so the numeric result can fail WHERE/AND boolean requirements or operand-type resolution. Non-copyable rejected API node: `{"condition":"&","leftOp":"flags","rightOp":3}`. For any selected positive bit use `{"condition":"habw","leftOp":"flags","rightOp":"3"}`; for the complete mask use hbw, and for no selected bits use not_hbw. Nested arithmetic can be an expression operand on a binary left side in supported representations; do not infer universal nested-right support or publish it as a portable API recipe.
33
+
34
+ Starts-with does not escape `%`/`_`; they retain LIKE wildcard meaning. Contains escapes the text as a regular expression, not a portability guarantee for all PostgreSQL regex metacharacters. Regex syntax is checked by the database, not by the length cap. Binary equality/ordering is not automatically case-folded. A directly supplied string left plus primitive right gets varchar(4000) casts on both sides; a JSON-deserialized string JsonElement left does not trigger that same cast. Thus numeric comparisons can differ with deserialization path; an authored cast property cannot fix it. **In the JSON-deserialized right-scalar branch only**, GUID-looking strings become Guid bindings, numbers decimal, booleans bool; directly supplied primitives retain their original values. Binary right null fails rather than becoming IS NULL; use the explicit null family. Negated text predicates still exclude SQL nulls unless OR-composed with unary null.
35
+
36
+ Filter IN converts each deserialized element to text, then binds a string list against its varchar-cast field; it does not preserve numeric/GUID typed arrays as such. Null elements fail during stringification, and element textual formatting is representation-dependent. BETWEEN is different: from/to are bound directly without operand valueType/coercion, so serializer/driver materialization and SQL column type must agree. Neither family interprets Builder typed operand records as typed endpoint/list operands; a record can instead become unintended text or a driver-incompatible object. If transport typing is uncertain, use known scalar equality OR children rather than claim a universal successful range cast.
37
+
38
+ Minimal canonical and recognized-alias requests at a supported entity POST search are `{"filters":{"condition":"eq","leftOp":"sku","rightOp":"A1"}}` and `{"filters":{"condition":"eq()","leftOp":"sku","rightOp":"A1"}}`. Assume existing text sku values A1, B2 and SQL NULL. Both transitions select A1, reject B2 and exclude SQL NULL, because both names dispatch to the same equality branch and bind A1 rather than interpret it as a field. On a fresh standalone compile this creates one generated binding; an existing dictionary or host prefix can change its name. The dashboard commonly authors eq() and ct(), but its picker list is narrower than this backend vocabulary. Existing `assets/queryDsl` IntelliSense contracts are Builder-only; their tokens cannot validate or extend these request forms.
39
+
40
+ Canonical `eq` is shown in [the language example](query-dsl.QUERY-DSL.filter-dsl-language-contract.md); replacing condition with `eq()` preserves the test. Minimal unary `{"condition":"[nil]","leftOp":"external_id"}` retains SQL-null values, not empty strings. Composed supported API body (YAML equivalent of JSON), assuming text name and integer flags fields:
41
+
42
+ ```yaml
43
+ filters:
44
+ condition: and
45
+ rightOp:
46
+ - { condition: 'ct()', leftOp: name, rightOp: Chair }
47
+ - { condition: habw, leftOp: flags, rightOp: '3' }
48
+ ```
49
+
50
+ Chair/flags1 and armchair/flags3 pass; Sofa/flags1 and Chair/flags0 fail. The string mask3 avoids relying on boxed integer casts; the regex text branch is case-insensitive. The shared dictionary binds the escaped Chair pattern and the mask3 separately, and child parentheses preserve their AND. Replacing habw with raw `&` is a non-copyable rejected form for a WHERE predicate: recognized arithmetic is not converted to boolean. Keep habw/hbw/not_hbw for boolean mask tests. Empty inputs are family-specific: equality to an empty string is meaningful; empty sw appends `%`, and empty ct binds an empty regex, so both can admit every non-null text representation. Empty IN binds an empty string list and admits no rows, while an empty mask array reduces to0: habw then admits only field=0; hbw and not_hbw admit every non-null integer field because its overlap with0 is0. SQL NULL still does not pass those boolean mask formulas. Null/malformed right values are not repaired into unary null predicates or valid masks. Unsupported aliases such as Builder NOT_IN and condition `" eq "` fail unsupported dispatch rather than being trimmed or translated. A regex of length512 is admitted by the size cap and513 is rejected before SQL, while even an admitted pattern can fail database syntax validation.
51
+
@@ -0,0 +1,67 @@
1
+ > Part of [The Query DSL](query-dsl.QUERY-DSL.md) › [Filter DSL language contract](query-dsl.QUERY-DSL.filter-dsl-language-contract.md).
2
+
3
+ ### Filter quick reference
4
+
5
+ Purpose: narrow, sort and page stored rows in an HTTP search request (entity data search, metric detail search). Use it only in request bodies; profile conditions are always Builder. A sensible request filters on a few bare columns, sorts by one unique column and pages with a positive `limit`. The examples below are YAML renderings of the JSON request body. Filter has no profile schema in `assets/queryDsl`; its grammar is owned by this section.
6
+
7
+ #### Request body members
8
+
9
+ Syntax: `{ filters: <node>, fields: [<column>], orderBy: { <column>: <asc|desc> }, limit: <int>, offset: <int> }`
10
+
11
+ - `filters: <node>` — the condition tree. Optional; omitted or null means no request narrowing. The member is plural: `filter` is ignored.
12
+ - `fields: [<column>, …]` — columns to return. Optional; omitted or empty returns all source columns (raw payload columns may be excluded by the endpoint).
13
+ - `orderBy: { <column>: <asc|desc> }` — sort map. Optional, empty by default (no ORDER BY). Only lowercase `desc` or `descending` sorts descending; every other value, including `DESC`, sorts ascending.
14
+ - `limit: <int>` — page size, defaults to 100 (an endpoint may override it). Use a positive value.
15
+ - `offset: <int>` — rows to skip, defaults to 0. Use a non-negative value.
16
+
17
+ ```yaml
18
+ fields: [sku, title] # omitted = all columns
19
+ filters: { condition: eq, leftOp: active, rightOp: true } # omitted = no narrowing
20
+ orderBy: { sku: asc } # empty by default = no guaranteed order
21
+ limit: 50 # defaults to 100
22
+ offset: 0 # defaults to 0
23
+ ```
24
+
25
+ Choose offset paging for ordinary searches, and always sort on a unique column so pages do not overlap or skip rows. Cursor-based endpoints have their own envelopes; see [Filter request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md).
26
+
27
+ #### Node members
28
+
29
+ Syntax: `{ condition: <token>, leftOp: <field>, rightOp: <value | list | {from, to} | [child nodes]> }`
30
+
31
+ - `condition: <token>` — required operator, no default. Author the canonical lowercase token; matching is case-insensitive but surrounding spaces are not trimmed.
32
+ - `leftOp: <field>` — a bare column name such as `sku`. It is always read from source `_` (`p.sku` becomes `_.p.sku`, not a join alias). Grammar: `[A-Za-z_][A-Za-z0-9_]*`, optionally dotted. Omit it for `and`/`or`.
33
+ - `rightOp` — the literal, list, range object or child array required by the operator. Omit it for null tests. Values are always literals: `"@p0"` is the text `@p0`, not a variable.
34
+
35
+ #### Operator variants
36
+
37
+ | Variant | Canonical token (aliases) | `rightOp` | Meaning | Choose when |
38
+ | --- | --- | --- | --- | --- |
39
+ | Equality / inequality | `eq` (`eq()`, `=`), `neq` (`neq()`, `!=`, `<>`) | scalar | equal / not equal; NULL never matches | exact value match |
40
+ | Ordering | `gt`, `gteq`, `lt`, `lteq` (and `()`/symbol forms) | scalar | greater / greater-or-equal / less / less-or-equal | thresholds, cutoffs |
41
+ | Text prefix | `sw` (`starts_with`), `not_sw` | string | case-insensitive prefix match; `%` and `_` in the value act as wildcards | prefix search |
42
+ | Text contains | `ct` (`contains`), `not_ct` | string | case-insensitive substring match (value escaped) | free-text search |
43
+ | Regex | `match_regex`, `not_match_regex` | pattern, max 512 characters | case-insensitive PostgreSQL regex | patterns the text tokens cannot express |
44
+ | Membership | `in` (`in()`) | array | value (compared as text) is in the list; an empty list matches nothing | a fixed set of values |
45
+ | Range | `between` (`between()`) | `{ from: <v>, to: <v> }` | inclusive range | date or number windows |
46
+ | Null test | `null` (`nil`, `[null]`, `[nil]`), `notnull` (`notnil`, `[notnull]`, `[notnil]`) | none | IS NULL / IS NOT NULL | presence/absence of a value |
47
+ | Mask | `habw` (any bit), `hbw` (all bits), `not_hbw` (no bit) | integer or array of bits | bitwise flag tests | flag/status bitfields |
48
+ | Group | `and` (`and()`, `&&`), `or` (`or()`, `\|\|`) | non-empty array of child nodes | all / any child matches | combining conditions |
49
+
50
+ ```yaml
51
+ filters:
52
+ condition: and
53
+ rightOp:
54
+ - { condition: eq, leftOp: active, rightOp: true }
55
+ - { condition: ct, leftOp: title, rightOp: chair } # case-insensitive substring
56
+ - { condition: in, leftOp: sku, rightOp: [A1, B2] }
57
+ - { condition: between, leftOp: price, rightOp: { from: 10, to: 50 } } # inclusive
58
+ - { condition: notnull, leftOp: external_id } # unary: no rightOp
59
+ - { condition: habw, leftOp: flags, rightOp: '3' } # any of bits 1 and 2
60
+ - condition: or
61
+ rightOp:
62
+ - { condition: sw, leftOp: sku, rightOp: TMP }
63
+ - { condition: gteq, leftOp: quantity, rightOp: 5 }
64
+ ```
65
+
66
+ Patterns: there is no `not` group, so use the negated token (`neq`, `not_ct`, `notnull`, `not_hbw`). Never send an empty group. Do not use the raw arithmetic tokens `&`, `|`, `^`, `#` as conditions; they are not boolean tests, so use the mask tokens instead. Prefer `ct`/`sw` over `match_regex` unless a real pattern is needed.
67
+
@@ -0,0 +1,123 @@
1
+ > Part of [The Query DSL](query-dsl.QUERY-DSL.md) › [Filter DSL language contract](query-dsl.QUERY-DSL.filter-dsl-language-contract.md).
2
+
3
+ ### Filter request envelope
4
+
5
+ Exact plural member is **filters**, not filter. Offset request body for entity data `POST /api/{entityType}/{entityId}/data/search` and metric detail `POST /api/tasks/{taskId}/metrics/{metricId}/key/{metricKey}/search` is a direct search request; dashboard sends it unchanged with profile identity header. Job-monitoring requests instead wrap it under `query`.
6
+
7
+ This is HTTP request authoring, not a [Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component). The [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope) available to a step or transformation is not injected into this body: request values are serialized literals, not expression wrappers or ARG declarations. [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) owns the separate profile Builder rule. A QUERY metric's authored branch is owned by [QUERY metrics](hexasync://docs/metrics/METRICS_REFERENCE/metric-kinds-reference#3-query); [Filter fields](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md) and [Filter composition](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md) own the request node's dependencies.
8
+
9
+
10
+
11
+ | Offset body member | Backend contract / effect |
12
+ | --- | --- |
13
+ | `filters` | Optional Filter object; null means no request predicate. |
14
+ | `fields` | Optional string[] with no model default; absent/empty means all source columns in shared rendering. Proxy entity/source searches additionally exclude or scrub `__raw`/`__raw_hashed`; do not expect those raw artifacts in responses. Each entry is a projection identifier, or standalone `*`; a Filter/order field cannot be `*`. |
15
+ | `limit` | Integer, model default100; endpoint may override/clamp. Shared model alone has no positive range validation. |
16
+ | `offset` | Integer, default0; consumed by offset paths. |
17
+ | `orderBy` | Optional map of field→string direction, initialized to an empty map; omitted/empty/null gives no shared ORDER BY. Keys use the [Filter field grammar](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md), including a host allowlist only when supplied. Exact lowercase `desc`/`descending` means descending; all other values, including `DESC`, blank and null, become ascending. Author `asc`/`desc` deliberately. Multiple entries emit in dictionary enumeration order; one unique sort key avoids depending on map order. |
18
+
19
+ Initial standalone offset request at `POST /api/tasks/{taskId}/data/search` (YAML illustration; send JSON). Assume an existing task with unique text sku values A1/B2/C3/D4, all active, plus inactive E5; no intervening writes, and no profile metric constraint on this standalone search:
20
+
21
+ ```yaml
22
+ fields: [sku]
23
+ limit: 2
24
+ offset: 0
25
+ orderBy: { sku: asc }
26
+ filters: { condition: eq, leftOp: active, rightOp: true }
27
+ ```
28
+
29
+ The first response has `items: [{sku: A1}, {sku: B2}]` and `totalCount: 4`; inactive E5 fails the request predicate. Advance this offset consumer with the following JSON body, retaining the projection, filter and unique order:
30
+
31
+ ```json
32
+ {
33
+ "fields": ["sku"],
34
+ "limit": 2,
35
+ "offset": 2,
36
+ "orderBy": {"sku": "asc"},
37
+ "filters": {"condition": "eq", "leftOp": "active", "rightOp": true}
38
+ }
39
+ ```
40
+
41
+ The subsequent response has `items: [{sku: C3}, {sku: D4}]`, still `totalCount: 4`: filtering precedes paging, the same WHERE contributes to the count, and offset skips the first two ordered eligible rows. Offset4 returns `items: []` with the same count, not an error. No ORDER BY means no deterministic first/subsequent page guarantee; nonunique ordering and intervening writes can shift pages.
42
+
43
+ For composition, send that same initial body with offset0 to `POST /api/tasks/{taskId}/metrics/{metricId}/key/matched/search`, assuming a configured QUERY metric whose matched branch selects only A1/C3/E5 and exposes sku/active. The already profile-constrained source is wrapped as `_`; request active=true narrows it to A1/C3, so projected items are A1/C3 with totalCount2 and offset2 returns an empty page. Neither B2/D4 nor inactive E5 reappears: request filtering cannot replace the profile branch. An omitted request filter removes only request narrowing, not that profile branch. These filtered totals belong to core item and standard entity/source searches; one shared helper counts without WHERE, so do not generalize totalCount to every consumer.
44
+
45
+ On a fresh default Filter compiler dictionary, this active literal binds as `@p0`; another bound value advances to `@p1`, based on existing dictionary key count. Builder request integration using prefix `dsl_` produces names such as `@pdsl__p0`, and proxy source wrapping using `filter_` produces `@pfilter__p0`. Those are generated implementation names, never client binding declarations: `rightOp: "@p0"` compares against the literal text @p0. Keep literals separate from field identifiers.
46
+
47
+ **Non-copyable envelope mistakes:** `filter` singular, profile `where`, a Builder `op/data` node in `filters`, or `cursor` on the offset-only search request does not apply the intended filter/page transition. Unknown-member handling belongs to the HTTP serializer; do not promise every extra field is rejected, and silently ignored fields must not be used as a safety guard. Use plural `filters` and the offset body above, or the distinct supported job cursor wrapper below. Invalid Filter/order identifiers fail validation rather than being escaped or trimmed; a syntactically valid nonexistent column can still fail SQL. Negative offset/limit have no shared positive-range guard and can reach database errors, so author nonnegative offset and positive limit.
48
+
49
+ #### Cursor and job consumers are different envelopes
50
+
51
+ ##### Entity V2: flat fields and bounded continuation
52
+
53
+ `POST /api/v2/{entityType}/{entityId}/data/search` takes a flat EntitySearchDslRequest, inheriting the offset model's fields/limit/offset/orderBy/filters but adding these members:
54
+
55
+ | Additional authored member | Type/default and actual read |
56
+ | --- | --- |
57
+ | `cursor` | Optional string, no model default; not a nested query field. The cursor WHERE helper expects raw JSON tuple text and catches decode failures. |
58
+ | `rel` | String, default next; validation accepts next/prev case-insensitively, but ordering/execution checks exact lowercase next. Send lowercase. |
59
+ | `encryptedFilter` | Optional string, no default; Base64 UTF-8 JSON for a Filter node, **not** encryption, integrity protection or an authorization credential. |
60
+ | `metricType` | Optional string; nonempty together with a nonnull metricId selects the metric route. It is a routing gate, not the handler kind: the stored metric's kind chooses the handler. |
61
+ | `metricId` | Optional UUID string deserialized to nullable Guid; malformed UUID fails model binding. Both metric routing fields are needed; a partial pair falls through to statistic/generic routing rather than guaranteeing a missing-id error. |
62
+ | `metricFacet` | Optional string; metric route forwards it or empty string. QUERY details require a configured matched/unmatched branch; unsupported/missing facet fails instead of returning an invented default branch. |
63
+ | `statisticType` | Optional string; used when no complete metric gate matched. Lowercased keyed statistic lookup selects the builder; no declaration alone proves an installed kind. |
64
+
65
+ Precedence is **complete metric gate → statisticType → generic entity search**. Metric/statistic routes require a TASK entity; wrong entity type gives metrics_not_supported/statistics_not_supported. Missing task/metric yields task_not_found/metric_not_found; missing stored metric kind gives invalid_metric and missing metric handler gives handler_not_found. Missing statistic builder gives HTTP500 builder_not_found. These endpoint errors differ from backend SQL/filter exceptions.
66
+
67
+ Generic V2 honors fields with raw-safe physical-column projection and recursive __raw/__raw_hashed scrubbing; it ignores authored orderBy/offset and fixes ordering to (`__updated_at`,`__created_at`,`__id`), DESC for exact next and ASC otherwise. Its limit is the inherited default100 when omitted, positive supplied value otherwise, or50 for nonpositive values, with no generic500 cap. Metric/statistic routes instead clamp positive limit to500 and use50 for nonpositive values. All these V2 callers fetch limit+1 then trim to the requested page before constructing their response.
68
+
69
+ **The actual V2 response is `items`, `next`, `prev`, not the job response's nextCursor/prevCursor.** The shared result constructor rechecks whether its already-trimmed items exceed limit, so `next` is not populated on these callers, even when an extra row existed. An extra row can cause `prev` to contain Base64 JSON of the first returned row (the internal lastCursor is used only as a nonblank flag). The computed internal token uses a Brotli tuple serializer, but the cursor predicate helper attempts unencoded raw JSON tuple decoding and silently ignores failures; returned row-encoded prev is not that raw tuple either. Do not claim a working subsequent V2 cursor page, handcraft a workaround token or label the internal nextCursor variable a returned member. Use the supported offset POST search when reliable authored page advancement is required.
70
+
71
+ Entity encryptedFilter decoding failures, empty encoded input, JSON-null decoded nodes and invalid Base64/JSON are ignored rather than authenticated or rejected. A successfully decoded nonnull Filter is AND-merged with supplied filters (or becomes the sole filter when absent); blank condition is not a decode failure and can skip as a sole root or fail when nested in the merged group. Other malformed predicates can fail later compilation. Composed initial generic V2 body below assumes real sku/name columns:
72
+
73
+ ```yaml
74
+ limit: 2
75
+ rel: next
76
+ filters: { condition: eq, leftOp: sku, rightOp: A1 }
77
+ encryptedFilter: 'eyJjb25kaXRpb24iOiJjdCIsImxlZnRPcCI6Im5hbWUiLCJyaWdodE9wIjoiQ2hhaXIifQ=='
78
+ ```
79
+
80
+ The exact decoded JSON is `{"condition":"ct","leftOp":"name","rightOp":"Chair"}`. Source A1/Chair qualifies, A1/Sofa and B2/Chair do not: sku equality AND case-insensitive name containment. Invalid encoded input would leave only the explicit sku filter, not fail closed. Omitting filters and encoded input requests no user predicate at all.
81
+
82
+ **Direct QUERY-metric V2 alias boundary:** its request Filter is compiled inside Builder SQL and always prefixes fields `_`. If the only source is authored alias p, Filter leftOp sku emits _.sku and can fail for missing `_`; leftOp p.sku emits _.p.sku, not the remedy. Expose the intended source as `_` and update its Builder FIELD references consistently, or use the offset metric POST wrapper, which aliases the completed source SQL `_` and applies the request once. Empty Filter does not create this alias error; cursor ordering here is unqualified, not `_`-prefixed.
83
+
84
+ ##### Job details: nested query and opaque record cursors
85
+
86
+ `POST /api/jobsmonitoring/queue-status-details` and sync-history/polling-jobs/generic-jobs details take JobSearchQueryDsl, not the flat V2 body:
87
+
88
+ | Outer authored member | Type/default and read |
89
+ | --- | --- |
90
+ | `query` | Optional search request object; filters are read, but these details ignore nested fields/orderBy/offset. An absent query does not create a filter. |
91
+ | `limit` | Optional integer, details model range1–100. Effective limit is outer limit, else nested query.limit, else10. An explicitly empty nested query has its own100 limit default; range attributes on outer limit do not add nested limit range validation. |
92
+ | `rel` | String default next, next/prev case-insensitive model validation; concrete details compare exact lowercase for cursor direction. Send lowercase. |
93
+ | `cursor` | Optional byte[] represented as Base64 in JSON, carrying a Brotli-compressed typed record. Job serializers consume that format, unlike the V2 raw-tuple helper; malformed compressed tokens propagate serializer errors. |
94
+ | `encryptedFilter` | Optional string admitted by the model; these four job detail endpoints do not consume it. Use nested query.filters, not an assumed decrypt hook. The separate task-statistic endpoint decodes Base64 UTF-8 Filter JSON, AND-appends valid SQL and ignores decode/compiler failures; this is not cryptography. |
95
+
96
+ Dashboard normally writes limit inside query and posts cursor at the outer level. Stats use a separate wrapper: outer limit range1–10000, effective outer/nested/default100, plus fromTs/taskIds where that statistic consumer reads them. Do not infer those stats fields are detail pagination inputs.
97
+
98
+ These job details use endpoint-specific fixed tuple ordering, fetch exactly limit (not limit+1), reverse backward rows, and return `data`, `nextCursor`, `prevCursor` (with model columns defaulting to[] unless a consumer fills it). They return nextCursor whenever rows exist, so it does **not** prove another page exists; terminal traversal can require an empty result request. Tuple null ordering/comparison is endpoint-specific, not universally null-safe.
99
+
100
+ Minimal real queue-status request body (YAML equivalent of JSON), assuming this object_id UUID exists and its queue rows have distinct nonnull execute_at values:
101
+
102
+ ```yaml
103
+ query:
104
+ limit: 2
105
+ filters:
106
+ condition: eq
107
+ leftOp: object_id
108
+ rightOp: '11111111-1111-4111-8111-111111111111'
109
+ rel: next
110
+ ```
111
+
112
+ With matching queued rows at execute_at300/200/100, the initial page returns300/200 under fixed descending tuple order and an opaque nextCursor. A subsequent request retains query/rel and puts that exact returned token into outer cursor, yielding the100 row if no intervening changes and the nonnull tuple assumptions hold. That one-row page still has nextCursor; the following request can be empty. Do not put cursor inside query, use offset to advance these details, substitute a task item field such as sku for a queue table column, or manufacture an example cursor.
113
+
114
+ **Queue cursor composition boundary:** use a complete leaf or an AND root for the request above. This queue consumer inserts root Filter SQL directly after WHERE, then appends `AND` plus its tuple cursor without wrapping the entire request group. A root OR becomes `first_branch OR second_branch AND cursor`, so SQL precedence applies the cursor only to the second branch: earlier matching first-branch rows can recur instead of advancing reliably. That is a non-copyable form for reliable cursor traversal, not automatic group normalization. For a disjunction of known object IDs, the supported Filter `in` predicate on object_id is a leaf alternative; it keeps the cursor AND outside one complete predicate. Do not infer the properly parenthesized profile Builder/request composition contract applies to every job SQL consumer.
115
+
116
+
117
+
118
+ ##### Task statistic GET is a different transport and filter limitation
119
+
120
+ `GET /api/tasks/{taskId}/data/details?metric=...&query=...` accepts the JSON search request text in query, plus separate encryptedFilter/cursor/rel/limit query parameters. Controller limit defaults50 and requires1–100, rel requires exact next/prev, and cursor must be valid Base64. Malformed query JSON produces invalid_query; invalid metric/limit/rel/cursor produces invalid_metric/invalid_limit/invalid_rel/invalid_cursor respectively.
121
+
122
+ The controller wraps required __metric/__task_id and optional user filters using binary-shaped AND nodes. Its task-statistic endpoint compiles ordinary user Filter only when the root leftOp is a string, so those wrapped user query.filters are ignored even when valid. Special selectors still traverse the tree (including kind-specific selectors such as retry threshold), and the separate encoded-filter path can still add predicates. Do not claim every accepted request narrows a profile/statistic rule on this GET path. Use the supported entity/metric POST or V2 statistic consumer for ordinary Filter composition; preserve the V2 cursor limitation above. [Consumer matrix](query-dsl.QUERY-DSL.where-it-is-used.md), [Filter fields](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md) and [composition](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md) distinguish these contexts from Builder profile authoring.
123
+
@@ -0,0 +1,61 @@
1
+ > Part of [The Query DSL](query-dsl.QUERY-DSL.md).
2
+
3
+ ## Filter DSL language contract
4
+
5
+ Filter is the separate language under API request **`filters`**, including dashboard entity/metric data search bodies. Profile-authored ordinary metric `metadata.where`, query transformation `metadata.where` and query step `data.where` are **Builder**, not Filter; a QUERY metric instead reads `metadata.sql.matchedWhere`/`unmatchedWhere`. The step's legacy `input` fallback is selected by [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component), not by the language. A request does not populate workflow/item bindings: availability and evaluation timing remain host-specific under [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope). Filter has no typed FIELD/VALUE/PARAM/ARG/QUERY operand discriminators, authored `valueType` casts, `caseSensitive` switch, Builder LAST, general NOT or NOT_IN/ENDS_WITH family. See the [capability matrix](query-dsl.QUERY-DSL.where-it-is-used.md) for exact consumers rather than assuming every host combines both languages.
6
+
7
+ | Difference | Builder | Filter |
8
+ | --- | --- | --- |
9
+ | Node | `{op,data}` | `{condition,leftOp,rightOp}` |
10
+ | Operator spelling | Canonical UPPER_SNAKE names such as IS_NULL/CONTAINS plus comparison symbols; runtime normalizes case | Canonical lower-case names such as eq/ct; eq() is a literal recognized alias, not a function call. EQ also dispatches, but whitespace is not trimmed |
11
+ | Group children | `data` array | `rightOp` child-filter array; leftOp ignored |
12
+ | Field | FIELD.field can explicitly use alias.column | Bare leftOp field string, always prefixed `_`; p.sku becomes _.p.sku, not a join alias |
13
+ | Literal | VALUE.val/vals | rightOp scalar/list/range appropriate to operator |
14
+ | Named bindings | Host PARAM/ARG | None; rightOp `"@p0"` is literal text |
15
+ | Generated values | @p_00001 from Build counter | Fresh default @p0 from shared parameter dictionary count; host prefixes/counts can change it |
16
+ | Case/casts | Operand valueType can request casts; caseSensitive controls supported formatting, not universal collation | Automatic operator/serializer-dependent casts only; no authored valueType/caseSensitive or cast operand |
17
+
18
+ The two languages combine only when a consumer actually receives both. Direct supported metric query consumers preserve parenthesized **profile Builder rule AND request Filter AND usable cursor condition**. Offset metric detail POSTs instead build the profile-constrained source without the request, wrap that source as `_`, and apply Filter/order/paging once outside it; this has the same narrowing effect without duplicating the request. Query steps and query transformations compile their Builder tree without receiving an API request. The GET task-statistic route in the [capability matrix](query-dsl.QUERY-DSL.where-it-is-used.md) ignores wrapped ordinary user predicates, so accepted request syntax alone is not proof of narrowing there.
19
+
20
+ | Authored Filter node member | Type, requiredness and default |
21
+ | --- | --- |
22
+ | `condition` | String; no model default. Author a nonblank recognized token. Null/blank at the root returns no predicate, not an implicit equality. Case is lowercased for dispatch, surrounding whitespace is not trimmed. |
23
+ | `leftOp` | Backend object-valued polymorphic member, no default. A predicate ordinarily requires a bare field string; supported binary expressions can use a nested Filter node subject to serializer limits. Groups ignore this member; omit it rather than place children here. |
24
+ | `rightOp` | Backend object-valued polymorphic member, no default. Scalars, membership/mask arrays, BETWEEN `{from,to}` and group child-filter arrays have different per-family contracts. Unary null predicates ignore it; all other examples supply the required meaningful value/shape. Group child arrays should be nonempty authored complete nodes. |
25
+
26
+ Compiler-owned SQL and @p... parameter names are **generated output**, not writable operand fields or named binding declarations. Builder IntelliSense assets describe profile Builder trees only; they are not proof of a Filter field/operand being accepted in an API request. Dashboard editor metadata/IDs are presentation state, not these three execution members.
27
+
28
+ **Minimal profile Builder versus minimal API Filter.** Assume an existing task with text `sku` and `status` columns and three otherwise eligible, non-Removed rows: `(A1,ready)`, `(A1,held)` and `(B2,ready)`. This profile fragment belongs at an ordinary COUNT metric's `metadata`, not at a request root:
29
+
30
+ ```yaml
31
+ where:
32
+ op: '='
33
+ data:
34
+ leftOp: { type: FIELD, field: _.sku }
35
+ rightOp: { type: VALUE, val: A1 }
36
+ ```
37
+
38
+ The handler compiles the typed FIELD/VALUE leaf, binds A1 and counts the two eligible A1 rows; the tree is not a row result. The [COUNT metric owner](hexasync://docs/metrics/METRICS_REFERENCE/metric-kinds-reference#1-count) owns the metric envelope, eligibility guard and total facet. A query step/transformation can use this leaf at its own `where` path only with the required [query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md); it returns rows or changes an item rather than reporting the COUNT facet. A QUERY metric uses its matchedWhere/unmatchedWhere path instead.
39
+
40
+ Minimal Filter request, shown as YAML equivalent of the JSON HTTP body sent to `POST /api/tasks/{taskId}/data/search`:
41
+
42
+ ```yaml
43
+ filters:
44
+ condition: eq
45
+ leftOp: status
46
+ rightOp: ready
47
+ ```
48
+
49
+ The compiler validates the bare status field, targets `_.status`, and binds the literal ready. Standalone entity search retains `(A1,ready)` and `(B2,ready)` because the metric's sku rule is not automatically applied to that endpoint. `eq()` or `EQ` dispatches to the same equality branch; `eq(status,ready)` and `" eq "` are non-copyable unsupported tokens. These are condition aliases, not a string expression language.
50
+
51
+ **Composed profile-constrained query.** Send the same Filter body to `POST /api/tasks/{taskId}/metrics/{metricId}/key/total/search`, with the existing COUNT metric above. The inner source already contains the sku=A1 eligibility rule; the outer request filter adds status=ready exactly once. The returned `items` contain only `(A1,ready)` and the filtered `totalCount` is 1 for these assumptions. Request narrowing does not recompute or overwrite the metric's previously calculated total facet of 2. This result follows from filtering the profile-constrained source, not from an automatic conversion between languages. Missing `filters` leaves that source rule unchanged; missing an optional profile `where` does not create one from the request. Direct V2 QUERY-metric filtering additionally needs a real source alias `_`, and cursor transport limits remain at the [request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md).
52
+
53
+ **Rejected cross-language forms.** A Builder `{op,data}` node pasted under request `filters` lacks `condition` and can be skipped, leaving no intended request narrowing; it is not fail-closed recovery. A Filter `{condition,leftOp,rightOp}` node under profile `where` does not become a typed Builder leaf. Rewrite with the correctly placed shape above rather than deleting the intended constraint. Filter rightOp `"@p0"` binds those literal characters, not a named variable; use an actual request literal or the host-specific [Builder binding contract](query-dsl.QUERY-DSL.operands.query-arguments.md), never generated parameter names. `valueType: NUMBER` is not an API Filter cast option: the [operand contract](query-dsl.QUERY-DSL.operands.md) owns Builder casts, while [Filter predicates](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-predicates.md) explains automatic, serializer-sensitive casts. Nested request groups belong to [Filter composition](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md), not Builder data arrays.
54
+
55
+ This section is served as 5 separate resources. Read the one you need:
56
+
57
+ - [Filter quick reference](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-quick-reference.md) — Purpose: narrow, sort and page stored rows in an HTTP search request (entity data search, metric detail search).
58
+ - [Filter predicates](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-predicates.md) — Condition dispatch lowercases names but does not trim whitespace.
59
+ - [Filter fields](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md) — Use a bare request field such as sku or __status; compiler emits _.sku/_.__status.
60
+ - [Filter composition](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md) — This request-side composition is the companion to the canonical Builder condition tree, not another profile predicate format.
61
+ - [Filter request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md) — Exact plural member is filters, not filter.
@@ -0,0 +1,25 @@
1
+ # The Query DSL
2
+
3
+ Canonical resource: `hexasync://docs/query-dsl/QUERY-DSL`.
4
+
5
+ There are **two separate languages**, not one language with interchangeable hosts:
6
+
7
+ - **Builder DSL** is a profile-authored JSON/YAML `{op, data}` tree with typed operand objects. Metrics, query transformations and query steps compile it to PostgreSQL.
8
+ - **Filter DSL** is an API-request `{condition, leftOp, rightOp}` tree that API clients send in search request bodies; it is not a Builder executor.
9
+
10
+ Example UUIDs denote assumed existing profile entities and must be replaced with actual identities. Predicate fragments belong at the host path shown in the capability matrix, not at the profile root.
11
+
12
+ This page is served as 12 separate resources. Read the one you need:
13
+
14
+ - [Quick reference: syntax, variants and how to choose](query-dsl.QUERY-DSL.quick-reference-syntax-variants-and-how-to-choose.md) — This section is the compact authoring contract for every Builder component and property.
15
+ - [Where it is used](query-dsl.QUERY-DSL.where-it-is-used.md) — This is the canonical capability matrix.
16
+ - [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) — Builder strict mode is enabled by QUERY_SINGLE/QUERY_MANY steps and transformations, not by an authored strict option.
17
+ - [The shape](query-dsl.QUERY-DSL.the-shape.md) — Builder is parsed JSON/YAML, never a tokenized string expression.
18
+ - [Operands](query-dsl.QUERY-DSL.operands.md) — Builder operands below are typed objects.
19
+ - [Operators](query-dsl.QUERY-DSL.operators.md) — Builder tokens are uppercase in canonical authoring; runtime uppercases family selection.
20
+ - [Filter DSL language contract](query-dsl.QUERY-DSL.filter-dsl-language-contract.md) — Filter is the separate language under API request filters, including dashboard entity/metric data search bodies.
21
+ - [Troubleshooting and canonical references](query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md) — Query steps/transforms require at least one select entry.
22
+ - [Best practice](query-dsl.QUERY-DSL.best-practice.md) — The Patterns and anti-patterns list in the quick reference is the canonical checklist.
23
+ - [When to use](query-dsl.QUERY-DSL.when-to-use.md) — Pick something else when the condition is evaluated in memory against an item rather than in SQL — use Validations or a branching step such as IF.
24
+ - [Sensible configuration](query-dsl.QUERY-DSL.sensible-configuration.md) — One explicit source with the conventional _ alias, an explicit projection of only the needed columns, and a selective predicate whose value comes from arguments through ARG (bound as a parameter, never spliced into SQL).
25
+ - [Property reference](query-dsl.QUERY-DSL.property-reference.md) — Each Builder member below is shown in a complete QUERY_MANY step (copyable as a steps: entry).
@@ -0,0 +1,61 @@
1
+ > Part of [The Query DSL](query-dsl.QUERY-DSL.md).
2
+
3
+ ## Operands
4
+
5
+ Builder operands below are typed objects. API Filter fields instead use a string at `filters.leftOp` (or a nested leaf at `filters.rightOp[]`), not `{type: FIELD, field: ...}`. Their independent grammar, fixed `_` source prefix, optional host allowlist and correction examples are owned by [Filter fields](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md). A Builder `FIELD` such as `p.sku` preserves the authored source alias; a Filter string `p.sku` does not.
6
+
7
+ Operands belong at a Builder leaf’s `data.leftOp`/`data.rightOp`, or at `data.rightOp.from`/`to` for [BETWEEN](query-dsl.QUERY-DSL.operators.between-takes-a-range-not-an-operand.md). They are not projection entries, whole query strings, or API Filter operands. Author an explicit uppercase `type`; runtime uppercases its value and defaults only an absent type to FIELD. Member names (`field`, `val`, `vals`, `key`, `sql`, `valueType`, `format`) remain exact-case. An unknown type fails with “Unsupported operand type”, rather than falling back to FIELD. Each canonical schema branch is closed: do not add members from a different branch. FIELD alone additionally permits optional string `format` for [relative time](query-dsl.QUERY-DSL.operators.last_int_unit-needs-format-on-the-left.md); FIELD/VALUE/PARAM/ARG permit `valueType` as described below.
8
+
9
+ **Availability is host-owned.** FIELD and generated VALUE bindings do not need an incoming argument dictionary. PARAM/ARG reference values already supplied by a host: a query transformation overlays resolved metadata arguments on scalarized original item fields; a query step supplies parsed root arguments, not an implicit item bag; a QUERY metric supplies `metadata.params`. Ordinary metrics and status/removal/indexer conditions have no generic authored argument source. Writer-owned transition names are not a portable authoring API. See the [consumer capability matrix](query-dsl.QUERY-DSL.where-it-is-used.md) before moving a condition between these hosts. The [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component), [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope), and [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) own the shared envelope, context and strictness contracts. Dashboard API filtering uses the separate [Filter DSL language contract](query-dsl.QUERY-DSL.filter-dsl-language-contract.md), not these typed operand objects.
10
+
11
+ | Kind and required authored members | Emission and limits |
12
+ | --- | --- |
13
+ | FIELD: authored `type: FIELD`, `field:string` | Authored schema requires type; runtime absent type defaults FIELD for compatibility. Identifier is not a value parameter; strict grammar above, permissive verbatim emission. |
14
+ | VALUE: authored `type: VALUE`, at least one of `val` scalar or `vals` scalar array | Authored scalar elements are string/number/boolean. Empty VALUE without either member fails “VALUE type must contain either 'val' or 'vals'” and is excluded by IntelliSense. Generated parameters; VALUE checks vals first, so both present selects vals. Canonical examples use only one. Runtime can bind null, but null comparisons are not IS NULL and malformed/empty lists can produce SQL errors. |
15
+ | PARAM: authored `type: PARAM`, at least one of `val:string` or `vals:string[]` | Scalar emits `@name`; val takes precedence over vals. Leading @ characters normalize to one output @. No value is created or existence checked by this operand. PARAM vals is a list of **names**, not an array value in one named binding: it emits a tuple of `lower(@name)` entries (plus applicable element casts), even when caseSensitive is true. This is not a general typed numeric/list binding or a text ARRAY. |
16
+ | ARG: `key:string` | Named binding operationally like PARAM, with additional transformation declaration/list checks. No automatic checks/coercion in query steps. |
17
+ | QUERY: `sql:string` | Obsolete verbatim SQL; strict query hosts reject it. Recognition/migration only, never a safe runnable example. |
18
+
19
+ `valueType` is an optional predicate SQL cast separate from argument coercion. Default STRING emits no cast; UUID→`::UUID`, BOOLEAN→`::BOOLEAN`, NUMBER→`::NUMERIC`, INT8→`::INT8`, INT4→`::INT4`, DECIMAL→`::DECIMAL`, VARCHAR→`::VARCHAR`, TEXT→`::TEXT`, DATETIME→`::TIMESTAMPTZ`. Runtime dispatch is case-insensitive; unknown valueType adds no cast rather than performing validation. FIELD/VALUE/PARAM/ARG formatters compute a cast, but the consuming predicate decides whether to append it: scalar comparisons, BETWEEN and REGEX use scalar right casts; [text predicates ignore scalar right casts](query-dsl.QUERY-DSL.operators.text-matching-six-predicates-scalar-patterns-and-value-lists.md). Bitwise and LAST apply their own fixed casts. VALUE/PARAM lists retain per-element formatter casts, and predicates that append an outer cast can create an invalid tuple cast; do not infer universal list-cast support.
20
+
21
+ FIELD/VALUE equality binds the literal independently of item arguments. PARAM/ARG equality instead refers to an existing named binding; absence fails at database binding rather than becoming a literal. A legacy raw column expression has a safe FIELD replacement only when it is truly a column identifier, not an arbitrary function/expression.
22
+
23
+ The minimal [FIELD/VALUE tree](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md) is the safe typed replacement for a raw equality expression. A FIELD must name an actual column: strict syntax accepts `_.skuu`, but does not turn that misspelling into sku, so query execution can fail with column-not-found. A missing VALUE member is malformed, not a null literal.
24
+
25
+ Minimal operand comparison at a supported Builder `where` path, assuming real text column sku and eligible rows A1/B2:
26
+
27
+ ```yaml
28
+ op: '='
29
+ data:
30
+ leftOp: { type: FIELD, field: _.sku }
31
+ rightOp: { type: VALUE, val: A1 }
32
+ ```
33
+
34
+ In a fresh build without earlier literals, this produces `_.sku = @p_00001` with A1 in the generated binding. FIELD supplies the column SQL fragment while VALUE supplies data, so only A1 qualifies. At a query step with root `arguments: {wantedSku: A1}`, replace only the right operand with `{type: PARAM, val: wantedSku}`: the predicate becomes `_.sku = @wantedSku`, and no literal binding is minted. `{type: ARG, key: wantedSku}` emits the same named reference; a transform must declare wantedSku (unless whole-block keys are unknowable), whereas a step does not gain transform declaration checking. The [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md) supplies the required source/projection and determines whether the effect is a returned row/list, enrichment or a metric count; the operand itself does not return a boolean to the workflow.
35
+
36
+ **Rejected legacy input — recognition only:** an old raw operand `{type: QUERY, sql: "_.sku"}` must become `{type: FIELD, field: _.sku}` when it really denotes that column. An old raw literal `{type: QUERY, sql: "'A1'"}` must become `{type: VALUE, val: A1}`; raw `@wantedSku` becomes PARAM, or ARG at a declaration-aware transformation. Use these typed operands inside the leaf above, never copy the raw forms as executable configuration. A raw function/expression such as `lower(_.sku)` has no universal FIELD replacement: do not place the function text in FIELD to bypass strict validation. For an intentional case-insensitive comparison use the supported [case behavior](query-dsl.QUERY-DSL.operators.text-matching-six-predicates-scalar-patterns-and-value-lists.md) only when its lowering semantics match the requirement. Otherwise the typed replacement is not established. Permissive FIELD emits unchecked text, so permissive acceptance of expression text is neither identifier validation nor a safe alternative.
37
+
38
+ Composed query transformation `metadata` fragment, assuming the original item is `{sku: A1, active: true, wantedSku: OLD}` and the resolved source has sku/active columns:
39
+
40
+ ```yaml
41
+ arguments:
42
+ wantedSku: '{{ sku }}'
43
+ where:
44
+ op: AND
45
+ data:
46
+ - op: '='
47
+ data:
48
+ leftOp: { type: FIELD, field: _.sku }
49
+ rightOp: { type: ARG, key: wantedSku }
50
+ - op: '='
51
+ data:
52
+ leftOp: { type: FIELD, field: _.active }
53
+ rightOp: { type: PARAM, val: active }
54
+ ```
55
+
56
+ The declared wantedSku replaces OLD with A1; ARG refers to that merged binding, while PARAM active reads the scalar original bool. Active A1 rows qualify, B2 or inactive A1 rows do not. Neither operand invents a binding or is an identifier. [Query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md) owns declaration/coercion/precedence, and [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md) owns required source/projection and transformation results. Raw QUERY is explicitly rejected on this strict path; use these typed forms only when the original raw expression really denotes a column or host value, not as a general replacement for arbitrary SQL functions.
57
+
58
+ This section is served as 2 separate resources. Read the one you need:
59
+
60
+ - [Value binding and casts](query-dsl.QUERY-DSL.operands.value-binding-and-casts.md) — Each query compilation starts a fresh set of generated bindings.
61
+ - [Query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md) — Query transformations own metadata.arguments; query steps own root arguments, never data.arguments.
@@ -0,0 +1,80 @@
1
+ > Part of [The Query DSL](query-dsl.QUERY-DSL.md) › [Operands](query-dsl.QUERY-DSL.operands.md).
2
+
3
+ ### Query arguments
4
+
5
+ Query transformations own `metadata.arguments`; query steps own root `arguments`, never `data.arguments`. Omitted/null arguments add no declared bindings. [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) owns step placement, [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope) owns available expression roots, and [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) owns strict query validation. See [map arguments](hexasync://docs/steps/STEP-ENVELOPE/arguments-and-routing#map-arguments), [ordered arguments](hexasync://docs/steps/STEP-ENVELOPE/arguments-and-routing#ordered-arguments) and [whole-block arguments](hexasync://docs/steps/STEP-ENVELOPE/arguments-and-routing#whole-block-arguments) for parser forms and timing. Multiple adjacent expression wrappers fall back to Scriban rather than becoming a sequence of JSONata queries; use the canonical [dialect classification](hexasync://docs/expressions/CONTEXT-AND-IO/dialect-classification-and-silent-scriban-fallback), not a second grammar in an operand.
6
+
7
+ QUERY_SINGLE/QUERY_MANY transformations check ARG references against map/ordered declarations while composing the query, before resolving per-item arguments; this covers `where` and every `joins[].where`. Missing declaration fails with “ARG operand references argument ... which is not declared in arguments.” PARAM instead emits a reference to the existing merged parameter bag: it requires neither declaration membership nor a value-existence check during compilation. Thus an item field can be available through PARAM yet rejected as an undeclared ARG. Neither operand creates a missing binding, names a column, or projects an argument in `select`.
8
+
9
+ Transform declared keys and ARG reference keys strip all leading `@` characters, preserve case, and compare case-sensitively; `wantedSku` and `wantedsku` are different names. Their normalized form must match `^[A-Za-z_][A-Za-z0-9_]{0,62}$`. A `__` prefix is forbidden, `limit`/`offset` are reserved case-insensitively, and lowercase `p_` followed by five or more digits is reserved. Rename such declarations to a business key such as `wantedSku`; these checks are not universal step argument rules. Whole-block argument strings have unknown keys at composition time, so only declaration membership is skipped: ARG reference grammar/reservation checks still run. Produced whole-block keys are normalized at merge time and rejected if they start with `__`, but the merger does not apply the full compose-time grammar/reserved-name checks to every produced key. Keep those keys valid and nonreserved too; a colliding generated binding still wins.
10
+
11
+ Minimal transform metadata declaration `arguments: {wantedSku: "{{ sku }}"}` plus `{type: ARG, key: wantedSku}` binds the original item sku. PARAM `val: sku` can read the base item without declaration. If original item contains wantedSku=OLD and declaration resolves wantedSku=NEW, the transform uses NEW because arguments overwrite scalarized item fields; generated VALUE params overwrite both. Nested item objects are available while expressions resolve, but the flat base SQL dictionary scalarizes nested/reference values to null. Step arguments resolve against step context instead and remain parser strings; declaring type/isList at the step does not materialize a typed list.
12
+
13
+ Composed typed list transform declaration (under metadata), used with IN/NOT_IN:
14
+
15
+ ```yaml
16
+ arguments:
17
+ - { index: 1, key: allowedSkus, expression: '["A1","B2"]', type: string, isList: true }
18
+ where:
19
+ op: IN
20
+ data:
21
+ leftOp: { type: FIELD, field: _.sku }
22
+ rightOp: { type: ARG, key: allowedSkus }
23
+ ```
24
+
25
+ Expected binding is a typed string list rather than JSON text: source sku A1/B2 matches, sku C3 does not. The enclosing transform must also supply the source/projection required by [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md). Ordered transform typing supports scalar elements only; nested objects/arrays and invalid conversions fail. Non-JSON scalar text is a singleton input. JSON-null elements drop; non-string blank elements coerce to null and drop, whereas empty-string elements remain in string lists. Blank whole input becomes an empty list. The input-element cap defaults to 1000, overridden only by a positive integer host environment `HEXASYNC_TRANSFORM_ARG_LIST_MAX`; it is checked before null elements drop and is not an authored query field. Declared list ARG references are allowed only under IN/NOT_IN, including join conditions; REGEX/text/scalar comparison list ARG fails before execution. This guard checks ARG, not PARAM: changing a list reference to PARAM bypasses that validation but does not make a scalar predicate support a list. Use ARG with membership or separate scalar predicates instead. Empty enumerable execution depends on the database-binding provider, not the argument parser; do not use it to infer safe destructive behavior. Prefer an explicit no-op branch before an empty list query.
26
+
27
+ The same name does not imply the same lookup source:
28
+
29
+ | Context/input | Transition | Effective binding or failure |
30
+ | --- | --- | --- |
31
+ | Transform item `{sku: A1, wantedSku: OLD}` and map wantedSku=`{{ sku }}` | Parse over original item, then overlay declared strings on scalar item bag | ARG wantedSku and PARAM wantedSku both read A1; PARAM sku reads base A1. ARG sku without a declaration fails compose-time even though PARAM sku is available. |
32
+ | Transform ordered wantedSku with type:string, isList:true and A1/B2 JSON text | Parse strings, then materialize list; IN references declared ARG | Binds a two-element list, not raw JSON text. Moving the same ARG to STARTS_WITH is rejected rather than cast into a pattern. |
33
+ | Step root `arguments: {wantedSku: A1}` and data where uses ARG wantedSku | Parse step context strings, then merge generated DSL values | Binds string A1; no original-item fallback or transform declaration membership check is introduced. A missing referenced parameter remains a consumer/database binding failure. |
34
+ | Step root `arguments: {p_00001: WRONG}` with first VALUE val:A1 in a fresh full build | Generated literal bag overlays root parser strings | The generated binding wins and compares A1, not WRONG. A transform declaration with this reserved name is rejected before that collision. |
35
+
36
+ Argument expression classification, ordered sibling visibility and whole-block JSONata remain owned by the [step envelope](hexasync://docs/steps/STEP-ENVELOPE/arguments-and-routing#ordered-arguments) and [dialect classifier](hexasync://docs/expressions/CONTEXT-AND-IO/dialect-classification-and-silent-scriban-fallback), not by ARG/PARAM. PARAM does not demand a declaration, but it also does not manufacture a missing value or convert a step's JSON text into a typed list. See [operand casts](query-dsl.QUERY-DSL.operands.value-binding-and-casts.md) for the independent SQL cast layer.
37
+
38
+ Composed transform metadata below assumes the enclosing task's SELF table has integer `quantity` and text `sku` columns, with rows `(A1,4)`, `(B2,5)`, `(C3,6)`. The current item is `{qty: 2}`. Place this metadata inside a [QUERY_MANY transformation](hexasync://docs/transformations/TRANSFORMATIONS/transformation-types/query_many--the-dsl-replacement-for-nested_sql):
39
+
40
+ ```yaml
41
+ from: { entityType: SELF, alias: _ }
42
+ select: [{ alias: _, field: sku }]
43
+ fieldName: qualifying
44
+ arguments:
45
+ - { index: 1, key: qty, expression: '5', type: integer }
46
+ where:
47
+ op: '>='
48
+ data:
49
+ leftOp: { type: FIELD, field: _.quantity }
50
+ rightOp: { type: ARG, key: qty }
51
+ ```
52
+
53
+ The declared parser string `"5"` becomes an integer binding and overrides base item qty=2. The clone retains its business field qty=2 and receives `qualifying` containing B2/C3 sku rows, with no promised row order: parameter merging does not mutate the item. PARAM `val: qty` would read the same integer5 because both operands consume the merged SQL bag. Remove the declaration and ARG fails composition; changing that now-undeclared reference to PARAM reads base qty=2 and admits all three rows instead. That is an explicit source change, not recovery preserving the threshold.
54
+
55
+ A corresponding root step uses the same threshold as a parser string, not as the transform's typed integer. Assume this task UUID resolves to the same table within the current profile; place the step in the selected workflow list:
56
+
57
+ ```yaml
58
+ key: READ
59
+ rootStep: true
60
+ displayType: QUERY_MANY
61
+ arguments:
62
+ - { index: 1, key: qty, expression: '5', type: integer }
63
+ data:
64
+ from: { entityType: TASK, entityId: '11111111-1111-4111-8111-111111111111', alias: _ }
65
+ select: [{ alias: _, field: sku }]
66
+ where:
67
+ op: '>='
68
+ data:
69
+ leftOp: { type: FIELD, field: _.quantity }
70
+ rightOp: { type: PARAM, val: qty, valueType: INT8 }
71
+ ```
72
+
73
+ The step ignores ordered `type: integer`; INT8 is the explicit predicate cast converting its `"5"` binding. [QUERY_MANY](steps.QUERY_MANY.md#contract) publishes `_outputs.READ` with `count: 2` and rows containing B2/C3, not a `qualifying` item property. No match publishes `{rows: [], count: 0}`. Removing root arguments does not make an unrelated step-context qty=2 a SQL fallback: the named binding is missing and execution fails. ARG `key: qty` can reference the same existing step string without adding transform declaration validation. Moving arguments under data does not bind it. A step ordered `isList: true` likewise does not turn `'["A1","B2"]'` into a list; use literal VALUE vals or several explicitly bound scalar PARAM names for [membership](query-dsl.QUERY-DSL.operators.membership-predicates.md).
74
+
75
+ **Collision boundary, not a recommended declaration:** in a fresh full step build, root `p_00001: WRONG` is overwritten when the first literal VALUE generates p_00001=A1, so a reference to that binding sees A1. Do not author generated names or depend on their numbering. The analogous map/ordered transform declaration is rejected as reserved; whole-block output or original item names may still collide because their keys are not all compose-validated. The final generated-parameter overlay always wins in these query executors.
76
+
77
+ Dashboard onboarding workflow rendering is a separate surface: its map argument scratchpad and Liquid/JSONata rendering are not query-transform binding, and its step-kind schema has no QUERY_SINGLE/QUERY_MANY execution kind. Use the worker workflow/query contracts above rather than treating frontend argument rendering as proof that ARG or PARAM can execute there.
78
+
79
+
80
+
@@ -0,0 +1,54 @@
1
+ > Part of [The Query DSL](query-dsl.QUERY-DSL.md) › [Operands](query-dsl.QUERY-DSL.operands.md).
2
+
3
+ ### Value binding and casts
4
+
5
+ Each query compilation starts a fresh set of generated bindings. Each literal VALUE adds one: binding names are `p_00001`, `p_00002`, ... and SQL uses `@p_00001`, `@p_00002`, .... Five digits is a minimum width, not a limit. A literal `vals` list adds one binding per element; FIELD identifiers and PARAM/ARG references add none. Literal-bearing join predicates are compiled before WHERE and take the first names. These are generated names, not profile placeholders: never reference `@p_00001` from an operand, and never name your own arguments `p_` followed by digits.
6
+
7
+ The separate [Filter DSL](query-dsl.QUERY-DSL.filter-dsl-language-contract.md) starts an isolated scalar request binding at `@p0` when its dictionary is empty and no position prefix is supplied. It does not use this Builder counter or Builder `valueType`. A combined Builder/request integration supplies a Filter prefix, so its request binding can instead be `@pdsl__p0`; do not assume every Filter host emits bare `@p0`.
8
+
9
+ | Operand member at `data.leftOp` / `data.rightOp`, or BETWEEN endpoint | Binding and cast contract |
10
+ | --- | --- |
11
+ | VALUE `val`: string, number or boolean | One generated scalar binding; no literal interpolation. `valueType` selects SQL conversion, not a change to the stored literal. |
12
+ | VALUE `vals`: scalar array | One generated binding per element. With `valueType: NUMBER`, IN emits `(@p_00001::NUMERIC, @p_00002::NUMERIC)`, not one bound array or one outer tuple cast. |
13
+ | `valueType`: optional STRING/NUMBER/BOOLEAN/UUID/INT8/INT4/DECIMAL/VARCHAR/TEXT/DATETIME | Default STRING has no SQL cast. The [operand cast mapping](query-dsl.QUERY-DSL.operands.md) applies only where the consuming predicate appends it; unsupported cast names are excluded by the authored schema even though runtime adds no cast. |
14
+
15
+ With the default `caseSensitive: true`, literal JSON/YAML scalar values retain their scalar types when bound. False instead stringifies and lowercases VALUE scalars/elements; it is not a numeric conversion switch. [Text matching](query-dsl.QUERY-DSL.operators.text-matching-six-predicates-scalar-patterns-and-value-lists.md) owns wildcard reformatting, extra minting and scalar-right cast omissions. [Query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md) owns PARAM/ARG sources, list coercion and binding precedence; a SQL cast does not supply a missing parameter.
16
+
17
+ An isolated scalar `VALUE val: 12, valueType: NUMBER` in `_.price >= ...` emits `_.price >= @p_00001::NUMERIC` and binds `{p_00001: 12}`. Literal `VALUE vals: [A1, B2]` in IN emits `IN (@p_00001, @p_00002)` with `{p_00001: A1, p_00002: B2}` on a fresh builder. These are explanatory SQL/dictionary outputs, not profile configuration.
18
+
19
+ Minimal cast-bearing leaf, under a supported `where` path:
20
+
21
+ ```yaml
22
+ op: '>='
23
+ data:
24
+ leftOp: { type: FIELD, field: _.price }
25
+ rightOp: { type: VALUE, val: 12, valueType: NUMBER }
26
+ ```
27
+
28
+ Assume real numeric price values 10, 12 and 15, and place this fragment at query-step `data.where` or transformation `metadata.where` alongside a valid [source and projection](query-dsl.QUERY-DSL.the-shape.query-envelope.md). A single full Build with no earlier literal-bearing join binds numeric 12 and appends `::NUMERIC`, so prices 12 and 15 qualify, not 10. The step returns matching row(s); a transformation consumes them through its SINGLE/MANY result contract. At an ordinary COUNT metric's `metadata.where`, the same leaf goes through direct WHERE compilation and contributes a count subject to the handler's own guards, not projected rows. An isolated fresh direct call gives the same leaf SQL, but later calls continue its counter as shown above.
29
+
30
+ Composed literal scalar/list condition, with real price/sku columns:
31
+
32
+ ```yaml
33
+ op: AND
34
+ data:
35
+ - op: '>='
36
+ data:
37
+ leftOp: { type: FIELD, field: _.price }
38
+ rightOp: { type: VALUE, val: 12, valueType: NUMBER }
39
+ - op: IN
40
+ data:
41
+ leftOp: { type: FIELD, field: _.sku }
42
+ rightOp: { type: VALUE, vals: [A1, B2] }
43
+ ```
44
+
45
+ At the same full-Build query step/transform paths, with no earlier literal-bearing joins, the complete tree emits `((_.price >= @p_00001::NUMERIC) AND (_.sku IN (@p_00002, @p_00003)))` inside the host WHERE wrapper. The binding bag is `{p_00001: 12, p_00002: A1, p_00003: B2}`. Thus price 15 / sku A1 qualifies, price 10 / sku A1 and price 15 / sku C3 do not. Compiling this entire tree directly on a fresh builder gives the same inner predicate and bag; compiling it after another literal advances all three names without changing its meaning. Traversal order and one mint per list element explain the numbering. A direct metric counts qualifying eligible rows; a direct indexing consumer uses the predicate to bound affected rows rather than returning a projected list. [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md) and [tree host contract](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md) own those result/context differences.
46
+
47
+ **Cast boundary, not coercion or recovery:** changing the minimal right literal to `{type: VALUE, val: twelve, valueType: NUMBER}` still binds the text `twelve`; `::NUMERIC` can fail at database conversion. Correct the input to numeric 12 rather than dropping the cast or predicate. Unknown `valueType: MONEY` is non-copyable authored syntax: use a supported type such as NUMBER only if its numeric semantics are actually intended; runtime's absent cast is not validation or an automatic correction.
48
+
49
+ [Bitwise predicates](query-dsl.QUERY-DSL.operators.bitwise-predicates.md) impose `::int8` on both operands instead of using their requested `valueType`. For example, `HAS_BITS` with FIELD `_.flags` and VALUE `val: 3, valueType: NUMBER` emits `(_.flags::int8 & @p_00001::int8) > 0` on a fresh builder, not `::NUMERIC`; flags 1 shares a positive bit and qualifies, flags 4 does not. Null produces SQL unknown; invalid integer text or overflow can fail conversion, not fall back to zero.
50
+
51
+ A malformed `{type: VALUE, valueType: NUMBER}` fails with `VALUE type must contain either 'val' or 'vals'.` A scalar `val` is not an IN tuple: use nonempty scalar `vals` for literal membership. Empty `vals: []` emits `IN ()`, not an always-false guard; null elements can change NOT_IN to SQL unknown. Use the [membership boundary](query-dsl.QUERY-DSL.operators.membership-predicates.md) and explicit [null predicates](query-dsl.QUERY-DSL.operators.null-predicates-are-unary.md), or deliberately skip an empty-input query. Do not reuse list operands with scalar equality: a list formatter already adds per-element casts and scalar predicates may append an invalid outer tuple cast.
52
+
53
+ Generated parameter numbering is not persisted profile state or a dashboard control. The dashboard submits the separate Filter tree; SQL compilation/binding occurs server-side. Entry timing and input availability remain owned by [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component), [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope) and [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md).
54
+