Skip to content

Stop treating iterate or a request chain in an instant trigger as a defect - #13

Open
Dovilė Sližytė (dovile-make) wants to merge 1 commit into
mainfrom
fix/instant-trigger-iterate-and-request-chain
Open

Dovilė Sližytė (dovile-make) wants to merge 1 commit into
mainfrom
fix/instant-trigger-iterate-and-request-chain

Conversation

@dovile-make

Copy link
Copy Markdown
Contributor

Problem

references/webhooks-and-polling.md says an instant trigger "can optionally make one enrichment request" and that "its communication does not support iteration or pagination". guides/webhooks.md repeats it as documented behaviour.

In a batch of 40 blind reviews, two reviewers applied this as an established functional failure (class (a)) and rewrote every instant trigger that used response.iterate or a second request: 40 triggers across two apps. Those triggers work. Successful runs of them exist, and a run with a made-up record ID produced no bundle while real deliveries produced one, which is the iterate.condition doing its job.

What holds in practice:

  • response.iterate (with condition) runs in an instant trigger's own communication.
  • A communication array of several requests runs there too.
  • pagination is not applied: each request is sent once.

The instant-trigger documentation page lists both iterate and pagination as unavailable. It is right about pagination only; the same page also describes the iterate.container variables further down.

Change

  • references/webhooks-and-polling.md: keep "does not paginate"; say that iterate and a request chain run, that their presence alone is not a defect and must not be rewritten, and what to check instead (a read-back that needs a second page can miss the delivered record). New triggers still prefer one read-back by ID.
  • guides/webhooks.md: the same correction in "Documented behaviour", in the applicability paragraph, and one line under "Exceptions and applicability".

Wording only; no schema, script or fixture changes.

Checks

  • npm run check passes.
  • npm run test:node did not finish on my machine (it hung without output, unrelated to this change, which touches two Markdown files); relying on CI for it.

🤖 Generated with Claude Code

…efect

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 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant