@beehexa/hexasync-ai-toolkit 2611.8.3 → 2612.3.1
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.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +3 -4
- package/.cursor-plugin/plugin.json +3 -4
- package/README.md +5 -74
- package/dist/cli.js +15 -2070
- package/gemini-extension.json +2 -11
- package/openclaw.extension.mjs +2 -3
- package/openclaw.plugin.json +2 -2
- package/package.json +3 -4
- package/plugin.json +3 -4
- package/skills/hexasync-connections/SKILL.md +11 -16
- package/skills/hexasync-connections/references/INDEX.md +20 -2
- package/skills/hexasync-connections/references/INSTALL.md +5 -48
- package/skills/hexasync-connections/references/connections.CONNECTIONS.api-recovery.md +1 -1
- package/skills/hexasync-connections/references/connections.CONNECTIONS.captured-call-and-authenticated-composition.md +2 -2
- package/skills/hexasync-connections/references/connections.CONNECTIONS.framework-understood-connection-option-catalogue.md +2 -2
- package/skills/hexasync-connections/references/connections.CONNECTIONS.how-a-step-finds-its-connection.md +2 -2
- package/skills/hexasync-connections/references/connections.CONNECTIONS.md +1 -1
- package/skills/hexasync-connections/references/connections.CONNECTIONS.one-connection-one-credential-scope.md +2 -2
- package/skills/hexasync-connections/references/connections.CONNECTIONS.related.md +5 -5
- package/skills/hexasync-connections/references/connections.CONNECTIONS.the-self-connector.md +1 -1
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +35 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +83 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +54 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.md +16 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +26 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.md +42 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.rejected-forms-non-copyable.md +23 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.return.md +84 -0
- package/skills/hexasync-connections/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-error-handling/SKILL.md +9 -16
- package/skills/hexasync-error-handling/references/INDEX.md +1 -1
- package/skills/hexasync-error-handling/references/INSTALL.md +5 -48
- package/skills/hexasync-error-handling/references/routing.NEXT.md +10 -10
- package/skills/hexasync-error-handling/references/steps.EXCEPTION.md +5 -5
- package/skills/hexasync-error-handling/references/steps.Error.md +8 -8
- package/skills/hexasync-expressions/SKILL.md +10 -24
- package/skills/hexasync-expressions/references/INDEX.md +8 -3
- package/skills/hexasync-expressions/references/INSTALL.md +5 -48
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.arguments--computed-before-the-step-runs.md +1 -1
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.dialect-classification-and-silent-scriban-fallback.md +2 -2
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.exact-mutation-timeline.md +4 -4
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.executor-results-are-not-downstream-values.md +2 -2
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.graceful-failures-and-run-errors.md +1 -1
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-call-site-scope-and-bindings.md +17 -17
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonata-engine-pinned-version-and-restrictions.md +1 -1
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.jsonpath-expressions.md +2 -2
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.related.md +1 -1
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.runtime-scope.md +12 -12
- package/skills/hexasync-expressions/references/expressions.CONTEXT-AND-IO.scriban-default-and-host-custom-builtins.host-qualified-authoring-examples.md +2 -2
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +11 -5
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +4 -4
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +3 -3
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.md +6 -4
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +12 -2
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.md +11 -200
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.return.md +2 -2
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-expressions/references/steps.JSONata.md +8 -8
- package/skills/hexasync-expressions/references/steps.Liquid.md +2 -2
- package/skills/hexasync-expressions/references/steps.Scriban.md +9 -9
- package/skills/hexasync-field-mapping/SKILL.md +13 -19
- package/skills/hexasync-field-mapping/references/INDEX.md +2 -2
- package/skills/hexasync-field-mapping/references/INSTALL.md +5 -48
- package/skills/hexasync-field-mapping/references/steps.SAVE_TASK_DATA.md +19 -19
- package/skills/hexasync-field-mapping/references/tables.TABLES.best-practices.md +1 -1
- package/skills/hexasync-field-mapping/references/tables.TABLES.fields.md +1 -1
- package/skills/hexasync-field-mapping/references/tables.TABLES.md +1 -1
- package/skills/hexasync-field-mapping/references/tables.TABLES.minimal-declaration-and-composed-usage.md +1 -1
- package/skills/hexasync-field-mapping/references/tables.TABLES.related.md +5 -5
- package/skills/hexasync-field-mapping/references/tables.TABLES.the-system-columns-are-not-declared-here.md +1 -1
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +1 -1
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.related.md +6 -6
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +1 -1
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +1 -1
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +2 -2
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +4 -4
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +1 -1
- package/skills/hexasync-field-mapping/references/transformations.TRANSFORMATIONS.when-to-use.md +1 -1
- package/skills/hexasync-metrics-reports/SKILL.md +9 -16
- package/skills/hexasync-metrics-reports/references/INDEX.md +1 -1
- package/skills/hexasync-metrics-reports/references/INSTALL.md +5 -48
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.common-metadata-properties.md +1 -1
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-configuration.md +1 -1
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.metric-kinds-reference.md +2 -2
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.related.md +4 -4
- package/skills/hexasync-metrics-reports/references/metrics.METRICS_REFERENCE.when-to-use.md +1 -1
- package/skills/hexasync-metrics-reports/references/reports.REPORTS.md +4 -4
- package/skills/hexasync-metrics-reports/references/steps.METRIC_QUERY.md +2 -2
- package/skills/hexasync-metrics-reports/references/steps.QUERY_METRICS.md +8 -8
- package/skills/hexasync-pullers/SKILL.md +11 -18
- package/skills/hexasync-pullers/references/INDEX.md +3 -3
- package/skills/hexasync-pullers/references/INSTALL.md +5 -48
- package/skills/hexasync-pullers/references/pullers.PULLERS.api-error-classification.md +3 -3
- package/skills/hexasync-pullers/references/pullers.PULLERS.entity-classification.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.entry-context-and-transitions.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.overview.md +2 -2
- package/skills/hexasync-pullers/references/pullers.PULLERS.page-termination-and-the-four-platform-guards.md +2 -2
- package/skills/hexasync-pullers/references/pullers.PULLERS.persistence-and-safe-full-pull-removal.md +2 -2
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-afterpullsteps.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-beforepullsteps.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-contracts.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-onerrorsteps.md +2 -2
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-pullsteps.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.placement-steps.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.property-reference.md +6 -6
- package/skills/hexasync-pullers/references/pullers.PULLERS.puller-completeness-contract.md +6 -6
- package/skills/hexasync-pullers/references/pullers.PULLERS.related.md +7 -7
- package/skills/hexasync-pullers/references/pullers.PULLERS.the-resume-computation.md +2 -2
- package/skills/hexasync-pullers/references/pullers.PULLERS.the-webhook-vs-puller-division.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.two-puller-host-modes-not-two-workflow-constructs.md +2 -2
- package/skills/hexasync-pullers/references/pullers.PULLERS.watermark-trustworthiness.md +1 -1
- package/skills/hexasync-pullers/references/pullers.PULLERS.worked-example-new-kind-snapshot-pull.md +2 -2
- package/skills/hexasync-pullers/references/steps.PULLER.md +8 -8
- package/skills/hexasync-pushers/SKILL.md +20 -22
- package/skills/hexasync-pushers/references/INDEX.md +2 -2
- package/skills/hexasync-pushers/references/INSTALL.md +5 -48
- package/skills/hexasync-pushers/references/pushers.PUSHERS.association-transform-routing.md +1 -1
- package/skills/hexasync-pushers/references/pushers.PUSHERS.best-practices.md +3 -3
- package/skills/hexasync-pushers/references/pushers.PUSHERS.expression-roots-differ-from-a-puller.md +1 -1
- package/skills/hexasync-pushers/references/pushers.PUSHERS.fields.md +4 -4
- package/skills/hexasync-pushers/references/pushers.PUSHERS.four-step-phases.md +1 -1
- package/skills/hexasync-pushers/references/pushers.PUSHERS.indirect-pushers.md +2 -2
- package/skills/hexasync-pushers/references/pushers.PUSHERS.md +1 -1
- package/skills/hexasync-pushers/references/pushers.PUSHERS.minimal-configuration.md +2 -2
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-beforepushsteps.md +2 -2
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-contracts.md +3 -3
- package/skills/hexasync-pushers/references/pushers.PUSHERS.placement-finalsteps.md +2 -2
- package/skills/hexasync-pushers/references/pushers.PUSHERS.related.md +6 -6
- package/skills/hexasync-pushers/references/pushers.PUSHERS.resolution-ordering-locks-and-retries.md +4 -4
- package/skills/hexasync-pushers/references/pushers.PUSHERS.worked-example-direct-push-with-dependency.md +1 -1
- package/skills/hexasync-pushers/references/steps.PUSHER.md +8 -8
- package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_STATUS.md +14 -14
- package/skills/hexasync-pushers/references/steps.UPDATE_ITEM_SYNC_PROCESS.md +48 -21
- package/skills/hexasync-query-dsl/SKILL.md +13 -17
- package/skills/hexasync-query-dsl/references/INDEX.md +2 -2
- package/skills/hexasync-query-dsl/references/INSTALL.md +5 -48
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.best-practice.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-composition.md +2 -2
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-predicates.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md +17 -9
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.filter-dsl-language-contract.md +3 -3
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.query-arguments.md +3 -3
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.value-binding-and-casts.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.between-takes-a-range-not-an-operand.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.bitwise-predicates.md +4 -4
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.last_int_unit-needs-format-on-the-left.md +3 -3
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.membership-predicates.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.null-predicates-are-unary.md +5 -5
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.regex-predicates-complete-scalar-postgresql-patterns.md +2 -2
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.text-matching-six-predicates-scalar-patterns-and-value-lists.md +2 -2
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.verbatim-scalar-comparisons.md +2 -2
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md +4 -4
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.grouping-precedence-and-exact-parentheses.md +2 -2
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.join-types.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.query-envelope.md +3 -3
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md +2 -2
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.when-to-use.md +1 -1
- package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.where-it-is-used.md +7 -7
- package/skills/hexasync-query-dsl/references/steps.QUERY_MANY.md +9 -9
- package/skills/hexasync-query-dsl/references/steps.QUERY_SINGLE.md +9 -9
- package/skills/hexasync-query-dsl/references/steps.SQL.md +12 -12
- package/skills/hexasync-query-dsl/references/steps.SQL_PROXY.md +9 -9
- package/skills/hexasync-startup-tasks-scheduling/SKILL.md +9 -16
- package/skills/hexasync-startup-tasks-scheduling/references/INDEX.md +3 -3
- package/skills/hexasync-startup-tasks-scheduling/references/INSTALL.md +5 -48
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.legacy-target-tasks.md +3 -3
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.metric-defaults.md +1 -1
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.related.md +5 -5
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.scheduler-metadata.md +6 -6
- package/skills/hexasync-startup-tasks-scheduling/references/startupTasks.STARTUP-TASKS.when-to-use.md +2 -2
- package/skills/hexasync-startup-tasks-scheduling/references/steps.ENQUEUER.md +9 -9
- package/skills/hexasync-steps-api-http/SKILL.md +19 -26
- package/skills/hexasync-steps-api-http/references/INDEX.md +9 -4
- package/skills/hexasync-steps-api-http/references/INSTALL.md +5 -48
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +11 -5
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +4 -4
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +3 -3
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.md +6 -4
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +12 -2
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.md +11 -200
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.return.md +2 -2
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.best-practices.md +1 -1
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.execution-order-and-shared-values.md +1 -1
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.md +1 -1
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.parsejson-boundary.md +2 -2
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.related.md +1 -1
- package/skills/hexasync-steps-api-http/references/responseFilters.RESPONSE-FILTERS.same-name-different-placement-grammars.md +4 -4
- package/skills/hexasync-steps-api-http/references/routing.NEXT.md +7 -7
- package/skills/hexasync-steps-api-http/references/steps.API.api-pagination.md +1 -1
- package/skills/hexasync-steps-api-http/references/steps.API.contract.md +2 -2
- package/skills/hexasync-steps-api-http/references/steps.API.failure-handling.md +2 -2
- package/skills/hexasync-steps-api-http/references/steps.API.fields.md +1 -1
- package/skills/hexasync-steps-api-http/references/steps.API.related.md +4 -4
- package/skills/hexasync-steps-api-http/references/steps.INDEX.md +90 -90
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE._history--the-per-step-occurrence-ring.md +1 -1
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.arguments-and-routing.md +2 -2
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.best-practices.md +1 -1
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.executor-selection-is-exact.md +6 -0
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.one-canonical-workflow-component.md +16 -16
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.recovery-bypasses-and-connector-restart.md +1 -1
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.related.md +1 -1
- package/skills/hexasync-steps-api-http/references/steps.STEP-ENVELOPE.shape.md +4 -4
- package/skills/hexasync-steps-control-data/SKILL.md +25 -31
- package/skills/hexasync-steps-control-data/references/INDEX.md +8 -3
- package/skills/hexasync-steps-control-data/references/INSTALL.md +5 -48
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +11 -5
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +4 -4
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +3 -3
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.md +6 -4
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +12 -2
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.md +11 -200
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.return.md +2 -2
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-steps-control-data/references/steps.BASE64_TO_MIME_TYPE.md +3 -3
- package/skills/hexasync-steps-control-data/references/steps.Begin.md +3 -3
- package/skills/hexasync-steps-control-data/references/steps.CACHE.md +4 -4
- package/skills/hexasync-steps-control-data/references/steps.Composite.md +4 -4
- package/skills/hexasync-steps-control-data/references/steps.DIRECT_INDEX.md +12 -12
- package/skills/hexasync-steps-control-data/references/steps.DOWNLOAD_CSV.md +23 -23
- package/skills/hexasync-steps-control-data/references/steps.EXCEL_READER.md +7 -7
- package/skills/hexasync-steps-control-data/references/steps.End.md +4 -4
- package/skills/hexasync-steps-control-data/references/steps.GET_KEY_VALUE.md +6 -6
- package/skills/hexasync-steps-control-data/references/steps.GraphQL.md +7 -7
- package/skills/hexasync-steps-control-data/references/steps.IF.md +12 -12
- package/skills/hexasync-steps-control-data/references/steps.IGNORE_ITEM.md +7 -7
- package/skills/hexasync-steps-control-data/references/steps.INDEX.md +48 -48
- package/skills/hexasync-steps-control-data/references/steps.INVALIDATE_CACHE.md +2 -2
- package/skills/hexasync-steps-control-data/references/steps.LOOKUP_STEP.md +8 -8
- package/skills/hexasync-steps-control-data/references/steps.OData.md +4 -4
- package/skills/hexasync-steps-control-data/references/steps.PUBLISH_EVENT.md +5 -5
- package/skills/hexasync-steps-control-data/references/steps.QueryDSL.md +3 -3
- package/skills/hexasync-steps-control-data/references/steps.REMOVE_DATA.md +7 -7
- package/skills/hexasync-steps-control-data/references/steps.RESET_ITEM.md +12 -12
- package/skills/hexasync-steps-control-data/references/steps.RESOLVE_RAW_DATA.md +11 -11
- package/skills/hexasync-steps-control-data/references/steps.Restful.md +6 -6
- package/skills/hexasync-steps-control-data/references/steps.SEED_DATA.md +10 -10
- package/skills/hexasync-steps-control-data/references/steps.SET_KEY_VALUE.md +7 -7
- package/skills/hexasync-steps-control-data/references/steps.SLEEP.md +8 -8
- package/skills/hexasync-steps-control-data/references/steps.SWITCH.md +12 -12
- package/skills/hexasync-steps-control-data/references/steps.TRACK_FOR_REMOVAL.md +12 -12
- package/skills/hexasync-steps-control-data/references/steps.UPDATE_TASK_DATA_STATUS.md +13 -13
- package/skills/hexasync-steps-control-data/references/steps.VALUES.md +12 -12
- package/skills/hexasync-steps-control-data/references/steps.VERIFY_CACHED.md +5 -5
- package/skills/hexasync-steps-control-data/references/steps.cURL.md +8 -8
- package/skills/hexasync-tables-tasks-objects/SKILL.md +11 -18
- package/skills/hexasync-tables-tasks-objects/references/INDEX.md +2 -2
- package/skills/hexasync-tables-tasks-objects/references/INSTALL.md +5 -48
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.fields.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.related.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/dependencies.DEPENDENCIES.using-resolved-prerequisite-data.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objectAssociations.OBJECT-ASSOCIATIONS.md +7 -7
- package/skills/hexasync-tables-tasks-objects/references/objects.object.best-practices-and-pitfalls.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dataprocessing.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.dependencies.md +2 -2
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.description.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.enqueue.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.fromconnectionid.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.id.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignorechange.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.ignoreremoval.md +2 -2
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.integrationtype.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.isdirtyremovable.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metricgroups.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.metrics.md +2 -2
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.name.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.newtablename.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.oldtablename.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.priority.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.puller.md +4 -4
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.pusher.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.queuer.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.toconnectionid.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.type.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.valuetablename.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.viewname.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.fields.visible.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.minimal-declaration.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/objects.object.related.md +2 -2
- package/skills/hexasync-tables-tasks-objects/references/steps.SAVE_TASK_DATA.md +16 -16
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.best-practices.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.fields.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/tables.TABLES.related.md +3 -3
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.fields.md +5 -5
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.related.md +6 -6
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.status-and-row-clocks.md +1 -1
- package/skills/hexasync-tables-tasks-objects/references/tasks.TASKS-AND-TABLES.system-column-contract.md +1 -1
- package/skills/hexasync-templates/SKILL.md +16 -30
- package/skills/hexasync-templates/references/AI-INDEX.md +36 -35
- package/skills/hexasync-templates/references/INDEX.md +9 -4
- package/skills/hexasync-templates/references/INSTALL.md +5 -48
- package/skills/hexasync-templates/references/KB-INDEX.md +98 -98
- package/skills/hexasync-templates/references/PROFILE-ROOT.composed-and-render-only-metadata.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.md +1 -2
- package/skills/hexasync-templates/references/PROFILE-ROOT.minimal-worker-facing-profile.md +2 -2
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-references.md +10 -10
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.connectors.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.dependencies.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api--gateway_api.md +14 -3
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.api_proxy.md +69 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.fail.md +76 -0
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.md +4 -2
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.records_form.md +7 -3
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.frontend-steps-creationsteps-setupsteps-authorizationsteps.step-envelope-fields.md +4 -4
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.getreadyflows.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.legacy-roots--do-not-author.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.metricgroups.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objectassociations.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.objects.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pullers.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.pushers.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.reports.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.startuptasks.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.tables.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.transformations.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.validations.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.profile-root-fields-1.webhooks.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.recommendation-selection.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.reference-composition-across-run-and-render-scope.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.rejected-reference-forms-and-safe-correction.md +1 -1
- package/skills/hexasync-templates/references/PROFILE-ROOT.related.md +1 -1
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.api_proxy.md +94 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.expressions-and-tooling.md +11 -5
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.fail.md +48 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.frontend-step-fields.md +4 -4
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.grouped-readiness-flows.md +3 -3
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.md +6 -4
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.preview-and-source-navigation.md +12 -2
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.file-import-path.md +208 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.md +11 -200
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.records_form.records_form-change-set-path.md +208 -0
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.return.md +2 -2
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.task-and-reference-data-changes.md +92 -0
- package/skills/hexasync-transformations/SKILL.md +9 -16
- package/skills/hexasync-transformations/references/INDEX.md +2 -2
- package/skills/hexasync-transformations/references/INSTALL.md +5 -48
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.explicit-mapping-for-push.md +1 -1
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.puller-mapping-transformations.md +1 -1
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.related.md +6 -6
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.renamedependency--declared-but-unimplemented.md +1 -1
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.jsonata--compute-a-field-from-a-jsonata-expression.md +1 -1
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query-argument-binding.md +2 -2
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.query_single--the-dsl-replacement-for-sql.md +4 -4
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.transformation-types.scriban--compute-a-field-from-a-scriban-expression.md +1 -1
- package/skills/hexasync-transformations/references/transformations.TRANSFORMATIONS.when-to-use.md +1 -1
- package/skills/hexasync-validations/SKILL.md +9 -16
- package/skills/hexasync-validations/references/INDEX.md +1 -1
- package/skills/hexasync-validations/references/INSTALL.md +5 -48
- package/skills/hexasync-validations/references/steps.CHECK_FORMAT.md +6 -6
- package/skills/hexasync-validations/references/validations.VALIDATIONS.fields.md +1 -1
- package/skills/hexasync-validations/references/validations.VALIDATIONS.how-validations-behave.md +2 -2
- package/skills/hexasync-validations/references/validations.VALIDATIONS.md +1 -1
- package/skills/hexasync-validations/references/validations.VALIDATIONS.not-the-query-dsl.md +1 -1
- package/skills/hexasync-webhooks/SKILL.md +12 -19
- package/skills/hexasync-webhooks/references/INDEX.md +2 -2
- package/skills/hexasync-webhooks/references/INSTALL.md +5 -48
- package/skills/hexasync-webhooks/references/steps.FORWARD.md +7 -7
- package/skills/hexasync-webhooks/references/steps.WEBHOOK_FORWARD.md +10 -10
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.best-practices.md +2 -2
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.gateway-mcp-webhook-workflow.md +1 -1
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.md +2 -2
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-finalsteps.md +1 -1
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.placement-pullsteps.md +6 -6
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.related.md +6 -6
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.autoenqueue.md +2 -2
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.dataparser.md +3 -3
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.options.md +1 -1
- package/skills/hexasync-webhooks/references/webhooks.WEBHOOKS.target-properties.pullsteps.md +1 -1
- package/.cursor-plugin/mcp.json +0 -12
- package/.mcp.json +0 -11
- package/skills/hexasync-expressions/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -42
- package/skills/hexasync-steps-api-http/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -42
- package/skills/hexasync-steps-control-data/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -42
- package/skills/hexasync-templates/references/PROFILE-ROOT.getreadyflows-1.md +0 -33
- package/skills/hexasync-templates/references/frontend.FRONTEND-FLOWS.publish_event.md +0 -42
|
@@ -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
|
|
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
|
| --- | --- |
|
package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.query-arguments.md
CHANGED
|
@@ -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.
|
|
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
|
|
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
|
|
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: _ }
|
package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operands.value-binding-and-casts.md
CHANGED
|
@@ -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
|
|
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
|
|
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
|
package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.bitwise-predicates.md
CHANGED
|
@@ -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.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.operators.membership-predicates.md
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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),
|
|
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.
|
|
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),
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.builder-condition-tree.md
CHANGED
|
@@ -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
|
|
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;
|
|
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
|
|
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
|
|
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
|
| --- | --- |
|
package/skills/hexasync-query-dsl/references/query-dsl.QUERY-DSL.the-shape.query-envelope.md
CHANGED
|
@@ -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.
|
|
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,
|
|
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
|
-
**
|
|
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
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
| QUERY transformation undeclared ARG / reserved key / list only valid with IN/NOT_IN | Transform validation runs before query; declaration/type misuse. | Correct [query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md); do not substitute unchecked raw SQL. |
|
|
11
11
|
| select must contain at least one column / select identifier invalid | Required projection absent or raw expression attempted. | Use structured [projection](query-dsl.QUERY-DSL.troubleshooting-and-canonical-references.md#select-projection). |
|
|
12
12
|
| Invalid query field name / not in allowed field set | Filter name grammar or endpoint allowlist. | Correct [Filter fields](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-fields.md), never drop the condition as recovery. |
|
|
13
|
-
|
|
|
13
|
+
| V2 cursor refused or no continuation | On a paged search, unreadable tokens give `invalid_cursor`; a cursor page with an unpositioned required boundary gives `row_without_position`. VALUE MAX/MIN intentionally return one page, ignoring supplied cursors including malformed input. | Use returned tokens unchanged with the matching direction and a containing worker.proxy build. Correct missing position data or adjust the limit deliberately; do not manufacture a token or retry the first page as a continuation. |
|
|
14
14
|
|
|
15
15
|
### Select projection
|
|
16
16
|
|
|
@@ -20,7 +20,7 @@ Query steps/transforms require at least one select entry. The object form requir
|
|
|
20
20
|
|
|
21
21
|
Minimal `select: [{alias: _, field: sku, as: item_sku}]` yields row key item_sku rather than sku. Composed joined selection [above](query-dsl.QUERY-DSL.the-shape.join-types.md) adds customer_name. Duplicate output aliases can collide in the consumed row dictionary; choose unique names. `__raw`, `__status`, `__last_seen` are syntactically projectable internal system columns; exposure/log scrubbing belongs to the result consumer, not identifier grammar. QUERY_SINGLE merge can overwrite even original `__` keys; replacement restores them; QUERY_MANY preserves projected nested keys internally. Avoid star when unintended system-column overwrite is possible.
|
|
22
22
|
|
|
23
|
-
Ordinary metrics own their projections and totals. QUERY metric **ignores authored metadata.sql.select**: totals are COUNT(source.__id) plus matched/unmatched key; details are distinct source.*. For a QUERY metric needing a title detail, requesting structured select does not reshape rows; use a query step/transform if an actual projection result is required.
|
|
23
|
+
Ordinary metrics own their projections and totals. QUERY metric **ignores authored metadata.sql.select**: totals are COUNT(source.__id) plus matched/unmatched key; details are distinct source.*. For a QUERY metric needing a title detail, requesting structured select does not reshape rows; use a query step/transform if an actual projection result is required. Transformations (search the standards MCP) own item/list result placement; [QUERY_SINGLE step](steps.QUERY_SINGLE.md) and [QUERY_MANY step](steps.QUERY_MANY.md) own executor outputs.
|
|
24
24
|
|
|
25
25
|
Minimal query step `data` fragment, assuming the UUID resolves a task containing sku=A1 and a unique source row:
|
|
26
26
|
|
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
- Use the **Builder DSL** for every profile-authored predicate or query source: query steps (`QUERY_SINGLE`/`QUERY_MANY` `data.from`/`joins`/`select`/`where`), query transformations, metric `where`/`matchedWhere`/`unmatchedWhere`, and status/removal `data.where`.
|
|
6
6
|
- Use the **Filter DSL** only for HTTP search request bodies (`filters`); it is never a profile predicate.
|
|
7
7
|
|
|
8
|
-
Pick something else when the condition is evaluated in memory against an item rather than in SQL — use
|
|
8
|
+
Pick something else when the condition is evaluated in memory against an item rather than in SQL — use Validations (search the standards MCP) or a branching step such as IF (search the standards MCP). Never fall back to the raw `QUERY` operand to express SQL the Builder lacks.
|
|
9
9
|
|
|
@@ -6,7 +6,7 @@ This is the canonical capability matrix. A field being admitted by a schema does
|
|
|
6
6
|
|
|
7
7
|
| Consumer and authored parent | Query/source/projection capability | Binding sources and precedence | Result and failure contract |
|
|
8
8
|
| --- | --- | --- | --- |
|
|
9
|
-
| Ordinary task metric `metadata.where` | Permissive Builder condition over the task value table as `_`; no generic authored `from` or structured `select`. `NOT_SYNCED` reads `metadata.joins`, but its direct join renderer does not resolve authored entity types/IDs into table names; declaring a nonempty join is not proof of an executable query. Use the resolved QUERY metric route for authored joined queries. | Generated VALUE bindings. No generic metadata argument or PARAM dictionary is supplied. | Kind-specific totals, timeline or availability facets and detail rows. Handler-owned status filters remain in effect. Normal snapshot calculation catches handler build/query errors and emits an error metric, not a successful zero; drill-down handler/search failures can propagate.
|
|
9
|
+
| Ordinary task metric `metadata.where` | Permissive Builder condition over the task value table as `_`; no generic authored `from` or structured `select`. `NOT_SYNCED` reads `metadata.joins`, but its direct join renderer does not resolve authored entity types/IDs into table names; declaring a nonempty join is not proof of an executable query. Use the resolved QUERY metric route for authored joined queries. | Generated VALUE bindings. No generic metadata argument or PARAM dictionary is supplied. | Kind-specific totals, timeline or availability facets and detail rows. Handler-owned status filters remain in effect. Normal snapshot calculation catches handler build/query errors and emits an error metric, not a successful zero; drill-down handler/search failures can propagate. Metrics (search the standards MCP) owns the error-as-data contract. |
|
|
10
10
|
| `QUERY` metric `metadata.sql` **object** | Permissive `from`, `joins`, `groupBy`, `matchedWhere`, `unmatchedWhere`; concrete TASK/REFERENCE/REPORT or exact `SELF`. Author `joins: []` even without joins: missing/null is forwarded to the resolving setter and fails null iteration; steps/transforms supply empty lists instead. Top-level `metadata.where` and authored select are not its contract. Direct V2 Filter needs an exposed source alias `_`; offset metric POST filters an outer source wrapper as `_`. | `metadata.params`, then generated Builder parameters overwrite same keys. PARAM and ARG named references can bind those values, but no `metadata.arguments` parsing, declaration checks or transformation type/list conversion is supplied. | Counts for authored matched/unmatched branches; detail request uses distinct source rows. Missing branch produces no corresponding total. Normal calculation converts handler failures to error-as-data and discards buffered facet results; drill-down invalid facet/branch or query can fail. No automatic Removed filter is added here. |
|
|
11
11
|
| `QUERY_SINGLE` transformation `metadata` | Strict `from`, `joins`, `where`, nonempty structured `select`; `SELF` uses enclosing task value table. No authored ordering/paging read. | Scalarized original item, then resolved `metadata.arguments`, then generated Builder values; later source wins. PARAM sees merged values, ARG has transform declaration checks. | First returned row merges selected keys; no row keeps item. `isReplacement:true` replaces business shape and restores original `__` keys. Missing from/select logs “could not be transformed” and keeps item; other build/query failures propagate. |
|
|
12
12
|
| `QUERY_MANY` transformation `metadata` | Same strict query, plus nonblank `fieldName`; no authored ordering/paging read. | Same transform merge/coercion. | Clone receives row list at fieldName; zero rows writes `[]`. Missing from/select/fieldName logs and returns clone unchanged. |
|
|
@@ -19,9 +19,9 @@ This is the canonical capability matrix. A field being admitted by a schema does
|
|
|
19
19
|
| Entity/metric API search request `filters` | Separate Filter tree, fields/order/offset/limit or endpoint cursor rules. | Literal request values, compiler-owned Filter parameters; no ARG/PARAM operand objects. | Offset searches return items/count; cursor consumers have endpoint-specific continuation. See [Filter request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md). |
|
|
20
20
|
| Task statistic GET `/api/tasks/{taskId}/data/details?metric=...&query=...` | query is a JSON search request query-string value, not a POST body. The endpoint constructs binary-shaped AND wrappers around metric/task selectors and user filters; this endpoint only compiles a root with string leftOp, so ordinary user predicates on the wrapped GET route are ignored. | Special __metric/__task_id (and kind-specific selectors) are traversed separately; ignore does not mean those selectors have no effect. No Builder argument block is parsed. | Statistic-owned base rule and cursor pagination remain, but accepted ordinary query.filters does **not** narrow these details. Use a supported POST entity/metric search or V2 statistic search when request filtering is required; [request envelope](query-dsl.QUERY-DSL.filter-dsl-language-contract.filter-request-envelope.md) distinguishes transport/errors. |
|
|
21
21
|
|
|
22
|
-
Ordinary handlers including COUNT, SUM, NOT_SYNCED, REGEX, AVAILABILITY, DUPLICATE, NUMBER, LOW_NUMBER, AGGREGATION and VALUE have condition read sites; their facet contracts are owned by
|
|
22
|
+
Ordinary handlers including COUNT, SUM, NOT_SYNCED, REGEX, AVAILABILITY, DUPLICATE, NUMBER, LOW_NUMBER, AGGREGATION and VALUE have condition read sites; their facet contracts are owned by Metrics (search the standards MCP). A metric kind named REGEX is not the Builder REGEX predicate.
|
|
23
23
|
|
|
24
|
-
Minimal consumer contrast: an ordinary COUNT `metadata.where` leaf over `_.sku` counts eligible matching task rows. The same leaf under a QUERY metric must be at `metadata.sql.matchedWhere` and yields its matched facet; moving it to top-level `metadata.where` does not apply it. A QUERY step using the concrete-source example below returns row/list outputs rather than facets. Mutation consumers return affected counts, not selected rows. Do not copy metric PARAM bindings into removal/status filters; use a rendered scalar VALUE there. See
|
|
24
|
+
Minimal consumer contrast: an ordinary COUNT `metadata.where` leaf over `_.sku` counts eligible matching task rows. The same leaf under a QUERY metric must be at `metadata.sql.matchedWhere` and yields its matched facet; moving it to top-level `metadata.where` does not apply it. A QUERY step using the concrete-source example below returns row/list outputs rather than facets. Mutation consumers return affected counts, not selected rows. Do not copy metric PARAM bindings into removal/status filters; use a rendered scalar VALUE there. See workflow envelope (search the standards MCP) and runtime scope (search the standards MCP) for entry/context timing.
|
|
25
25
|
|
|
26
26
|
Minimal ordinary COUNT fragment belongs directly at metric metadata; assume skuA1 and skuB2 source rows are both otherwise eligible:
|
|
27
27
|
|
|
@@ -57,7 +57,7 @@ For source A1/active=true, A1/active=false and B2/active=true, matched total is1
|
|
|
57
57
|
|
|
58
58
|
### Applying the matrix across hosts
|
|
59
59
|
|
|
60
|
-
The same condition does not imply the same input or result. The following configurations are fragments at their named parent paths; entity IDs and column names are assumed to exist. Reuse
|
|
60
|
+
The same condition does not imply the same input or result. The following configurations are fragments at their named parent paths; entity IDs and column names are assumed to exist. Reuse 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) rather than assuming a shared entry bag.
|
|
61
61
|
|
|
62
62
|
**Query step: parser strings become SQL values, then rows become workflow outputs.** This complete step uses a concrete task source; assume its sku is unique and rows A1 and B2 exist:
|
|
63
63
|
|
|
@@ -97,7 +97,7 @@ metadata:
|
|
|
97
97
|
rightOp: { type: ARG, key: sku }
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
-
The original item supplies scalar base parameters; the resolved argument sku overrides B2 with A1 without changing the original graph used for expression evaluation. Generated Builder literals, if any, overlay both. The returned clone keeps `sku: B2` and `label: incoming`, adding `matches: [{item_sku: A1}]`. With no A1 database row, matches is `[]`; missing fieldName instead leaves the clone unchanged with a warning, not an empty-list success. QUERY_SINGLE with the same metadata except fieldName merges selected keys into the item; replacement mode has a separate system-key preservation contract. PARAM sku can use the merged value without declaration membership checking; ARG sku requires a declared key when declarations are enumerable. See [Query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md), [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md) and
|
|
100
|
+
The original item supplies scalar base parameters; the resolved argument sku overrides B2 with A1 without changing the original graph used for expression evaluation. Generated Builder literals, if any, overlay both. The returned clone keeps `sku: B2` and `label: incoming`, adding `matches: [{item_sku: A1}]`. With no A1 database row, matches is `[]`; missing fieldName instead leaves the clone unchanged with a warning, not an empty-list success. QUERY_SINGLE with the same metadata except fieldName merges selected keys into the item; replacement mode has a separate system-key preservation contract. PARAM sku can use the merged value without declaration membership checking; ARG sku requires a declared key when declarations are enumerable. See [Query arguments](query-dsl.QUERY-DSL.operands.query-arguments.md), [Query envelope](query-dsl.QUERY-DSL.the-shape.query-envelope.md) and Transformations (search the standards MCP).
|
|
101
101
|
|
|
102
102
|
**Status and removal: filter rendering does not create a SQL argument bag.** Minimal status-step data, assuming a resolved task and valid runStart in context:
|
|
103
103
|
|
|
@@ -127,7 +127,7 @@ data:
|
|
|
127
127
|
rightOp: { type: VALUE, val: A1 }
|
|
128
128
|
```
|
|
129
129
|
|
|
130
|
-
Assume one runStart was established before saving, save recorded positive task-seen accounting, and two non-Removed A1 rows have last-seen values respectively before and equal to runStart. Only the older row qualifies: the host ANDs the authored equality with last-seen strictly before runStart and not-Removed. Nonpositive recorded seen skips the sweep; missing/unparseable runStart fails instead of choosing a new boundary. Do not infer a fail-closed guard from absent seen accounting: standalone sweeps without that key can run. The corresponding status step permits absent/empty where to target all transition-eligible rows and can fall back to now when runStart is unavailable; it is not equivalent to removal. A filter using `ARG wantedSku` merely because root arguments declared it is a **non-copyable unsupported binding assumption** on either mutation host. Use the literal VALUE above, or a correctly escaped scalar VALUE rendered from available step context, rather than expecting SQL PARAM lookup. See
|
|
130
|
+
Assume one runStart was established before saving, save recorded positive task-seen accounting, and two non-Removed A1 rows have last-seen values respectively before and equal to runStart. Only the older row qualifies: the host ANDs the authored equality with last-seen strictly before runStart and not-Removed. Nonpositive recorded seen skips the sweep; missing/unparseable runStart fails instead of choosing a new boundary. Do not infer a fail-closed guard from absent seen accounting: standalone sweeps without that key can run. The corresponding status step permits absent/empty where to target all transition-eligible rows and can fall back to now when runStart is unavailable; it is not equivalent to removal. A filter using `ARG wantedSku` merely because root arguments declared it is a **non-copyable unsupported binding assumption** on either mutation host. Use the literal VALUE above, or a correctly escaped scalar VALUE rendered from available step context, rather than expecting SQL PARAM lookup. See TRACK_FOR_REMOVAL (search the standards MCP), UPDATE_TASK_DATA_STATUS (search the standards MCP) and Pull lifecycle (search the standards MCP).
|
|
131
131
|
|
|
132
132
|
**Non-query argument placement is an expression site, not another Builder consumer.** Minimal root `arguments: {wantedSku: A1}` creates parser string A1 on a step that consumes arguments. A composed ordered root block can read an earlier string:
|
|
133
133
|
|
|
@@ -137,5 +137,5 @@ arguments:
|
|
|
137
137
|
- { index: 2, key: repeatedSku, expression: '{{ __this.arguments.wantedSku }}' }
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
-
With an ordinary step argument context, both values resolve to A1. This is argument resolution, not a database equality test or a count. Pasting `{op: '=', data: ...}` at arguments is a **non-copyable rejected Builder placement**: object dispatch selects argument keys, not condition compilation. Keep expressions here and move the condition to a real metadata.where/data.where host from the matrix. SQL/Nested_SQL transformations can consume argument bindings but remain raw-SQL hosts; their arguments alone do not activate Builder strictness, source resolution or structured projection. See
|
|
140
|
+
With an ordinary step argument context, both values resolve to A1. This is argument resolution, not a database equality test or a count. Pasting `{op: '=', data: ...}` at arguments is a **non-copyable rejected Builder placement**: object dispatch selects argument keys, not condition compilation. Keep expressions here and move the condition to a real metadata.where/data.where host from the matrix. SQL/Nested_SQL transformations can consume argument bindings but remain raw-SQL hosts; their arguments alone do not activate Builder strictness, source resolution or structured projection. See Map arguments (search the standards MCP), Ordered arguments (search the standards MCP) and SQL transformations (search the standards MCP).
|
|
141
141
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
Use it when a workflow needs a list of rows from a profile table — for example to iterate, count or compare.
|
|
12
12
|
|
|
13
|
-
Choose something else when you need exactly one row (use [`QUERY_SINGLE`](steps.QUERY_SINGLE.md#contract), which returns `{row, found}`), when you need a previously executed step's output (use
|
|
13
|
+
Choose something else when you need exactly one row (use [`QUERY_SINGLE`](steps.QUERY_SINGLE.md#contract), which returns `{row, found}`), when you need a previously executed step's output (use `LOOKUP_STEP` (search the standards MCP)), or when the data lives in an external system (use an API step).
|
|
14
14
|
|
|
15
15
|
## Syntax
|
|
16
16
|
|
|
@@ -70,9 +70,9 @@ Choose something else when you need exactly one row (use [`QUERY_SINGLE`](steps.
|
|
|
70
70
|
|
|
71
71
|
A concrete source with a short lowercase alias, an explicit column list and a `where` that bounds the result: the step adds no limit and holds every row in memory, so the predicate is what keeps the output small. Runtime values go through `arguments` and `PARAM`, never into identifiers.
|
|
72
72
|
|
|
73
|
-
**Output:** `_outputs.<key>` is `{rows: [ {column: value, …}, … ], count: N}`. `rows` is always a list (empty when nothing matches) and `count` is its length; a selected SQL `NULL` stays a `null` value. Rows are not deduplicated, joins can multiply them, no ordering is promised, and no limit or paging is added — the whole result is held in memory. The step only reads; it does not save, index or enqueue. **Failure:** configuration, resolution and database errors fail the step (no graceful empty result); routing on failure is described in the
|
|
73
|
+
**Output:** `_outputs.<key>` is `{rows: [ {column: value, …}, … ], count: N}`. `rows` is always a list (empty when nothing matches) and `count` is its length; a selected SQL `NULL` stays a `null` value. Rows are not deduplicated, joins can multiply them, no ordering is promised, and no limit or paging is added — the whole result is held in memory. The step only reads; it does not save, index or enqueue. **Failure:** configuration, resolution and database errors fail the step (no graceful empty result); routing on failure is described in the envelope error contract (search the standards MCP).
|
|
74
74
|
|
|
75
|
-
Shared envelope fields (`key`, `rootStep`, `next`, `onError`, `provider`/`displayType`, `data` vs compatible `input`, `arguments`, root `maxStepIterations`) are owned by
|
|
75
|
+
Shared envelope fields (`key`, `rootStep`, `next`, `onError`, `provider`/`displayType`, `data` vs compatible `input`, `arguments`, root `maxStepIterations`) are owned by STEP-ENVELOPE (search the standards MCP).
|
|
76
76
|
|
|
77
77
|
## Fields
|
|
78
78
|
|
|
@@ -405,7 +405,7 @@ Syntax: `logOutput: <boolean>`
|
|
|
405
405
|
|
|
406
406
|
Syntax: `maxStepIterations: <number | null>`
|
|
407
407
|
|
|
408
|
-
`maxStepIterations: <integer >= 1>` — caps how many times this step key may run in one workflow run; exceeding it fails the run and bypasses `onError`. A root `maxStepIterations` takes precedence. See
|
|
408
|
+
`maxStepIterations: <integer >= 1>` — caps how many times this step key may run in one workflow run; exceeding it fails the run and bypasses `onError`. A root `maxStepIterations` takes precedence. See cross-cutting step flags (search the standards MCP).
|
|
409
409
|
|
|
410
410
|
```yaml
|
|
411
411
|
- key: READ_ORDERS
|
|
@@ -480,7 +480,7 @@ With rows `A1` and `B2` in the task, `_outputs.READ` is `{rows: [{sku: A1}, {sku
|
|
|
480
480
|
next: null
|
|
481
481
|
```
|
|
482
482
|
|
|
483
|
-
|
|
483
|
+
`VALUES` (search the standards MCP) publishes `{sku: "A1", …}`; READ binds it as a parameter and yields `{rows: [{sku: "A1"}], count: 1}` when such a row exists; the `Scriban` (search the standards MCP) step then yields `{matched: 1}`. With no matching row READ yields `{rows: [], count: 0}`.
|
|
484
484
|
|
|
485
485
|
## Boundaries and errors
|
|
486
486
|
|
|
@@ -502,9 +502,9 @@ With rows `A1` and `B2` in the task, `_outputs.READ` is `{rows: [{sku: A1}, {sku
|
|
|
502
502
|
|
|
503
503
|
## Related
|
|
504
504
|
|
|
505
|
-
-
|
|
505
|
+
- Step envelope (search the standards MCP)
|
|
506
506
|
- [Builder Query DSL](query-dsl.QUERY-DSL.runtime-rules-and-authoring-shape.md)
|
|
507
|
-
-
|
|
508
|
-
-
|
|
507
|
+
- Runtime context (search the standards MCP)
|
|
508
|
+
- Tasks and tables (search the standards MCP)
|
|
509
509
|
- [`QUERY_SINGLE`](steps.QUERY_SINGLE.md#contract)
|
|
510
|
-
-
|
|
510
|
+
- Step family (search the standards MCP)
|