You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
area: app platformApp registry, install flow, permissions, extension surfaces, connector runtime contractsarea: integrationsExternal services, optional connectors, import/export contractscommunity editionMust work in the free local/community edition without requiring Posnic CloudenhancementNew feature or requesthelp wantedExtra attention is neededneeds evidenceNeeds reproducible evidence before stronger product claimssize: mediumMedium task that may need a small design or multiple tests
The acceptance criteria are a good fit for the outbox contract in api/src/sync/outbox.js: it explicitly distinguishes state rows (dedupe by {collection, documentId}) from sale events (never dedupe). A few failure-path details would make the fixture especially valuable:
Test the crash window after the remote request succeeds but before resolve() deletes the marker. The next drain must repeat safely, so the connector needs a stable event/idempotency key (not a fresh request ID) and the receiver must tolerate the duplicate.
Have the drain claim rows atomically (lease/lockedUntil or an equivalent compare-and-set) before sending. Otherwise two workers/tills can deliver the same event concurrently. Expired leases should become eligible again after a process kill.
Assert retry classification explicitly: timeout/connection reset/5xx and 429 retry with bounded exponential backoff (honouring Retry-After when sane); 4xx other than 408/429 goes straight to dead-letter. Cap attempts and persist lastErrorCode, nextAttemptAt, and deadLetteredAt rather than relying only on logs.
For state rows, verify a later enqueue updates the pending marker without resetting createdAt; for event rows, verify three sales produce three independently resolvable records. Also assert payloads/errors are redacted and that an outbox failure never changes the sale response, as promised by this module.
A deterministic fake receiver that records idempotency keys and can fail on Nth call should cover all of this without real endpoints.
The acceptance criteria are a good fit for the outbox contract in api/src/sync/outbox.js: it explicitly distinguishes state rows (dedupe by {collection, documentId}) from sale events (never dedupe). A few failure-path details would make the fixture especially valuable:
Test the crash window after the remote request succeeds but before resolve() deletes the marker. The next drain must repeat safely, so the connector needs a stable event/idempotency key (not a fresh request ID) and the receiver must tolerate the duplicate.
Have the drain claim rows atomically (lease/lockedUntil or an equivalent compare-and-set) before sending. Otherwise two workers/tills can deliver the same event concurrently. Expired leases should become eligible again after a process kill.
Assert retry classification explicitly: timeout/connection reset/5xx and 429 retry with bounded exponential backoff (honouring Retry-After when sane); 4xx other than 408/429 goes straight to dead-letter. Cap attempts and persist lastErrorCode, nextAttemptAt, and deadLetteredAt rather than relying only on logs.
For state rows, verify a later enqueue updates the pending marker without resetting createdAt; for event rows, verify three sales produce three independently resolvable records. Also assert payloads/errors are redacted and that an outbox failure never changes the sale response, as promised by this module.
A deterministic fake receiver that records idempotency keys and can fail on Nth call should cover all of this without real endpoints.
area: app platformApp registry, install flow, permissions, extension surfaces, connector runtime contractsarea: integrationsExternal services, optional connectors, import/export contractscommunity editionMust work in the free local/community edition without requiring Posnic CloudenhancementNew feature or requesthelp wantedExtra attention is neededneeds evidenceNeeds reproducible evidence before stronger product claimssize: mediumMedium task that may need a small design or multiple tests
Activity
flowpatch-reliability commentedon Sep 3, 2026
The acceptance criteria are a good fit for the outbox contract in
api/src/sync/outbox.js: it explicitly distinguishes state rows (dedupe by{collection, documentId}) from sale events (never dedupe). A few failure-path details would make the fixture especially valuable:resolve()deletes the marker. The next drain must repeat safely, so the connector needs a stable event/idempotency key (not a fresh request ID) and the receiver must tolerate the duplicate.lockedUntilor an equivalent compare-and-set) before sending. Otherwise two workers/tills can deliver the same event concurrently. Expired leases should become eligible again after a process kill.Retry-Afterwhen sane); 4xx other than 408/429 goes straight to dead-letter. Cap attempts and persistlastErrorCode,nextAttemptAt, anddeadLetteredAtrather than relying only on logs.createdAt; for event rows, verify three sales produce three independently resolvable records. Also assert payloads/errors are redacted and that an outbox failure never changes the sale response, as promised by this module.A deterministic fake receiver that records idempotency keys and can fail on Nth call should cover all of this without real endpoints.
flowpatch-reliability commentedon Sep 3, 2026
The acceptance criteria are a good fit for the outbox contract in
api/src/sync/outbox.js: it explicitly distinguishes state rows (dedupe by{collection, documentId}) from sale events (never dedupe). A few failure-path details would make the fixture especially valuable:resolve()deletes the marker. The next drain must repeat safely, so the connector needs a stable event/idempotency key (not a fresh request ID) and the receiver must tolerate the duplicate.lockedUntilor an equivalent compare-and-set) before sending. Otherwise two workers/tills can deliver the same event concurrently. Expired leases should become eligible again after a process kill.Retry-Afterwhen sane); 4xx other than 408/429 goes straight to dead-letter. Cap attempts and persistlastErrorCode,nextAttemptAt, anddeadLetteredAtrather than relying only on logs.createdAt; for event rows, verify three sales produce three independently resolvable records. Also assert payloads/errors are redacted and that an outbox failure never changes the sale response, as promised by this module.A deterministic fake receiver that records idempotency keys and can fail on Nth call should cover all of this without real endpoints.
test(webhooks): cover bounded retry and safe dead letters
test(webhooks): cover bounded retry and safe dead letters