@beehexa/hexasync-ai-toolkit 2611.14.1 → 2612.3.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 (367) hide show
  1. package/.claude-plugin/marketplace.json +2 -2
  2. package/.claude-plugin/plugin.json +2 -2
  3. package/.codex-plugin/plugin.json +3 -4
  4. package/.cursor-plugin/plugin.json +3 -4
  5. package/README.md +5 -74
  6. package/dist/cli.js +15 -2070
  7. package/gemini-extension.json +2 -11
  8. package/openclaw.extension.mjs +2 -3
  9. package/openclaw.plugin.json +2 -2
  10. package/package.json +3 -4
  11. package/plugin.json +3 -4
  12. package/skills/hexasync-connections/SKILL.md +10 -25
  13. package/skills/hexasync-connections/references/INDEX.md +4 -4
  14. package/skills/hexasync-connections/references/INSTALL.md +5 -48
  15. package/skills/hexasync-connections/references/connections.CONNECTIONS.api-recovery.md +1 -1
  16. package/skills/hexasync-connections/references/connections.CONNECTIONS.captured-call-and-authenticated-composition.md +2 -2
  17. package/skills/hexasync-connections/references/connections.CONNECTIONS.framework-understood-connection-option-catalogue.md +2 -2
  18. package/skills/hexasync-connections/references/connections.CONNECTIONS.how-a-step-finds-its-connection.md +2 -2
  19. package/skills/hexasync-connections/references/connections.CONNECTIONS.md +1 -1
  20. package/skills/hexasync-connections/references/connections.CONNECTIONS.one-connection-one-credential-scope.md +2 -2
  21. package/skills/hexasync-connections/references/connections.CONNECTIONS.related.md +5 -5
  22. package/skills/hexasync-connections/references/connections.CONNECTIONS.the-self-connector.md +1 -1
  23. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
  24. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +2 -2
  25. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.fail.md +1 -1
  26. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +2 -2
  27. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.md +1 -1
  28. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +3 -3
  29. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +1 -1
  30. package/skills/hexasync-error-handling/SKILL.md +9 -16
  31. package/skills/hexasync-error-handling/references/INDEX.md +1 -1
  32. package/skills/hexasync-error-handling/references/INSTALL.md +5 -48
  33. package/skills/hexasync-error-handling/references/routing.NEXT.md +10 -10
  34. package/skills/hexasync-error-handling/references/steps.EXCEPTION.md +5 -5
  35. package/skills/hexasync-error-handling/references/steps.Error.md +8 -8
  36. package/skills/hexasync-expressions/SKILL.md +10 -25
  37. package/skills/hexasync-expressions/references/INDEX.md +3 -3
  38. package/skills/hexasync-expressions/references/INSTALL.md +5 -48
  39. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.arguments--computed-before-the-step-runs.md +1 -1
  40. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.dialect-classification-and-silent-scriban-fallback.md +2 -2
  41. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.exact-mutation-timeline.md +4 -4
  42. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.executor-results-are-not-downstream-values.md +2 -2
  43. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.graceful-failures-and-run-errors.md +1 -1
  44. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-call-site-scope-and-bindings.md +17 -17
  45. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-engine-pinned-version-and-restrictions.md +1 -1
  46. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonpath-expressions.md +2 -2
  47. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.related.md +1 -1
  48. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.runtime-scope.md +10 -10
  49. package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.host-qualified-authoring-examples.md +2 -2
  50. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
  51. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +2 -2
  52. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.fail.md +1 -1
  53. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +2 -2
  54. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.md +1 -1
  55. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +3 -3
  56. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +1 -1
  57. package/skills/hexasync-expressions/references/steps.JSONata.md +8 -8
  58. package/skills/hexasync-expressions/references/steps.Liquid.md +2 -2
  59. package/skills/hexasync-expressions/references/steps.Scriban.md +9 -9
  60. package/skills/hexasync-field-mapping/SKILL.md +13 -19
  61. package/skills/hexasync-field-mapping/references/INDEX.md +2 -2
  62. package/skills/hexasync-field-mapping/references/INSTALL.md +5 -48
  63. package/skills/hexasync-field-mapping/references/steps.SAVE_TASK_DATA.md +19 -19
  64. package/skills/hexasync-field-mapping/references/tables.TABLES.best-practices.md +1 -1
  65. package/skills/hexasync-field-mapping/references/tables.TABLES.fields.md +1 -1
  66. package/skills/hexasync-field-mapping/references/tables.TABLES.md +1 -1
  67. package/skills/hexasync-field-mapping/references/tables.TABLES.minimal-declaration-and-composed-usage.md +1 -1
  68. package/skills/hexasync-field-mapping/references/tables.TABLES.related.md +5 -5
  69. package/skills/hexasync-field-mapping/references/tables.TABLES.the-system-columns-are-not-declared-here.md +1 -1
  70. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +1 -1
  71. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.related.md +6 -6
  72. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +1 -1
  73. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +1 -1
  74. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +2 -2
  75. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +4 -4
  76. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +1 -1
  77. package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.when-to-use.md +1 -1
  78. package/skills/hexasync-metrics-reports/SKILL.md +9 -16
  79. package/skills/hexasync-metrics-reports/references/INDEX.md +1 -1
  80. package/skills/hexasync-metrics-reports/references/INSTALL.md +5 -48
  81. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.common-metadata-properties.md +1 -1
  82. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-configuration.md +1 -1
  83. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-kinds-reference.md +2 -2
  84. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.related.md +4 -4
  85. package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.when-to-use.md +1 -1
  86. package/skills/hexasync-metrics-reports/references/reports.REPORTS.md +4 -4
  87. package/skills/hexasync-metrics-reports/references/steps.METRIC_QUERY.md +2 -2
  88. package/skills/hexasync-metrics-reports/references/steps.QUERY_METRICS.md +8 -8
  89. package/skills/hexasync-pullers/SKILL.md +11 -18
  90. package/skills/hexasync-pullers/references/INDEX.md +3 -3
  91. package/skills/hexasync-pullers/references/INSTALL.md +5 -48
  92. package/skills/hexasync-pullers/references/pullers.PULLERS.api-error-classification.md +3 -3
  93. package/skills/hexasync-pullers/references/pullers.PULLERS.entity-classification.md +1 -1
  94. package/skills/hexasync-pullers/references/pullers.PULLERS.entry-context-and-transitions.md +1 -1
  95. package/skills/hexasync-pullers/references/pullers.PULLERS.overview.md +2 -2
  96. package/skills/hexasync-pullers/references/pullers.PULLERS.page-termination-and-the-four-platform-guards.md +2 -2
  97. package/skills/hexasync-pullers/references/pullers.PULLERS.persistence-and-safe-full-pull-removal.md +2 -2
  98. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-afterpullsteps.md +1 -1
  99. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-beforepullsteps.md +1 -1
  100. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-contracts.md +1 -1
  101. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-onerrorsteps.md +2 -2
  102. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-pullsteps.md +1 -1
  103. package/skills/hexasync-pullers/references/pullers.PULLERS.placement-steps.md +1 -1
  104. package/skills/hexasync-pullers/references/pullers.PULLERS.property-reference.md +6 -6
  105. package/skills/hexasync-pullers/references/pullers.PULLERS.puller-completeness-contract.md +6 -6
  106. package/skills/hexasync-pullers/references/pullers.PULLERS.related.md +7 -7
  107. package/skills/hexasync-pullers/references/pullers.PULLERS.the-resume-computation.md +2 -2
  108. package/skills/hexasync-pullers/references/pullers.PULLERS.the-webhook-vs-puller-division.md +1 -1
  109. package/skills/hexasync-pullers/references/pullers.PULLERS.two-puller-host-modes-not-two-workflow-constructs.md +2 -2
  110. package/skills/hexasync-pullers/references/pullers.PULLERS.watermark-trustworthiness.md +1 -1
  111. package/skills/hexasync-pullers/references/pullers.PULLERS.worked-example-new-kind-snapshot-pull.md +2 -2
  112. package/skills/hexasync-pullers/references/steps.PULLER.md +8 -8
  113. package/skills/hexasync-pushers/SKILL.md +20 -22
  114. package/skills/hexasync-pushers/references/INDEX.md +2 -2
  115. package/skills/hexasync-pushers/references/INSTALL.md +5 -48
  116. package/skills/hexasync-pushers/references/pushers.PUSHERS.association-transform-routing.md +1 -1
  117. package/skills/hexasync-pushers/references/pushers.PUSHERS.best-practices.md +3 -3
  118. package/skills/hexasync-pushers/references/pushers.PUSHERS.expression-roots-differ-from-a-puller.md +1 -1
  119. package/skills/hexasync-pushers/references/pushers.PUSHERS.fields.md +4 -4
  120. package/skills/hexasync-pushers/references/pushers.PUSHERS.four-step-phases.md +1 -1
  121. package/skills/hexasync-pushers/references/pushers.PUSHERS.indirect-pushers.md +2 -2
  122. package/skills/hexasync-pushers/references/pushers.PUSHERS.md +1 -1
  123. package/skills/hexasync-pushers/references/pushers.PUSHERS.minimal-configuration.md +2 -2
  124. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-beforepushsteps.md +2 -2
  125. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-contracts.md +3 -3
  126. package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-finalsteps.md +2 -2
  127. package/skills/hexasync-pushers/references/pushers.PUSHERS.related.md +6 -6
  128. package/skills/hexasync-pushers/references/pushers.PUSHERS.resolution-ordering-locks-and-retries.md +4 -4
  129. package/skills/hexasync-pushers/references/pushers.PUSHERS.worked-example-direct-push-with-dependency.md +1 -1
  130. package/skills/hexasync-pushers/references/steps.PUSHER.md +8 -8
  131. package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_STATUS.md +14 -14
  132. package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_SYNC_PROCESS.md +13 -13
  133. package/skills/hexasync-query-dsl/SKILL.md +13 -17
  134. package/skills/hexasync-query-dsl/references/INDEX.md +1 -1
  135. package/skills/hexasync-query-dsl/references/INSTALL.md +5 -48
  136. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.best-practice.md +1 -1
  137. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md +2 -2
  138. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md +1 -1
  139. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-predicates.md +1 -1
  140. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md +2 -2
  141. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.md +2 -2
  142. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.md +1 -1
  143. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.query-arguments.md +3 -3
  144. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.value-binding-and-casts.md +1 -1
  145. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.between-takes-a-range-not-an-operand.md +1 -1
  146. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.bitwise-predicates.md +4 -4
  147. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.last_int_unit-needs-format-on-the-left.md +3 -3
  148. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.membership-predicates.md +1 -1
  149. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.null-predicates-are-unary.md +5 -5
  150. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.regex-predicates-complete-scalar-postgresql-patterns.md +2 -2
  151. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.text-matching-six-predicates-scalar-patterns-and-value-lists.md +2 -2
  152. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.verbatim-scalar-comparisons.md +2 -2
  153. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md +4 -4
  154. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md +1 -1
  155. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.grouping-precedence-and-exact-parentheses.md +2 -2
  156. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.join-types.md +1 -1
  157. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.query-envelope.md +3 -3
  158. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md +1 -1
  159. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.when-to-use.md +1 -1
  160. package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.where-it-is-used.md +7 -7
  161. package/skills/hexasync-query-dsl/references/steps.QUERY_MANY.md +9 -9
  162. package/skills/hexasync-query-dsl/references/steps.QUERY_SINGLE.md +9 -9
  163. package/skills/hexasync-query-dsl/references/steps.SQL.md +12 -12
  164. package/skills/hexasync-query-dsl/references/steps.SQL_PROXY.md +9 -9
  165. package/skills/hexasync-startup-tasks-scheduling/SKILL.md +9 -16
  166. package/skills/hexasync-startup-tasks-scheduling/references/INDEX.md +3 -3
  167. package/skills/hexasync-startup-tasks-scheduling/references/INSTALL.md +5 -48
  168. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.legacy-target-tasks.md +3 -3
  169. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.metric-defaults.md +1 -1
  170. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.related.md +5 -5
  171. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.scheduler-metadata.md +6 -6
  172. package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.when-to-use.md +2 -2
  173. package/skills/hexasync-startup-tasks-scheduling/references/steps.ENQUEUER.md +9 -9
  174. package/skills/hexasync-steps-api-http/SKILL.md +20 -27
  175. package/skills/hexasync-steps-api-http/references/INDEX.md +4 -4
  176. package/skills/hexasync-steps-api-http/references/INSTALL.md +5 -48
  177. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
  178. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +2 -2
  179. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.fail.md +1 -1
  180. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +2 -2
  181. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.md +1 -1
  182. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +3 -3
  183. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +1 -1
  184. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.best-practices.md +1 -1
  185. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.execution-order-and-shared-values.md +1 -1
  186. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.md +1 -1
  187. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.parsejson-boundary.md +2 -2
  188. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.related.md +1 -1
  189. package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.same-name-different-placement-grammars.md +4 -4
  190. package/skills/hexasync-steps-api-http/references/routing.NEXT.md +7 -7
  191. package/skills/hexasync-steps-api-http/references/steps.API.api-pagination.md +1 -1
  192. package/skills/hexasync-steps-api-http/references/steps.API.contract.md +2 -2
  193. package/skills/hexasync-steps-api-http/references/steps.API.failure-handling.md +2 -2
  194. package/skills/hexasync-steps-api-http/references/steps.API.fields.md +1 -1
  195. package/skills/hexasync-steps-api-http/references/steps.API.related.md +4 -4
  196. package/skills/hexasync-steps-api-http/references/steps.INDEX.md +90 -90
  197. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE._history--the-per-step-occurrence-ring.md +1 -1
  198. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.arguments-and-routing.md +2 -2
  199. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.best-practices.md +1 -1
  200. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.one-canonical-workflow-component.md +16 -16
  201. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.recovery-bypasses-and-connector-restart.md +1 -1
  202. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.related.md +1 -1
  203. package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.shape.md +4 -4
  204. package/skills/hexasync-steps-control-data/SKILL.md +24 -30
  205. package/skills/hexasync-steps-control-data/references/INDEX.md +3 -3
  206. package/skills/hexasync-steps-control-data/references/INSTALL.md +5 -48
  207. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
  208. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +2 -2
  209. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.fail.md +1 -1
  210. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +2 -2
  211. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.md +1 -1
  212. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +3 -3
  213. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +1 -1
  214. package/skills/hexasync-steps-control-data/references/steps.BASE64_TO_MIME_TYPE.md +3 -3
  215. package/skills/hexasync-steps-control-data/references/steps.Begin.md +3 -3
  216. package/skills/hexasync-steps-control-data/references/steps.CACHE.md +4 -4
  217. package/skills/hexasync-steps-control-data/references/steps.Composite.md +4 -4
  218. package/skills/hexasync-steps-control-data/references/steps.DIRECT_INDEX.md +12 -12
  219. package/skills/hexasync-steps-control-data/references/steps.DOWNLOAD_CSV.md +23 -23
  220. package/skills/hexasync-steps-control-data/references/steps.EXCEL_READER.md +7 -7
  221. package/skills/hexasync-steps-control-data/references/steps.End.md +4 -4
  222. package/skills/hexasync-steps-control-data/references/steps.GET_KEY_VALUE.md +6 -6
  223. package/skills/hexasync-steps-control-data/references/steps.GraphQL.md +7 -7
  224. package/skills/hexasync-steps-control-data/references/steps.IF.md +12 -12
  225. package/skills/hexasync-steps-control-data/references/steps.IGNORE_ITEM.md +7 -7
  226. package/skills/hexasync-steps-control-data/references/steps.INDEX.md +48 -48
  227. package/skills/hexasync-steps-control-data/references/steps.INVALIDATE_CACHE.md +2 -2
  228. package/skills/hexasync-steps-control-data/references/steps.LOOKUP_STEP.md +8 -8
  229. package/skills/hexasync-steps-control-data/references/steps.OData.md +4 -4
  230. package/skills/hexasync-steps-control-data/references/steps.PUBLISH_EVENT.md +5 -5
  231. package/skills/hexasync-steps-control-data/references/steps.QueryDSL.md +3 -3
  232. package/skills/hexasync-steps-control-data/references/steps.REMOVE_DATA.md +7 -7
  233. package/skills/hexasync-steps-control-data/references/steps.RESET_ITEM.md +12 -12
  234. package/skills/hexasync-steps-control-data/references/steps.RESOLVE_RAW_DATA.md +11 -11
  235. package/skills/hexasync-steps-control-data/references/steps.Restful.md +6 -6
  236. package/skills/hexasync-steps-control-data/references/steps.SEED_DATA.md +10 -10
  237. package/skills/hexasync-steps-control-data/references/steps.SET_KEY_VALUE.md +7 -7
  238. package/skills/hexasync-steps-control-data/references/steps.SLEEP.md +8 -8
  239. package/skills/hexasync-steps-control-data/references/steps.SWITCH.md +12 -12
  240. package/skills/hexasync-steps-control-data/references/steps.TRACK_FOR_REMOVAL.md +12 -12
  241. package/skills/hexasync-steps-control-data/references/steps.UPDATE_TASK_DATA_STATUS.md +13 -13
  242. package/skills/hexasync-steps-control-data/references/steps.VALUES.md +12 -12
  243. package/skills/hexasync-steps-control-data/references/steps.VERIFY_CACHED.md +5 -5
  244. package/skills/hexasync-steps-control-data/references/steps.cURL.md +8 -8
  245. package/skills/hexasync-tables-tasks-objects/SKILL.md +11 -18
  246. package/skills/hexasync-tables-tasks-objects/references/INDEX.md +2 -2
  247. package/skills/hexasync-tables-tasks-objects/references/INSTALL.md +5 -48
  248. package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.fields.md +1 -1
  249. package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.related.md +1 -1
  250. package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.using-resolved-prerequisite-data.md +1 -1
  251. package/skills/hexasync-tables-tasks-objects/references/objectAssociations.OBJECT-ASSOCIATIONS.md +7 -7
  252. package/skills/hexasync-tables-tasks-objects/references/objects.object.best-practices-and-pitfalls.md +1 -1
  253. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dataprocessing.md +1 -1
  254. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dependencies.md +2 -2
  255. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.description.md +1 -1
  256. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.enqueue.md +1 -1
  257. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.fromconnectionid.md +1 -1
  258. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.id.md +1 -1
  259. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignorechange.md +1 -1
  260. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignoreremoval.md +2 -2
  261. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.integrationtype.md +1 -1
  262. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.isdirtyremovable.md +1 -1
  263. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.md +1 -1
  264. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metricgroups.md +1 -1
  265. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metrics.md +2 -2
  266. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.name.md +1 -1
  267. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.newtablename.md +1 -1
  268. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.oldtablename.md +1 -1
  269. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.priority.md +1 -1
  270. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.puller.md +4 -4
  271. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.pusher.md +1 -1
  272. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.queuer.md +1 -1
  273. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.toconnectionid.md +1 -1
  274. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.type.md +1 -1
  275. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.valuetablename.md +1 -1
  276. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.viewname.md +1 -1
  277. package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.visible.md +1 -1
  278. package/skills/hexasync-tables-tasks-objects/references/objects.object.minimal-declaration.md +1 -1
  279. package/skills/hexasync-tables-tasks-objects/references/objects.object.related.md +2 -2
  280. package/skills/hexasync-tables-tasks-objects/references/steps.SAVE_TASK_DATA.md +16 -16
  281. package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.best-practices.md +1 -1
  282. package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.fields.md +1 -1
  283. package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.related.md +3 -3
  284. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.fields.md +5 -5
  285. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.md +1 -1
  286. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.related.md +6 -6
  287. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.status-and-row-clocks.md +1 -1
  288. package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.system-column-contract.md +1 -1
  289. package/skills/hexasync-templates/SKILL.md +16 -31
  290. package/skills/hexasync-templates/references/AI-INDEX.md +31 -31
  291. package/skills/hexasync-templates/references/INDEX.md +3 -2
  292. package/skills/hexasync-templates/references/INSTALL.md +5 -48
  293. package/skills/hexasync-templates/references/KB-INDEX.md +98 -98
  294. package/skills/hexasync-templates/references/PROFILE-ROOT.composed-and-render-only-metadata.md +1 -1
  295. package/skills/hexasync-templates/references/PROFILE-ROOT.minimal-worker-facing-profile.md +2 -2
  296. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-references.md +10 -10
  297. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.connectors.md +1 -1
  298. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.dependencies.md +1 -1
  299. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api--gateway_api.md +1 -1
  300. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api_proxy.md +69 -0
  301. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md +3 -2
  302. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.step-envelope-fields.md +4 -4
  303. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.getreadyflows.md +1 -1
  304. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.legacy-roots--do-not-author.md +1 -1
  305. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.metricgroups.md +1 -1
  306. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objectassociations.md +1 -1
  307. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objects.md +1 -1
  308. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pullers.md +1 -1
  309. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pushers.md +1 -1
  310. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.reports.md +1 -1
  311. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.startuptasks.md +1 -1
  312. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.tables.md +1 -1
  313. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.transformations.md +1 -1
  314. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.validations.md +1 -1
  315. package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.webhooks.md +1 -1
  316. package/skills/hexasync-templates/references/PROFILE-ROOT.recommendation-selection.md +1 -1
  317. package/skills/hexasync-templates/references/PROFILE-ROOT.reference-composition-across-run-and-render-scope.md +1 -1
  318. package/skills/hexasync-templates/references/PROFILE-ROOT.rejected-reference-forms-and-safe-correction.md +1 -1
  319. package/skills/hexasync-templates/references/PROFILE-ROOT.related.md +1 -1
  320. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
  321. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +2 -2
  322. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +1 -1
  323. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.md +1 -1
  324. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +3 -3
  325. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +1 -1
  326. package/skills/hexasync-transformations/SKILL.md +9 -16
  327. package/skills/hexasync-transformations/references/INDEX.md +2 -2
  328. package/skills/hexasync-transformations/references/INSTALL.md +5 -48
  329. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.explicit-mapping-for-push.md +1 -1
  330. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +1 -1
  331. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.related.md +6 -6
  332. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +1 -1
  333. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +1 -1
  334. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +2 -2
  335. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +4 -4
  336. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +1 -1
  337. package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.when-to-use.md +1 -1
  338. package/skills/hexasync-validations/SKILL.md +9 -16
  339. package/skills/hexasync-validations/references/INDEX.md +1 -1
  340. package/skills/hexasync-validations/references/INSTALL.md +5 -48
  341. package/skills/hexasync-validations/references/steps.CHECK_FORMAT.md +6 -6
  342. package/skills/hexasync-validations/references/validations.VALIDATIONS.fields.md +1 -1
  343. package/skills/hexasync-validations/references/validations.VALIDATIONS.how-validations-behave.md +2 -2
  344. package/skills/hexasync-validations/references/validations.VALIDATIONS.md +1 -1
  345. package/skills/hexasync-validations/references/validations.VALIDATIONS.not-the-query-dsl.md +1 -1
  346. package/skills/hexasync-webhooks/SKILL.md +12 -19
  347. package/skills/hexasync-webhooks/references/INDEX.md +2 -2
  348. package/skills/hexasync-webhooks/references/INSTALL.md +5 -48
  349. package/skills/hexasync-webhooks/references/steps.FORWARD.md +7 -7
  350. package/skills/hexasync-webhooks/references/steps.WEBHOOK_FORWARD.md +10 -10
  351. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.best-practices.md +2 -2
  352. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.gateway-mcp-webhook-workflow.md +1 -1
  353. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.md +2 -2
  354. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-finalsteps.md +1 -1
  355. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-pullsteps.md +6 -6
  356. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.related.md +6 -6
  357. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.autoenqueue.md +2 -2
  358. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.dataparser.md +3 -3
  359. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.options.md +1 -1
  360. package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.pullsteps.md +1 -1
  361. package/.cursor-plugin/mcp.json +0 -12
  362. package/.mcp.json +0 -11
  363. package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -44
  364. package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -44
  365. package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -44
  366. package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -44
  367. package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -44
