From 9a9e69f417496ec4653828e32e1c9c4ca7964750 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dovil=C4=97=20Sli=C5=BEyt=C4=97?= Date: Tue, 24 Nov 2026 12:42:09 +0100 Subject: [PATCH] Stop treating iterate or a request chain in an instant trigger as a defect The instant-trigger rule said the trigger's own communication supports one request and no iteration, so reviews rewrote working triggers. Pagination is not applied there, but response.iterate and a communication array do run. Keep the pagination limit, drop the iterate/single-request blocker, and say what to check instead (dependence on a second page). Co-Authored-By: Claude Fable 5.2 --- .../current-knowledge/guides/webhooks.md | 5 +++-- .../references/webhooks-and-polling.md | 22 ++++++++++++++----- 2 files changed, 20 insertions(+), 7 deletions(-) diff --git a/skills/make-custom-apps/examples/current-knowledge/guides/webhooks.md b/skills/make-custom-apps/examples/current-knowledge/guides/webhooks.md index be98999..3969c12 100644 --- a/skills/make-custom-apps/examples/current-knowledge/guides/webhooks.md +++ b/skills/make-custom-apps/examples/current-knowledge/guides/webhooks.md @@ -36,7 +36,7 @@ A challenge reply proves that the endpoint answered a handshake. It is not reque ## Delivery and acknowledgement -**Documented behaviour.** The webhook's `respond` sets the HTTP answer to the provider (`type`, `status`, `headers`, `body`). Providers usually retry unless they receive a 2xx. `iterate` splits a payload into several bundles, `output` shapes each one, and an instant trigger yields exactly one bundle per webhook delivery. Instant-trigger parameters are static only, communication is optional, single request, with no iterate or pagination in the trigger's own communication. +**Documented behaviour.** The webhook's `respond` sets the HTTP answer to the provider (`type`, `status`, `headers`, `body`). Providers usually retry unless they receive a 2xx. `iterate` splits a payload into several bundles, `output` shapes each one, and an instant trigger yields exactly one bundle per webhook delivery. Instant-trigger parameters are static only and communication is optional. The documentation page lists the trigger's own communication as a single request with no iterate or pagination. Pagination is indeed not applied there; `response.iterate` and a `communication` array have been observed to run in production, so their presence alone is not a defect (see Exceptions and applicability). **Inferred implementation pattern.** Delivery acknowledgement (`CK-WEBHOOK-DELIVERY`) and workspace/user intent are separate things: the 2xx tells the *provider* it can stop retrying, while `uid` or a webhook per connection decides *which Make user* gets the event. The receiver's `output` keys should match the trigger interface, so the bundle the user sees is the bundle the interface declares. @@ -54,7 +54,7 @@ A challenge reply proves that the endpoint answered a handshake. It is not reque ## Authoring checklist in prose -Pick the delivery kind first (shared, attached dedicated, manual dedicated). For attached hooks, write the provider's registration and removal protocol, persist everything detach needs, and keep the user-facing output and interface consistent with the event that survives processing. Use webhook conditions to filter events and `verification` only for challenges. An instant trigger's own communication is limited to one optional enrichment request without iterate or pagination; webhook-level `iterate` can split batched events instead. A responder module has a different contract (it answers the caller) and no ordinary output interface. Shared webhooks need publication in addition to configuration, so a complete definition is not evidence that account routing or live delivery has been tested. Retries, duplicate delivery and lifecycle updates need their own tests against the provider. Manual dedicated and shared hooks legitimately have no attach/detach calls. +Pick the delivery kind first (shared, attached dedicated, manual dedicated). For attached hooks, write the provider's registration and removal protocol, persist everything detach needs, and keep the user-facing output and interface consistent with the event that survives processing. Use webhook conditions to filter events and `verification` only for challenges. An instant trigger's own communication is an optional read-back of the delivered record and never paginates; webhook-level `iterate` splits batched events. A trigger that already uses `response.iterate` or several requests in its own communication is not rewritten for that reason: check only whether it depends on more than the first page. A responder module has a different contract (it answers the caller) and no ordinary output interface. Shared webhooks need publication in addition to configuration, so a complete definition is not evidence that account routing or live delivery has been tested. Retries, duplicate delivery and lifecycle updates need their own tests against the provider. Manual dedicated and shared hooks legitimately have no attach/detach calls. ## Rationale @@ -76,6 +76,7 @@ The platform hides most of the plumbing, so each part can silently fail: an atta * Shared webhooks normally do not need attach/detach. * `verification` is needed only if the provider sends a handshake; if it does not, omit the block (the fixture models a provider that does). * Whether a given provider retries, signs or rotates secrets is provider-side and outside this tree. +* `response.iterate` or a `communication` array in an instant trigger's own communication is not a defect on its own, although the documentation page lists `iterate` as unavailable: both have been observed to run in production. Pagination is not applied there, so a read-back that needs a second page can miss the delivered record; report that case with its evidence class instead of rewriting the trigger. * **Approval impact** ([Approval gating](../../../references/review-and-qa.md#2a-approval-gating)). Missing signature or verification handling (class (b), fixed, never rejected) matters only when the provider documents a verification protocol; implement the documented verification when the documentation determines it (approve with adjustments), otherwise report an unverified advisory finding naming the missing fact; challenge handling, an authentication requirement and ingress proof are separate claims. Missing setup instructions for a manually registered webhook are advisory. ## Evidence and limits diff --git a/skills/make-custom-apps/references/webhooks-and-polling.md b/skills/make-custom-apps/references/webhooks-and-polling.md index 158da1a..2cb1677 100644 --- a/skills/make-custom-apps/references/webhooks-and-polling.md +++ b/skills/make-custom-apps/references/webhooks-and-polling.md @@ -58,8 +58,9 @@ inside an HTTP request's `response` object simply because an action uses that sh - Use `body`, `headers`, `query`, and `method` for the incoming webhook request. - Separate challenge verification from ordinary events with `verification.condition`. Set the exact verification response status, encoding, headers, and body. -- Use `condition` for documented event filtering. For batched event payloads, use - webhook iteration and output; do not place that iteration in instant-trigger communication. +- Use `condition` for documented event filtering. For batched event payloads, split the + delivery with webhook-level `iterate` and `output`; the instant trigger's own `iterate` + works on the response of its read-back request, not on the delivered payload. - Validate the provider's event-authentication mechanism separately from the challenge. A successful challenge is not proof that later deliveries are authentic. - Verify signature algorithms, timestamp/replay rules, and raw-byte requirements before @@ -68,9 +69,20 @@ inside an HTTP request's `response` object simply because an action uses that sh - Treat duplicate delivery as possible. Preserve a useful event ID and document the deduplication responsibility; do not promise exactly-once processing from HTTP delivery. -An instant trigger can optionally make **one** enrichment request for each webhook -item, using `payload.*`. Its communication does not support iteration or pagination. -After that request, `body` is the enrichment response, not the original webhook body. +An instant trigger can optionally read the record back for each webhook item, using +`payload.*`. After that request, `body` is the response, not the original webhook body. +Its communication does not paginate: every request is sent once, so only the first page of +a list endpoint is read. + +The instant-trigger documentation page also says that `iterate` is not available. In +practice, `response.iterate` (with its `condition`) and a `communication` array of several +requests do run in an instant trigger; this has been observed in production runs. In a +review, do not rewrite a trigger only because it uses `iterate` or more than one request: +that is not a defect and the rewrite changes working behaviour. What to check instead is +whether the trigger depends on a second page (for example a list filtered down to the +delivered ID, where the record may not be on the first page), and report that with its +evidence class. When building a new trigger, prefer a single read-back request by ID where +the provider offers one. Sources: [Webhook communication](https://developers.make.com/custom-apps-documentation/app-components/webhooks.md), [Instant-trigger constraints](https://developers.make.com/custom-apps-documentation/app-components/modules/instant-trigger.md).