@@ -1,6 +1,6 @@
1
1
  # References — QueryDSL, SQL and query steps
2
2
 
3
- Each file is one knowledge-base section of at most 25 KB, the same split the MCP server serves. Links between these files are relative; other `hexasync://` links resolve through the MCP server.
3
+ Each file is one knowledge-base section of at most 25 KB, the same split the MCP server serves. Links between packaged sections are relative. For other references, search the connected standards MCP by document title.
4
4
 
5
5
  ## Questions this skill answers
6
6
 
@@ -1,51 +1,8 @@
1
- # Installing the HexaSync MCP server
1
+ # Connect the HexaSync standards MCP
2
2
 
3
- If the `hexasync_*` tools are not available, install the server (and these skills) for every client at once:
3
+ The standards MCP runs on AI Gateway. Connect your AI client using the HexaSync Control Center connection instructions. The toolkit installs skills only and does not change MCP configuration.
4
4
 
5
- ```sh
6
- npx -y @beehexa/hexasync-ai-toolkit@2611.14.1 install --client all --scope user
7
- ```
5
+ Server: `https://ai-gateway.hexasync.dev/mcp/wiki/hexasync-template-development-standards`
6
+ OAuth client ID: `hexasync-mcp`; leave the client secret empty and sign in with HexaSync IAM.
8
7
 
9
- Or register only the server (stdio, `npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1`):
10
-
11
- | Client | Registration |
12
- | --- | --- |
13
- | Claude Code | `claude mcp add --scope user --transport stdio hexasync-template-ide -- npx -y @beehexa/hexasync-template-ide-mcp@2611.14.1` |
14
- | Codex | `mcp_servers` in `~/.codex/config.toml` |
15
- | Cursor | `mcpServers` in `~/.cursor/mcp.json` |
16
- | Antigravity | `mcpServers` in `~/.gemini/config/mcp_config.json` |
17
- | pi | `mcpServers` in `~/.pi/agent/mcp.json` |
18
- | OpenClaw | `openclaw mcp set hexasync-template-ide '{"command":"npx","args":["-y","@beehexa/hexasync-template-ide-mcp@2611.14.1"]}'` |
19
- | VS Code | `servers` in the user `mcp.json` |
20
-
21
- ```json
22
- {
23
- "mcpServers": {
24
- "hexasync-template-ide": {
25
- "command": "npx",
26
- "args": [
27
- "-y",
28
- "@beehexa/hexasync-template-ide-mcp@2611.14.1"
29
- ]
30
- }
31
- }
32
- }
33
- ```
34
-
35
- On native Windows use this launch:
36
-
37
- ```json
38
- {
39
- "command": "cmd",
40
- "args": [
41
- "/c",
42
- "npx",
43
- "-y",
44
- "@beehexa/hexasync-template-ide-mcp@2611.14.1"
45
- ]
46
- }
47
- ```
48
-
49
- The standalone server must match toolkit 2611.14.1. If that exact published artifact is absent, registry-backed activation is blocked; do not substitute another release or publish automatically. Local verification uses the actual installed VSIX's `dist/mcp/server.js`, without registry fetching. Confirm its loaded path/version and callable behavior separately.
50
-
51
- Validation needs the project folder: when the client does not send roots, add `--root <absolute project path>` to `args` or set `HEXASYNC_WORKSPACE_ROOTS`. Do not add the server to a VS Code that has the HexaSync Template IDE extension: the extension already provides it. Skills are loaded conditionally by the host, not globally injected.
8
+ In Control Center open **AI Gateway → MCP Servers → HexaSync Template Development Standards → Connection**. Each client configuration directory has its own server setup and sign-in.
@@ -2,5 +2,5 @@
2
2
 
3
3
  ## Best practice
4
4
 
5
- The [Patterns and anti-patterns](query-dsl.QUERY-DSL.quick-reference-syntax-variants-and-how-to-choose.md#patterns-and-anti-patterns) list in the quick reference is the canonical checklist. In short: use typed literals, real resolved sources, unique lowercase aliases and projection names, canonical uppercase Builder tokens and bare Filter fields. Keep query values separate from identifiers. Make SINGLE deterministic with a unique predicate rather than ordering. Handle null and empty lists intentionally, and keep mutation boundaries at their lifecycle owner. Validation names are another vocabulary: [Validations](hexasync://docs/validations/VALIDATIONS) owns in-memory validation types, not Builder/Filter SQL predicates. See also [Profile references](hexasync://docs/PROFILE-ROOT/profile-references), [status and row clocks](hexasync://docs/tasks/TASKS-AND-TABLES/status-and-row-clocks), [metrics](hexasync://docs/metrics/METRICS_REFERENCE) and [transformations](hexasync://docs/transformations/TRANSFORMATIONS).
5
+ The [Patterns and anti-patterns](query-dsl.QUERY-DSL.quick-reference-syntax-variants-and-how-to-choose.md#patterns-and-anti-patterns) list in the quick reference is the canonical checklist. In short: use typed literals, real resolved sources, unique lowercase aliases and projection names, canonical uppercase Builder tokens and bare Filter fields. Keep query values separate from identifiers. Make SINGLE deterministic with a unique predicate rather than ordering. Handle null and empty lists intentionally, and keep mutation boundaries at their lifecycle owner. Validation names are another vocabulary: Validations (search the standards MCP) owns in-memory validation types, not Builder/Filter SQL predicates. See also Profile references (search the standards MCP), status and row clocks (search the standards MCP), metrics (search the standards MCP) and transformations (search the standards MCP).
6
6
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Filter composition
4
4
 
5
- This request-side composition is the companion to the canonical [Builder condition tree](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md), not another profile predicate format. Place a Filter tree under request `filters`; put a Builder tree only at its host's profile `where`, `matchedWhere` or `unmatchedWhere` path. See [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) for host capabilities, [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) for step placement and [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope) for profile execution context; request Filter literals do not gain workflow ARG/PARAM bindings.
5
+ This request-side composition is the companion to the canonical [Builder condition tree](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md), not another profile predicate format. Place a Filter tree under request `filters`; put a Builder tree only at its host's profile `where`, `matchedWhere` or `unmatchedWhere` path. See [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) for host capabilities, One canonical Workflow component (search the standards MCP) for step placement and Runtime scope (search the standards MCP) for profile execution context; request Filter literals do not gain workflow ARG/PARAM bindings.
6
6
 
7
7
 
8
8
 
@@ -31,7 +31,7 @@ For an isolated unprefixed build of this request, the expected SQL fragment is `
31
31
 
32
32
  At supported metric consumers, profile Builder rule `_.sku = A1` plus the composed request means **profile skuA1 AND (active AND (request skuA1 OR external_id IS NULL))**; a B2 row cannot pass merely because its external_id is null. The host wraps the profile predicate and the request group before AND-composing them, preserving OR precedence. Direct V2 QUERY-metric request filtering still needs an actual source alias `_`; Filter cannot select an arbitrary Builder join/source alias. The [request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md) explains that boundary and the GET statistic route that ignores ordinary wrapped user filters.
33
33
 
34
- Concrete narrowing example: assume a supported metric detail POST exposes an existing source with sku, active and external_id columns, the configured facet is present, and the source is available under `_`. For an ordinary metric, author the following at `metadata.where`; a QUERY metric uses `metadata.sql.matchedWhere` for its configured matched facet instead, as owned by [Metrics](hexasync://docs/metrics/METRICS_REFERENCE):
34
+ Concrete narrowing example: assume a supported metric detail POST exposes an existing source with sku, active and external_id columns, the configured facet is present, and the source is available under `_`. For an ordinary metric, author the following at `metadata.where`; a QUERY metric uses `metadata.sql.matchedWhere` for its configured matched facet instead, as owned by Metrics (search the standards MCP):
35
35
 
36
36
  ```yaml
37
37
  op: '='
@@ -47,5 +47,5 @@ where:
47
47
  rightOp: { type: VALUE, val: A1 }
48
48
  ```
49
49
 
50
- Here Builder preserves `p.sku` and binds A1 as a value; a single assumed matching row produces row/found or rows/count according to [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md). Do not copy the Filter condition object into data.where or add filters to claim a query step reads a request envelope. A direct request-consuming QUERY metric using only alias p instead has no `_` source for its Filter; bare sku can fail there. Use the supported `_` source or offset wrapper described in [Filter request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md), not leftOp p.sku. [Operands](query-dsl.QUERY-DSL.operands.md), [join types](query-dsl.QUERY-DSL.the-shape.join-types.md) and [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) own Builder field/source validation. [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) and [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope) own step entry/context; Filter field strings do not perform lookup in that context or acquire ARG/PARAM semantics.
50
+ Here Builder preserves `p.sku` and binds A1 as a value; a single assumed matching row produces row/found or rows/count according to [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md). Do not copy the Filter condition object into data.where or add filters to claim a query step reads a request envelope. A direct request-consuming QUERY metric using only alias p instead has no `_` source for its Filter; bare sku can fail there. Use the supported `_` source or offset wrapper described in [Filter request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md), not leftOp p.sku. [Operands](query-dsl.QUERY-DSL.operands.md), [join types](query-dsl.QUERY-DSL.the-shape.join-types.md) and [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) own Builder field/source validation. One canonical Workflow component (search the standards MCP) and Runtime scope (search the standards MCP) own step entry/context; Filter field strings do not perform lookup in that context or acquire ARG/PARAM semantics.
51
51
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Filter predicates
4
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.
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 (search the standards MCP), Runtime scope (search the standards MCP), and [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) own those distinct placement contracts.
6
6
 
7
7
  | Family | Recognized tokens/aliases | Right operand and SQL effect |
8
8
  | --- | --- | --- |
@@ -4,7 +4,7 @@
4
4
 
5
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
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.
7
+ This is HTTP request authoring, not a Workflow component (search the standards MCP). The Runtime scope (search the standards MCP) 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 (search the standards MCP); [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
8
 
9
9
 
10
10
 
@@ -68,7 +68,7 @@ Generic V2 honors fields with raw-safe physical-column projection and recursive
68
68
 
69
69
  **The V2 response is `items`, `next`, `prev`, not the job response's nextCursor/prevCursor.** Use the exact `next` token with `rel: next` to advance and `prev` with `rel: prev` to go back. Null means no continuation on that side for normally positioned rows. Retain the same entity, metric/statistic selection, filters, encryptedFilter and limit while walking. With unchanged data and nonnull position columns, a full forward walk returns each row once; tied timestamps are ordered by id, and backward traversal returns the same pages. Cursors are opaque: do not manufacture, decode, or substitute a job cursor.
70
70
 
71
- The corrected behavior is **unreleased on worker.proxy `feats/task-flow`, PR #78**; no first published version containing it has been identified. Use it only with a deployed containing build, and record the actual published worker.proxy version when available. See the [data-route availability note](hexasync://docs/frontend/FRONTEND-FLOWS/task-and-reference-data-changes#availability-of-the-data-routes). No core.api version gate applies.
71
+ The corrected behavior is **unreleased on worker.proxy `feats/task-flow`, PR #78**; no first published version containing it has been identified. Use it only with a deployed containing build, and record the actual published worker.proxy version when available. See the data-route availability note (search the standards MCP). No core.api version gate applies.
72
72
 
73
73
  An unreadable cursor on a paged search gives HTTP400 `{error: "invalid_cursor", message}` rather than the first page. A page reached by a cursor whose required boundary row lacks `__updated_at`, `__created_at` or `__id` gives HTTP400 `{error: "row_without_position", message}`. Repair the data or deliberately choose a different limit. An initial request without a cursor preserves compatibility: if a needed boundary has no position, that side's cursor is null even when more rows exist; a larger initial limit can expose a valid boundary. Null position data is therefore outside the complete-walk guarantee.
74
74
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Filter DSL language contract
4
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.
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 (search the standards MCP), not by the language. A request does not populate workflow/item bindings: availability and evaluation timing remain host-specific under Runtime scope (search the standards MCP). 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
6
 
7
7
  | Difference | Builder | Filter |
8
8
  | --- | --- | --- |
@@ -35,7 +35,7 @@ where:
35
35
  rightOp: { type: VALUE, val: A1 }
36
36
  ```
37
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.
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 (search the standards MCP) 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
39
 
40
40
  Minimal Filter request, shown as YAML equivalent of the JSON HTTP body sent to `POST /api/tasks/{taskId}/data/search`:
41
41
 
@@ -6,7 +6,7 @@ Builder operands below are typed objects. API Filter fields instead use a string
6
6
 
7
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
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.
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 (search the standards MCP), Runtime scope (search the standards MCP), 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
10
 
11
11
  | Kind and required authored members | Emission and limits |
12
12
  | --- | --- |
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Query arguments
4
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.
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 (search the standards MCP) owns step placement, Runtime scope (search the standards MCP) 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 (search the standards MCP), ordered arguments (search the standards MCP) and whole-block arguments (search the standards MCP) 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 (search the standards MCP), not a second grammar in an operand.
6
6
 
7
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
8
 
@@ -33,9 +33,9 @@ The same name does not imply the same lookup source:
33
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
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
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.
36
+ Argument expression classification, ordered sibling visibility and whole-block JSONata remain owned by the step envelope (search the standards MCP) and dialect classifier (search the standards MCP), 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
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):
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 (search the standards MCP):
39
39
 
40
40
  ```yaml
41
41
  from: { entityType: SELF, alias: _ }
@@ -50,5 +50,5 @@ At the same full-Build query step/transform paths, with no earlier literal-beari
50
50
 
51
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
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).
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 (search the standards MCP), Runtime scope (search the standards MCP) and [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md).
54
54
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  At a Builder leaf, `op: BETWEEN` selects `data.rightOp: {from: <operand>, to: <operand>}` (placeholders, not a copyable configuration), not a normal right-hand operand. `data.leftOp`, `data.rightOp.from` and `data.rightOp.to` are required operand objects; endpoint member names are exactly `from` and `to`, with no defaults. Each is formatted independently according to [Operands](query-dsl.QUERY-DSL.operands.md), and its own optional `valueType` cast is appended. The emitted predicate is `left BETWEEN from AND to`: both endpoints are **inclusive**, their authored order is retained, and there is no separate exclusive flag or supported NOT_BETWEEN token. Use scalar bounds of compatible SQL types, not list operands.
6
6
 
7
- Place this tree at the consuming host's Builder condition site, such as a query step's `data.where`; it is not a whole step or an API Filter request. The host establishes inputs/bindings before query execution, and this component contributes only a WHERE predicate, not an output envelope. See [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) for host placement and lifecycle differences.
7
+ Place this tree at the consuming host's Builder condition site, such as a query step's `data.where`; it is not a whole step or an API Filter request. The host establishes inputs/bindings before query execution, and this component contributes only a WHERE predicate, not an output envelope. See One canonical Workflow component (search the standards MCP), Runtime scope (search the standards MCP) and [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) for host placement and lifecycle differences.
8
8
 
9
9
  ```yaml
10
10
  op: BETWEEN
@@ -24,7 +24,7 @@ data:
24
24
  rightOp: { type: VALUE, val: 2 }
25
25
  ```
26
26
 
27
- With unique input rows of status 0, 2 and 3 and no additional filters, only status 0 contributes to COUNT's `total` facet (expected total 1). The generated literal binding holds 2, and `(status::int8 & mask::int8) = 0` rejects both 2 and 3; equality `status != 2` would incorrectly retain 3. COUNT normally also excludes the removal bit; this authored condition remains active even if the handler's removal guard is disabled. It does not change any stored status. [Status and row clocks](hexasync://docs/tasks/TASKS-AND-TABLES/status-and-row-clocks) owns system bit meanings; [metric evaluation and result consumption](hexasync://docs/metrics/METRICS_REFERENCE/fields#common-evaluation-and-result-consumption) owns the returned facets and dashboard handling.
27
+ With unique input rows of status 0, 2 and 3 and no additional filters, only status 0 contributes to COUNT's `total` facet (expected total 1). The generated literal binding holds 2, and `(status::int8 & mask::int8) = 0` rejects both 2 and 3; equality `status != 2` would incorrectly retain 3. COUNT normally also excludes the removal bit; this authored condition remains active even if the handler's removal guard is disabled. It does not change any stored status. Status and row clocks (search the standards MCP) owns system bit meanings; metric evaluation and result consumption (search the standards MCP) owns the returned facets and dashboard handling.
28
28
 
29
29
  **Composed bound application-flags mask.** These `flags` are an assumed integer **business column on the task table**, not the metric configuration EXCLUDE/NOTIFY flags. Merge this metadata into an existing `kind: QUERY` metric on a task with that column and a resolvable value table:
30
30
 
@@ -48,13 +48,13 @@ metadata:
48
48
  rightOp: { type: VALUE, val: 2 }
49
49
  ```
50
50
 
51
- For three unique input rows `(flags:3,status:0)`, `(flags:1,status:0)` and `(flags:3,status:2)`, the expected `matched` facet total is 1. QUERY resolves SELF to this task's value table; PARAM emits `@requiredMask` and the handler supplies 3 from `metadata.params`, while VALUE generates the status-mask binding. The first row satisfies both tests; the second lacks bit 2 in flags, and the third has the removal bit in status. Replacing HAS_ALL_BITS with HAS_BITS admits the flags=1 row, giving expected total 2. A literal `{type: VALUE, val: 3}` is the supported alternative to the bound flags mask. Generated literal parameters override colliding authored parameter names; use application-owned names such as requiredMask, not generated `p_00001` names. [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md) owns source placement, and [Metrics](hexasync://docs/metrics/METRICS_REFERENCE/fields#common-evaluation-and-result-consumption) owns facet/result handling. Neither predicate mutates rows or metric configuration.
51
+ For three unique input rows `(flags:3,status:0)`, `(flags:1,status:0)` and `(flags:3,status:2)`, the expected `matched` facet total is 1. QUERY resolves SELF to this task's value table; PARAM emits `@requiredMask` and the handler supplies 3 from `metadata.params`, while VALUE generates the status-mask binding. The first row satisfies both tests; the second lacks bit 2 in flags, and the third has the removal bit in status. Replacing HAS_ALL_BITS with HAS_BITS admits the flags=1 row, giving expected total 2. A literal `{type: VALUE, val: 3}` is the supported alternative to the bound flags mask. Generated literal parameters override colliding authored parameter names; use application-owned names such as requiredMask, not generated `p_00001` names. [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md) owns source placement, and Metrics (search the standards MCP) owns facet/result handling. Neither predicate mutates rows or metric configuration.
52
52
 
53
53
  **Null, zero and signed boundaries.** A SQL-null left or mask makes each comparison unknown, including the two NOT tokens; WHERE retains only true, so those rows do not match. Use a separate [null predicate](query-dsl.QUERY-DSL.operators.null-predicates-are-unary.md) and OR if null must be included. With a non-null left and mask 0, results in table order are false, true, true, false: every zero-mask bit is trivially present. With left=-1 and mask=-1, the intersection is -1 and results are false, false, true, false. Thus HAS_BITS is literally `> 0`, not `!= 0`; HAS_BITS and NOT_HAS_BITS are not complementary when the intersection is negative. Use nonnegative application masks unless that signed behavior is deliberately intended.
54
54
 
55
55
  **Rejected or unavailable forms and real alternatives.** Bare `rightOp: 3` or a missing operand is malformed; correct it to an operand object. `{type: VALUE, vals: [1,2]}` is a non-copyable composite-mask attempt: formatting produces a tuple, not the combined mask, and a multi-element tuple cannot be cast to int8. PARAM.vals likewise lists binding names, not bits. A singleton VALUE list may incidentally compile as a parenthesized scalar, but there is no mask-list OR reduction; use `val: 3`. Empty VALUE fails with `VALUE type must contain either 'val' or 'vals'.` A PARAM without an actual host binding fails during binding/execution; ordinary COUNT-style metrics do not merge `metadata.params`, so use VALUE there, or a QUERY metric's documented bindings. A strict query host rejects raw QUERY; use typed FIELD and scalar VALUE/PARAM instead.
56
56
 
57
- Actual metric settings `flags` (EXCLUDE=1, NOTIFY=2) belong to [Metric configuration](hexasync://docs/metrics/METRICS_REFERENCE/metric-configuration). Those flags are resolved/annotated outside the task-table WHERE; writing FIELD `_.flags` cannot select them unless the task independently has that business column. To configure exclusion/notification, use the metric configuration facility, not a invented Builder configuration-filter placement.
57
+ Actual metric settings `flags` (EXCLUDE=1, NOTIFY=2) belong to Metric configuration (search the standards MCP). Those flags are resolved/annotated outside the task-table WHERE; writing FIELD `_.flags` cannot select them unless the task independently has that business column. To configure exclusion/notification, use the metric configuration facility, not a invented Builder configuration-filter placement.
58
58
 
59
- **Worker execution versus dashboard presentation.** The worker/API Builder compiler produces the SQL predicate and bindings; metrics consume counts, while query steps consume selected rows according to their host. Dashboard filter controls instead render/edit `condition`/`leftOp`/`rightOp` and offer habw/hbw/not_hbw; they neither execute nor translate this Builder tree. API Filter has different [mask predicates](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-predicates.md), so its has_bits means all bits rather than Builder HAS_BITS's positive intersection. Metrics do not populate [Workflow argument scope](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) or [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope); a metric PARAM cannot borrow an earlier step's arguments implicitly.
59
+ **Worker execution versus dashboard presentation.** The worker/API Builder compiler produces the SQL predicate and bindings; metrics consume counts, while query steps consume selected rows according to their host. Dashboard filter controls instead render/edit `condition`/`leftOp`/`rightOp` and offer habw/hbw/not_hbw; they neither execute nor translate this Builder tree. API Filter has different [mask predicates](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-predicates.md), so its has_bits means all bits rather than Builder HAS_BITS's positive intersection. Metrics do not populate Workflow argument scope (search the standards MCP) or Runtime scope (search the standards MCP); a metric PARAM cannot borrow an earlier step's arguments implicitly.
60
60
 
@@ -15,7 +15,7 @@ Author this unary leaf at the consuming Builder `where`/condition path, not an A
15
15
  | `data.leftOp.valueType` | Optional operand cast declaration does not override LAST's returned `::int8` or `::timestamptz` cast. The operand is formatted before LAST dispatch, but its separate cast suffix is not consumed by this comparison. |
16
16
  | `data.caseSensitive` | Optional boolean, default true. This is still applied during operand formatting: false wraps FIELD in `lower(...)` before the fixed LAST cast. It is not a date-format flag; leave it omitted for numeric/timestamp columns, where `lower` can fail SQL type resolution. |
17
17
 
18
- Operand shapes and binding availability belong to [Operands](query-dsl.QUERY-DSL.operands.md); placement and strictness belong to [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md). Step assembly and context timing remain with [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) and [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope). LAST uses database `now()` rather than reading a workflow context clock.
18
+ Operand shapes and binding availability belong to [Operands](query-dsl.QUERY-DSL.operands.md); placement and strictness belong to [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md). Step assembly and context timing remain with One canonical Workflow component (search the standards MCP) and Runtime scope (search the standards MCP). LAST uses database `now()` rather than reading a workflow context clock.
19
19
 
20
20
 
21
21
 
@@ -57,7 +57,7 @@ data:
57
57
  rightOp: { type: VALUE, val: true }
58
58
  ```
59
59
 
60
- An active row changed one hour ago qualifies; an inactive row at the same instant does not, and an active row three hours ago does not. Future active rows can qualify because LAST supplies only a lower threshold. At an ordinary metric `metadata.where`, the same tree narrows counted eligible rows rather than returning query-step outputs. Do not mix millisecond storage with UNIX_TIMESTAMP seconds or rely on custom text date parsing; choose the documented storage-specific format. [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md), [tree host contract](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md) and [status/row clocks](hexasync://docs/tasks/TASKS-AND-TABLES/status-and-row-clocks) own the reused source, result and clock context.
60
+ An active row changed one hour ago qualifies; an inactive row at the same instant does not, and an active row three hours ago does not. Future active rows can qualify because LAST supplies only a lower threshold. At an ordinary metric `metadata.where`, the same tree narrows counted eligible rows rather than returning query-step outputs. Do not mix millisecond storage with UNIX_TIMESTAMP seconds or rely on custom text date parsing; choose the documented storage-specific format. [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md), [tree host contract](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md) and status/row clocks (search the standards MCP) own the reused source, result and clock context.
61
61
 
62
62
  The three minimal leaves above can each occupy strict query-step `data.where` (or query-transform `metadata.where`) and permissive ordinary-metric `metadata.where`. They create no literal binding when the left is FIELD. In a strict QUERY_MANY step, qualifying selected rows become `rows` and `count`; no matches yield `rows: []` and `count: 0`. A query does not return a boolean for each source row. The composed predicate changes eligibility, not the enclosing source, projection or output contract.
63
63
 
@@ -76,7 +76,7 @@ where:
76
76
  rightOp: { type: VALUE, val: true }
77
77
  ```
78
78
 
79
- Assume five distinct source IDs: active/nonremoved one hour old, active/nonremoved three hours old, inactive/nonremoved one hour old, active/Removed one hour old, and active/nonremoved one hour in the future. With normal COUNT removal exclusion, the expected total facet is **2**: the recent and future active nonremoved IDs qualify. LAST supplies the inclusive lower millisecond cutoff, AND adds the active requirement, and the COUNT host excludes Removed rows independently. [Metrics](hexasync://docs/metrics/METRICS_REFERENCE) owns COUNT facets and removal options.
79
+ Assume five distinct source IDs: active/nonremoved one hour old, active/nonremoved three hours old, inactive/nonremoved one hour old, active/Removed one hour old, and active/nonremoved one hour in the future. With normal COUNT removal exclusion, the expected total facet is **2**: the recent and future active nonremoved IDs qualify. LAST supplies the inclusive lower millisecond cutoff, AND adds the active requirement, and the COUNT host excludes Removed rows independently. Metrics (search the standards MCP) owns COUNT facets and removal options.
80
80
 
81
81
  **Boundaries and safe corrections:**
82
82
 
@@ -40,5 +40,5 @@ where:
40
40
 
41
41
  With a resolved source/projection from [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md), `(sku:C3,external_id:remote-3)` qualifies; A1/B2, a null sku and any row with null external_id do not. During query construction the transformation validates the declared list ARG and its NOT_IN placement; then it resolves/coerces the declared string list and binds it by key for driver expansion and execution. Switching only NOT_IN to IN admits A1/B2 with non-null external_id instead of C3. This contrasts with the minimal literal example: VALUE generates independent names directly, while ARG consumes a typed declaration. Reusing that list ARG in `=` fails with “a list (isList) argument is only valid with IN / NOT_IN.” An undeclared ARG fails declaration validation. Safe alternatives are a scalar declared ARG for `=` or a literal VALUE `vals` list for membership; neither requires raw SQL.
42
42
 
43
- [Query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md) owns coercion, empty/null/type/cap behavior. Do not copy ordered transform list declarations into root step arguments and expect list binding. [Builder condition tree](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md) and [Null predicates](query-dsl.QUERY-DSL.operators.null-predicates-are-unary.md) own the composed AND/unary shapes. The workflow 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).
43
+ [Query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md) owns coercion, empty/null/type/cap behavior. Do not copy ordered transform list declarations into root step arguments and expect list binding. [Builder condition tree](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md) and [Null predicates](query-dsl.QUERY-DSL.operators.null-predicates-are-unary.md) own the composed AND/unary shapes. The workflow and input availability remain owned by One canonical Workflow component (search the standards MCP), Runtime scope (search the standards MCP) and [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md).
44
44
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Null predicates are unary
4
4
 
5
- Null predicates test one SQL expression, not a left/right comparison. They are leaves of the [Builder condition tree](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md); use the supported host path from [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md). Query-step placement belongs to [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component); expression availability belongs to [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope).
5
+ Null predicates test one SQL expression, not a left/right comparison. They are leaves of the [Builder condition tree](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md); use the supported host path from [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md). Query-step placement belongs to One canonical Workflow component (search the standards MCP); expression availability belongs to Runtime scope (search the standards MCP).
6
6
 
7
7
  | Exact authored tokens | Emitted predicate |
8
8
  | --- | --- |
@@ -22,7 +22,7 @@ All ten tokens have the same unary shape. Prefer `IS_NULL` and `IS_NOT_NULL` for
22
22
 
23
23
  **Parameter behavior:** FIELD emits an identifier and no generated value binding. Scalar VALUE allocates one generated parameter before null dispatch; PARAM/ARG emits a named reference without creating its value. There is no bound right operand, but neither the entire query nor every null leaf is guaranteed parameter-free. A missing PARAM/ARG binding is not manufactured as SQL NULL; availability and declaration/list restrictions remain at [Query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md). Prefer scalar operands for scalar null tests rather than treating VALUE/PARAM lists as independent element-null checks.
24
24
 
25
- **Minimal nullable business-column example.** Assume a real nullable text `external_id` column declared through [A column](hexasync://docs/tables/TABLES/fields#a-column), eligible stored rows with SQL NULL, empty text and A1, and an ordinary COUNT metric. Place this fragment directly under that metric's `metadata`:
25
+ **Minimal nullable business-column example.** Assume a real nullable text `external_id` column declared through A column (search the standards MCP), eligible stored rows with SQL NULL, empty text and A1, and an ordinary COUNT metric. Place this fragment directly under that metric's `metadata`:
26
26
 
27
27
  ```yaml
28
28
  where:
@@ -31,9 +31,9 @@ where:
31
31
  leftOp: { type: FIELD, field: _.external_id }
32
32
  ```
33
33
 
34
- The Builder formats `_.external_id` as an identifier, then emits `_.external_id IS NULL` without a value binding. Only the SQL-NULL row qualifies: empty text and A1 are non-null. With all three rows otherwise eligible, COUNT's total is 1, because the host adds its own eligibility rule and counts matching rows; see [Metrics](hexasync://docs/metrics/METRICS_REFERENCE). The predicate does not insert, update or supply a missing column.
34
+ The Builder formats `_.external_id` as an identifier, then emits `_.external_id IS NULL` without a value binding. Only the SQL-NULL row qualifies: empty text and A1 are non-null. With all three rows otherwise eligible, COUNT's total is 1, because the host adds its own eligibility rule and counts matching rows; see Metrics (search the standards MCP). The predicate does not insert, update or supply a missing column.
35
35
 
36
- **Minimal system-column/alias example.** At the same ordinary metric metadata path, assume the task value table actually has the system-owned epoch-millisecond `__last_seen` column. Do not declare it as a business field; its lifecycle belongs to [System-column contract](hexasync://docs/tasks/TASKS-AND-TABLES/system-column-contract).
36
+ **Minimal system-column/alias example.** At the same ordinary metric metadata path, assume the task value table actually has the system-owned epoch-millisecond `__last_seen` column. Do not declare it as a business field; its lifecycle belongs to System-column contract (search the standards MCP).
37
37
 
38
38
  ```yaml
39
39
  where:
@@ -42,7 +42,7 @@ where:
42
42
  leftOp: { type: FIELD, field: _.__last_seen }
43
43
  ```
44
44
 
45
- NNIL selects the not-null branch and emits `_.__last_seen IS NOT NULL`, exactly like IS_NOT_NULL, with no generated value binding. If otherwise eligible stored rows contain 1700000000000, 0 and SQL NULL respectively, the count is 2. Zero is non-null: the indexer can backfill 0, so this condition is not proof that a row was seen during the current run. It does not stamp freshness or test a stale cutoff; see [Status and row clocks](hexasync://docs/tasks/TASKS-AND-TABLES/status-and-row-clocks).
45
+ NNIL selects the not-null branch and emits `_.__last_seen IS NOT NULL`, exactly like IS_NOT_NULL, with no generated value binding. If otherwise eligible stored rows contain 1700000000000, 0 and SQL NULL respectively, the count is 2. Zero is non-null: the indexer can backfill 0, so this condition is not proof that a row was seen during the current run. It does not stamp freshness or test a stale cutoff; see Status and row clocks (search the standards MCP).
46
46
 
47
47
  **Composed condition.** Use this as an ordinary metric's `metadata.where`, or as a query step's `data.where` paired with the concrete source/projection required by [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md). Assume both columns above exist and the query source exposes alias `_`:
48
48
 
@@ -17,7 +17,7 @@ With false, FIELD becomes `lower(field)` and literal VALUE is stringified/lowerc
17
17
 
18
18
  #### Literal pattern at a permissive metric
19
19
 
20
- Put this leaf at an ordinary COUNT metric's `metadata.where`. Assume an existing text code column and otherwise eligible rows with code A-12, B-12, a-12 and SQL NULL. [Metrics](hexasync://docs/metrics/METRICS_REFERENCE/fields#common-evaluation-and-result-consumption) owns the handler's status guards and facet consumption.
20
+ Put this leaf at an ordinary COUNT metric's `metadata.where`. Assume an existing text code column and otherwise eligible rows with code A-12, B-12, a-12 and SQL NULL. Metrics (search the standards MCP) owns the handler's status guards and facet consumption.
21
21
 
22
22
  ```yaml
23
23
  op: REGEX
@@ -32,7 +32,7 @@ The same scalar FIELD/VALUE leaf works in a strict query step's `data.where` or
32
32
 
33
33
  #### Bound pattern composed at a strict query step
34
34
 
35
- In a supported [Workflow](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component), assume the example UUID resolves a task with text code and no rows beyond A-12, B-12, a-12 and SQL NULL. This keyed QUERY_MANY step resolves root arguments before building/executing its condition. [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope) and [Query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md) own context entry and binding precedence.
35
+ In a supported Workflow (search the standards MCP), assume the example UUID resolves a task with text code and no rows beyond A-12, B-12, a-12 and SQL NULL. This keyed QUERY_MANY step resolves root arguments before building/executing its condition. Runtime scope (search the standards MCP) and [Query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md) own context entry and binding precedence.
36
36
 
37
37
  ```yaml
38
38
  key: MATCH_CODES
@@ -4,7 +4,7 @@
4
4
 
5
5
  These are **Builder** binary leaf predicates at a supported profile `where` path, including query-step `data.where`; they are not dashboard/API request Filter tokens. Each requires string `op`, object `data`, and object `data.leftOp`/`data.rightOp`. Canonical authoring uses a scalar `{type: FIELD, field: alias.column}` left operand and exactly one scalar FIELD, VALUE.val, PARAM.val or host-supported ARG.key on the right, or a nonempty VALUE.vals list. `val` holds one primitive literal (string, number or boolean) for VALUE, but a string binding name for PARAM; `vals` holds a literal array for VALUE, not a bound array name. Pattern wrapping turns VALUE primitives into text; author text patterns rather than relying on numeric/boolean stringification. FIELD names and optional `valueType` follow [Operands](query-dsl.QUERY-DSL.operands.md). Host support and strict-versus-permissive execution belong to [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) and [Builder condition tree](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md).
6
6
 
7
- The worker constructs SQL and bindings, then the consuming query evaluates the predicate against database rows; the predicate produces no standalone workflow output. Query-step results belong to [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md). The dashboard's entity/metric searches instead submit [Filter request envelopes](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md) and display the returned rows; the request path does not evaluate or translate these Builder leaves in the browser. Workflow placement and argument population are owned by [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) and [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope), not implicit lookups inside a text predicate.
7
+ The worker constructs SQL and bindings, then the consuming query evaluates the predicate against database rows; the predicate produces no standalone workflow output. Query-step results belong to [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md). The dashboard's entity/metric searches instead submit [Filter request envelopes](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md) and display the returned rows; the request path does not evaluate or translate these Builder leaves in the browser. Workflow placement and argument population are owned by One canonical Workflow component (search the standards MCP) and Runtime scope (search the standards MCP), not implicit lookups inside a text predicate.
8
8
 
9
9
  | Token | Literal x becomes | SQL when true / false caseSensitive | Literal vals |
10
10
  | --- | --- | --- | --- |
@@ -62,7 +62,7 @@ At a query step `data.where`, replace only `rightOp` with `{type: PARAM, val: na
62
62
  | Same scalar PARAM and binding `%CHAIR%` | false | CHAIR, armchair | SOFA, Table | lower(name) plus ILIKE uses the unchanged named pattern; its uppercase binding need not be rewritten. |
63
63
  | Scalar PARAM with binding `CHAIR` (no wildcards) | false | CHAIR | armchair, SOFA, Table | ILIKE is a whole-value match without `%`; CONTAINS does not wrap PARAM. |
64
64
 
65
- SQL NULL passes none of these predicates; it produces SQL unknown, including for negated text operators. VALUE list alternatives are generated ARRAY patterns; PARAM is a single named pattern. Non-copyable rejected replacement `{type: PARAM, vals: [namePattern, otherPattern]}` is **not** an equivalent named pattern list: its formatter emits `lower(@namePattern)`/`lower(@otherPattern)` tuple elements even when the flag is true, and the text predicate's ANY/ALL needs an ARRAY. Use the nonempty literal VALUE list above, or compose separate scalar PARAM leaves with [AND/OR grouping](query-dsl.QUERY-DSL.the-shape.grouping-precedence-and-exact-parentheses.md). [Query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md) owns binding availability; [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md), [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) and [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope) own the reused host and context rules.
65
+ SQL NULL passes none of these predicates; it produces SQL unknown, including for negated text operators. VALUE list alternatives are generated ARRAY patterns; PARAM is a single named pattern. Non-copyable rejected replacement `{type: PARAM, vals: [namePattern, otherPattern]}` is **not** an equivalent named pattern list: its formatter emits `lower(@namePattern)`/`lower(@otherPattern)` tuple elements even when the flag is true, and the text predicate's ANY/ALL needs an ARRAY. Use the nonempty literal VALUE list above, or compose separate scalar PARAM leaves with [AND/OR grouping](query-dsl.QUERY-DSL.the-shape.grouping-precedence-and-exact-parentheses.md). [Query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md) owns binding availability; [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md), One canonical Workflow component (search the standards MCP) and Runtime scope (search the standards MCP) own the reused host and context rules.
66
66
 
67
67
  Composed query-step `data.where`, assuming text sku values and root step `arguments: {skuPattern: 'A%'}`:
68
68
 
@@ -31,7 +31,7 @@ data:
31
31
  rightOp: { type: VALUE, val: 5 }
32
32
  ```
33
33
 
34
- The worker binds numeric 5 and emits a field-to-parameter `>=` comparison. Quantities 5 and 6 qualify; 4 is false and NULL is unknown. The COUNT total is therefore 2, not a returned boolean or two projected rows. The same leaf on a query host selects matching rows with that host's result shape. [Metrics](hexasync://docs/metrics/METRICS_REFERENCE) owns metric facets and eligibility, and the [capability matrix](query-dsl.QUERY-DSL.md) owns the differences between ordinary metric `metadata.where` and QUERY metric `metadata.sql.matchedWhere`/`unmatchedWhere`.
34
+ The worker binds numeric 5 and emits a field-to-parameter `>=` comparison. Quantities 5 and 6 qualify; 4 is false and NULL is unknown. The COUNT total is therefore 2, not a returned boolean or two projected rows. The same leaf on a query host selects matching rows with that host's result shape. Metrics (search the standards MCP) owns metric facets and eligibility, and the [capability matrix](query-dsl.QUERY-DSL.md) owns the differences between ordinary metric `metadata.where` and QUERY metric `metadata.sql.matchedWhere`/`unmatchedWhere`.
35
35
 
36
36
  **Composed parameter comparison in a step:** assume the UUID identifies an existing TASK with integer quantity and text sku columns. Its rows are `(4,A1)`, `(5,A1)`, `(6,B2)` and `(NULL,A1)`. Root arguments are parsed before query execution and supplied as strings:
37
37
 
@@ -59,7 +59,7 @@ data:
59
59
  rightOp: { type: PARAM, val: excludedSku }
60
60
  ```
61
61
 
62
- The first child emits `_.quantity >= @minimum::INT8`, converting string "5" at the database; the second emits `_.sku <> @excludedSku`, with B2 still a bound value. AND requires both comparisons: only `(5,A1)` qualifies. Expected published outputs are `{rows: [{sku: A1, quantity: 5}], count: 1}`; no matches yields `{rows: [], count: 0}`. Neither PARAM creates a literal. An absent minimum binding or nonnumeric minimum fails binding/casting rather than defaulting to 5. Do not move `arguments` under data: [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md), [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) and [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope) own source/projection, scheduling, argument timing and output publication. [Grouping](query-dsl.QUERY-DSL.the-shape.grouping-precedence-and-exact-parentheses.md) owns the composed AND shape.
62
+ The first child emits `_.quantity >= @minimum::INT8`, converting string "5" at the database; the second emits `_.sku <> @excludedSku`, with B2 still a bound value. AND requires both comparisons: only `(5,A1)` qualifies. Expected published outputs are `{rows: [{sku: A1, quantity: 5}], count: 1}`; no matches yields `{rows: [], count: 0}`. Neither PARAM creates a literal. An absent minimum binding or nonnumeric minimum fails binding/casting rather than defaulting to 5. Do not move `arguments` under data: [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md), One canonical Workflow component (search the standards MCP) and Runtime scope (search the standards MCP) own source/projection, scheduling, argument timing and output publication. [Grouping](query-dsl.QUERY-DSL.the-shape.grouping-precedence-and-exact-parentheses.md) owns the composed AND shape.
63
63
 
64
64
  **Argument comparison in a transformation:** the following is QUERY_MANY transformation `metadata`, not step data. Assume the enclosing task has that same source table, original item `{quantity: 5, sku: A1, minimum: 99}`, and argument expressions can read its scalar quantity:
65
65
 
@@ -10,7 +10,7 @@ Strict FIELD accepts bare `column` or `alias.column`, at most one dot; each part
10
10
 
11
11
  Unsafe interpolation such as `orderBy: ["{{ user_supplied_sql }}"]` or `groupBy: ["{{ user_supplied_sql }}"]` is non-copyable. The Builder joins configured grouping/ordering strings into SQL without strict identifier guards; binding a VALUE/PARAM cannot turn a value into a safe identifier or ordering clause. Use fixed application-owned grouping/ordering only at a consumer that actually reads it: QUERY metrics read `metadata.sql.groupBy`, while query steps/transforms do not read authored groupBy/orderBy/paging members. Adding them to a query step/transform cannot select a deterministic “first” row. See [Ordering and paging](query-dsl.QUERY-DSL.the-shape.query-envelope.md#ordering-and-paging) for consuming-site differences.
12
12
 
13
- **Destructive boundary:** missing `UPDATE_TASK_DATA_STATUS.data.where` does not universally fail closed; it can update every eligible row. TRACK_FOR_REMOVAL adds a last-seen/runStart condition and excludes Removed, but still requires correct runStart, explicit save/seen accounting and a deliberately bounded author condition where needed. See [removal step](hexasync://docs/steps/TRACK_FOR_REMOVAL), [status step](hexasync://docs/steps/UPDATE_TASK_DATA_STATUS) and [pull lifecycle](hexasync://docs/pullers/PULLERS). Permissive recognition is never a safety certification.
13
+ **Destructive boundary:** missing `UPDATE_TASK_DATA_STATUS.data.where` does not universally fail closed; it can update every eligible row. TRACK_FOR_REMOVAL adds a last-seen/runStart condition and excludes Removed, but still requires correct runStart, explicit save/seen accounting and a deliberately bounded author condition where needed. See removal step (search the standards MCP), status step (search the standards MCP) and pull lifecycle (search the standards MCP). Permissive recognition is never a safety certification.
14
14
 
15
15
  Typed migration in two concrete contexts, assuming this static UUID resolves an existing task with a sku column: replace raw SQL `_.sku = 'A1'` with the equality leaf below. As an ordinary COUNT metric's `metadata.where`, it narrows counted eligible rows. As status step data, it narrows affected rows; it does not make the underlying mutation host strict.
16
16
 
@@ -69,9 +69,9 @@ metadata:
69
69
  rightOp: { type: VALUE, val: true }
70
70
  ```
71
71
 
72
- Assume the matching stored row is active=true. SELF resolves the enclosing table; item sku becomes the PARAM binding and true becomes a generated literal binding. Both AND children must hold, so expected enriched item is `{sku: A1, active: true, product_title: Alpha}`. No matching active row leaves the original item unchanged. SELF is available here but rejected in query steps. The [transformation chain](hexasync://docs/transformations/TRANSFORMATIONS/transformation-chain-contract) owns envelope placement, ordering and downstream item handling; [runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope) and [workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) own their distinct context timing.
72
+ Assume the matching stored row is active=true. SELF resolves the enclosing table; item sku becomes the PARAM binding and true becomes a generated literal binding. Both AND children must hold, so expected enriched item is `{sku: A1, active: true, product_title: Alpha}`. No matching active row leaves the original item unchanged. SELF is available here but rejected in query steps. The transformation chain (search the standards MCP) owns envelope placement, ordering and downstream item handling; runtime scope (search the standards MCP) and workflow component (search the standards MCP) own their distinct context timing.
73
73
 
74
- At an ordinary COUNT metric's `metadata.where`, use the same typed sku/active AND tree with alias `_` and VALUE A1 rather than item PARAM sku: this host supplies no generic item/argument bindings. The expected total is the count of otherwise eligible active A1 rows, not an enriched item. A QUERY metric may instead bind `metadata.params` and place this tree at `metadata.sql.matchedWhere`; see the [consumer matrix](query-dsl.QUERY-DSL.where-it-is-used.md) and [metrics owner](hexasync://docs/metrics/METRICS_REFERENCE). Neither metric route enables strict guards simply because the tree is typed.
74
+ At an ordinary COUNT metric's `metadata.where`, use the same typed sku/active AND tree with alias `_` and VALUE A1 rather than item PARAM sku: this host supplies no generic item/argument bindings. The expected total is the count of otherwise eligible active A1 rows, not an enriched item. A QUERY metric may instead bind `metadata.params` and place this tree at `metadata.sql.matchedWhere`; see the [consumer matrix](query-dsl.QUERY-DSL.where-it-is-used.md) and metrics owner (search the standards MCP). Neither metric route enables strict guards simply because the tree is typed.
75
75
 
76
76
  For a composed removal step, assume a complete successful pull has explicitly saved its received rows with the same established unix-ms `runStart=1000` and positive run-cumulative seen count for this task. At TRACK_FOR_REMOVAL.data, add a business boundary:
77
77
 
@@ -90,7 +90,7 @@ where:
90
90
  rightOp: { type: VALUE, val: true }
91
91
  ```
92
92
 
93
- For otherwise transition-eligible rows, an active A1 row with last-seen=999 is stale and receives the default Removed|Changed transition; an active A1 row with last-seen=1000, an inactive A1 row and a stale B2 row are excluded. Already Removed rows are excluded independently. The step AND-composes its last-seen and not-Removed guards with the complete author tree before passing it to the same permissive status/indexing writer used by UPDATE_TASK_DATA_STATUS. That writer generates VALUE bindings and returns the number actually transitioned, not rows. Internal status draining uses fixed __id keyset pages of 5000; it does not impose an author-filter requirement or make raw SQL safe. There is no extra public `indexing.where` envelope to author this internal call. Status clocks and mutation lifecycle details belong to [status and row clocks](hexasync://docs/tasks/TASKS-AND-TABLES/status-and-row-clocks), [SAVE_TASK_DATA](hexasync://docs/steps/SAVE_TASK_DATA), [TRACK_FOR_REMOVAL](hexasync://docs/steps/TRACK_FOR_REMOVAL) and [UPDATE_TASK_DATA_STATUS](hexasync://docs/steps/UPDATE_TASK_DATA_STATUS).
93
+ For otherwise transition-eligible rows, an active A1 row with last-seen=999 is stale and receives the default Removed|Changed transition; an active A1 row with last-seen=1000, an inactive A1 row and a stale B2 row are excluded. Already Removed rows are excluded independently. The step AND-composes its last-seen and not-Removed guards with the complete author tree before passing it to the same permissive status/indexing writer used by UPDATE_TASK_DATA_STATUS. That writer generates VALUE bindings and returns the number actually transitioned, not rows. Internal status draining uses fixed __id keyset pages of 5000; it does not impose an author-filter requirement or make raw SQL safe. There is no extra public `indexing.where` envelope to author this internal call. Status clocks and mutation lifecycle details belong to status and row clocks (search the standards MCP), SAVE_TASK_DATA (search the standards MCP), TRACK_FOR_REMOVAL (search the standards MCP) and UPDATE_TASK_DATA_STATUS (search the standards MCP).
94
94
 
95
95
  **Non-copyable boundaries and corrections:**
96
96
 
@@ -27,7 +27,7 @@ data:
27
27
 
28
28
  The same minimal condition serialized as JSON is `{"op":"=","data":{"leftOp":{"type":"FIELD","field":"_.sku"},"rightOp":{"type":"VALUE","val":"A1"}}}`. JSON versus YAML changes serialization only; neither representation is the string expression `_.sku = A1`, and neither is an API Filter node. The snippets are the predicate value, not complete profile, metric or step envelopes; keep the host's required source/projection and other members described by [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md).
29
29
 
30
- Assume a real sku column and eligible rows with sku A1 and B2; the predicate binds A1 as a value and matches A1, not B2. A COUNT metric reports the matching count; a query step returns the matching row(s), not the tree itself. API request filtering instead uses `{ "condition":"eq", "leftOp":"sku", "rightOp":"A1" }` under **filters** in a [Filter request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md); ordinary entity offset search returns the matching items and filtered totalCount. Neither object is interchangeable with the other. A string `where: "_.sku = A1"` is a rejected authoring shape; use the tree above. Profile entry/context timing belongs to [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) and [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope); this literal condition needs no runtime argument binding.
30
+ Assume a real sku column and eligible rows with sku A1 and B2; the predicate binds A1 as a value and matches A1, not B2. A COUNT metric reports the matching count; a query step returns the matching row(s), not the tree itself. API request filtering instead uses `{ "condition":"eq", "leftOp":"sku", "rightOp":"A1" }` under **filters** in a [Filter request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md); ordinary entity offset search returns the matching items and filtered totalCount. Neither object is interchangeable with the other. A string `where: "_.sku = A1"` is a rejected authoring shape; use the tree above. Profile entry/context timing belongs to One canonical Workflow component (search the standards MCP) and Runtime scope (search the standards MCP); this literal condition needs no runtime argument binding.
31
31
 
32
32
  Nested profile composition, at the same host paths, assuming real boolean active, nullable archived_at and text status columns:
33
33
 
@@ -14,7 +14,7 @@ Changing outer AND to OR admits inactive rows satisfying the nested branch; this
14
14
 
15
15
  There is no implemented compiler depth cap or maximum group size. That absence is not a safety guarantee: recursive compilation, deserialization and available resources still have finite limits, and this contract promises no safe numeric depth. Empty arrays, including an array whose null children are all skipped at runtime, emit `()` rather than true/false identity predicates; they are not valid SQL WHERE conditions. Null children are not supported by the authored schema. `data: {}` on AND/OR fails with "Expected array for logical operator 'AND'" or the corresponding OR message; a whitespace-padded group token with array data falls outside group dispatch and fails with "Unexpected data type for condition: JArray". Correct the tree rather than dropping the filter. Strict mode does not turn malformed groups into safe no-op predicates; see [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md).
16
16
 
17
- Minimal AND versus OR usage: place the following condition directly at an ordinary COUNT metric's `metadata.where`. Assume a configured task table, three distinct eligible rows and real non-null `sku`/`active` columns. The [tree field and host contract](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md) owns other supported placements; [COUNT](hexasync://docs/metrics/METRICS_REFERENCE/metric-kinds-reference#1-count) owns the metric result and handler restrictions. This static condition needs no workflow context or named argument binding:
17
+ Minimal AND versus OR usage: place the following condition directly at an ordinary COUNT metric's `metadata.where`. Assume a configured task table, three distinct eligible rows and real non-null `sku`/`active` columns. The [tree field and host contract](query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md) owns other supported placements; COUNT (search the standards MCP) owns the metric result and handler restrictions. This static condition needs no workflow context or named argument binding:
18
18
 
19
19
  ```yaml
20
20
  op: AND
@@ -31,7 +31,7 @@ data:
31
31
 
32
32
  For rows `(sku,active)` of `(A1,true)`, `(A1,false)` and `(B2,true)`, AND admits only the first row and the COUNT total is 1: both child comparisons must hold. Changing only `op` to OR admits all three and the total is 3: each row has at least one true child. The isolated AND fragment is `((_.sku = @p_00001) AND (_.active = @p_00002))`, with generated values A1 and true; OR changes its separator, not its operands. Neither version bypasses the COUNT handler's own status restriction.
33
33
 
34
- Composed nested conditions in a strict query step: put this one-element list in a supported host's Workflow list, replacing the sample UUID with an existing TASK identity. Assume the task has real `sku` text, `active` boolean and nullable `archived_at` columns, with no other rows than the four listed below. Placement and entry timing belong to [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) and [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope). The [QUERY_MANY contract](steps.QUERY_MANY.md#contract), [query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md) and [select projection](query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md#select-projection) own source resolution and row output; this example uses literal VALUE operands and no expression or arguments.
34
+ Composed nested conditions in a strict query step: put this one-element list in a supported host's Workflow list, replacing the sample UUID with an existing TASK identity. Assume the task has real `sku` text, `active` boolean and nullable `archived_at` columns, with no other rows than the four listed below. Placement and entry timing belong to One canonical Workflow component (search the standards MCP) and Runtime scope (search the standards MCP). The [QUERY_MANY contract](steps.QUERY_MANY.md#contract), [query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md) and [select projection](query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md#select-projection) own source resolution and row output; this example uses literal VALUE operands and no expression or arguments.
35
35
 
36
36
  ```yaml
37
37
  - key: GROUPED_READ
@@ -2,7 +2,7 @@
2
2
 
3
3
  ### Join types
4
4
 
5
- Author joins at query-step `data.joins[]`, query-transformation `metadata.joins[]` or QUERY-metric `metadata.sql.joins[]`. They are an ordered array of objects, not a condition string or API request Filter. Reuse the [Workflow envelope](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component), [runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope) and [strict/permissive runtime rules](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md); their capabilities do not become universal because the join shape is shared.
5
+ Author joins at query-step `data.joins[]`, query-transformation `metadata.joins[]` or QUERY-metric `metadata.sql.joins[]`. They are an ordered array of objects, not a condition string or API request Filter. Reuse the Workflow envelope (search the standards MCP), runtime scope (search the standards MCP) and [strict/permissive runtime rules](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md); their capabilities do not become universal because the join shape is shared.
6
6
 
7
7
  | Join member | Authored contract and effect |
8
8
  | --- | --- |
@@ -51,7 +51,7 @@ data:
51
51
  rightOp: { type: PARAM, val: wantedSku }
52
52
  ```
53
53
 
54
- Expected step outputs are the illustrative shape `{row: {product_title: <selected title>}, found: true}` or `{row: null, found: false}`, rather than item enrichment; the first contains a placeholder value, not a copyable configuration. If several rows match, neither step nor transform promises a deterministic first row: SINGLE materializes the query and selects the first returned row, without SQL LIMIT/order. Use a unique predicate rather than assuming a paging field is honored. [Step envelope](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) owns scheduling, data/input precedence and output publication.
54
+ Expected step outputs are the illustrative shape `{row: {product_title: <selected title>}, found: true}` or `{row: null, found: false}`, rather than item enrichment; the first contains a placeholder value, not a copyable configuration. If several rows match, neither step nor transform promises a deterministic first row: SINGLE materializes the query and selects the first returned row, without SQL LIMIT/order. Use a unique predicate rather than assuming a paging field is honored. Step envelope (search the standards MCP) owns scheduling, data/input precedence and output publication.
55
55
 
56
56
  #### Ordering and paging
57
57
 
@@ -63,7 +63,7 @@ Ordering and paging have different owners, and none of them is a field of the Bu
63
63
  | QUERY metric metadata.sql | Optional groupBy:string[] is read for aggregate streams only. It is verbatim SQL, not a dynamic facet-key declaration. Authored orderBy, limit, offset, cursor and rel are not read; empty grouping adds no GROUP BY. Details configure paging from a nonnull caller limit (which overrides request paging and clears offset), otherwise request limit/offset; request ordering is the fixed cursor tuple, not sql.orderBy. The detail setup does not configure sql.groupBy. |
64
64
  | Offset entity/metric API request body | Separate Filter request: orderBy is a bare-field→direction map, limit is an integer with model default100 and offset is an integer with default0. Standard entity search returns items/totalCount, not a cursor. See [Filter request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md) for endpoint-specific validation and count behavior. |
65
65
 
66
- Compiler clause order is SELECT → FROM → JOIN → WHERE → GROUP BY → ORDER BY → LIMIT/OFFSET. Binding limit/offset does not sanitize verbatim grouping/ordering entries. See [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) for the strict/permissive boundary, [One canonical Workflow component](hexasync://docs/steps/STEP-ENVELOPE/one-canonical-workflow-component) for step placement, and [Runtime scope](hexasync://docs/expressions/CONTEXT-AND-IO/runtime-scope) for context availability.
66
+ Compiler clause order is SELECT → FROM → JOIN → WHERE → GROUP BY → ORDER BY → LIMIT/OFFSET. Binding limit/offset does not sanitize verbatim grouping/ordering entries. See [Runtime rules and authoring shape](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md) for the strict/permissive boundary, One canonical Workflow component (search the standards MCP) for step placement, and Runtime scope (search the standards MCP) for context availability.
67
67
 
68
68
  Ordinary dashboard offset searches request `{"limit":2,"offset":0,"orderBy":{"sku":"asc"},"filters":{"condition":"eq","leftOp":"active","rightOp":true}}`; next page changes offset to2 while retaining filter/order. The search applies those fields once and returns items/totalCount. Stable unique ordering is needed if duplicate sku values exist; concurrent writes can still shift offset pages. Cursor endpoints use different continuation and can ignore these order/offset fields, as detailed [below](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md). This API paging is not a QUERY_MANY transform feature.
69
69
 
@@ -89,7 +89,7 @@ These expected values follow fixed ascending unique sku order and the filtered c
89
89
 
90
90
  With those same four unchanged qualifying rows, a third offset request at offset4 returns items:[] and totalCount4; there is no generated next token. A first request without ordering does not promise A1/B2, and a nonunique sort key does not guarantee stable page boundaries. A request at offset0 with limit2 still does not add automatic looping to a QUERY_MANY step. Keep the next request's filter and fixed ordering unchanged; do not advance using totalCount alone during concurrent changes.
91
91
 
92
- **V2 cursor pages use a different envelope:** the flat body uses cursor/rel and system tuple ordering, not the offset example. On the containing worker.proxy feature build, send the returned next/prev token unchanged with the matching direction; see [Entity V2 cursors](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md#entity-v2-flat-fields-and-working-cursors) for availability, errors and the single-page VALUE MAX/MIN exception. External connector/API pagination is independently authored through [API requests and response-derived continuation](hexasync://docs/steps/API/api-pagination#complete-response-derived-cursor-loop), not through Builder fields.
92
+ **V2 cursor pages use a different envelope:** the flat body uses cursor/rel and system tuple ordering, not the offset example. On the containing worker.proxy feature build, send the returned next/prev token unchanged with the matching direction; see [Entity V2 cursors](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md#entity-v2-flat-fields-and-working-cursors) for availability, errors and the single-page VALUE MAX/MIN exception. External connector/API pagination is independently authored through API requests and response-derived continuation (search the standards MCP), not through Builder fields.
93
93
 
94
94
 
95
95