Skip to content

Persist PostgreSQL outbox backoff without poisoning broker outages - #672

Merged
thomhurst merged 6 commits into
mainfrom
issue-666-postgres-backoff
Nov 13, 2026
Merged

thomhurst merged 6 commits into
mainfrom
issue-666-postgres-backoff

Conversation

@thomhurst

@thomhurst thomhurst commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

PostgreSQL outbox dispatch now persists exponential backoff for retryable send failures without exhausting the poison budget. Permanent native-send decisions use the registered scoped IFailureClassifier; failed batches isolate each row through native single sends so a rejected row does not retain healthy neighbours.

Closes #666

Part of #646; SQL Server #667 and MySQL #668 are separate deliverables.

Retry retains pending work with a 1-second to 5-minute durable deadline and a diagnostic counter saturating at 30. DeadLetter immediately uses the existing fenced dead-copy/ordered-barrier transition; Discard completes the fenced row. Classifiers receive original identity, headers, type, attempt and scoped services with tenant restoration. Local handlers retain their existing consume classification. Unmatched native failures use DefaultFailureClassifier, so applications must configure permanent native-exception rules; otherwise non-contract errors still retry indefinitely. The website includes a Service Bus IsTransient example and explains ordered-key blocking and unclassified errors.

Failed native batches get one bounded per-row isolation pass under their existing live claims. Partially successful batches can duplicate sends, as allowed by at-least-once delivery. Cancellation/known expiry stop isolation. Successful native sends and batch completion SQL are unchanged. Ordered preparation failures and explicit store failure recording retain MaxDispatchAttempts, including prior diagnostic attempts.

Native and existing features: reuse native client send retries and SendAsync, registered IFailureClassifier/FailureClassifierBuilder, existing scoped tenant context, PostgreSQL fenced claims and terminal mutations, deliver_at eligibility, and ordered head barriers. Native-first inspection checked existing Service Bus/Kafka/SQS/RabbitMQ batch implementations and the pinned Service Bus 7.21.0 checksum-verified exception source. SQS exposes native partial response details, but ITransport.SendBatchAsync has no portable per-row receipt. D71 records why a bounded isolation pass uses the existing single-send API rather than inferring per-row outcomes or introducing a retry scheduler. No broker client configuration or retry implementation is duplicated.

Validation: 214 selected real-PostgreSQL cases passed across net10.0/net11.0: 22 DispatchBackoffTests cases (outages beyond budget, replacement workers, deadline/fencing/rollback/saturation, scoped native Retry/DeadLetter/Discard through actual keyed DI registrations, mixed rejected/healthy batches and partial-success duplicates), plus 192 direct/ordered/poison/local/shutdown/maintenance/tenant cases. npm ci, npm run build and git diff --check passed. No broker adapters changed; tests exercise dispatcher outcomes against real PostgreSQL with controlled native-send failures.

Per-message cost: unchanged successful native sends, SQL, awaits and allocations, 0 B. Additional scopes, context views and the bounded isolation pass run only after send failure; no benchmark required.

Validation evidence measured on 2d065a2: /Users/tom/git/Relayer-evidence/pr-672/2d065a2d1ecb3938f638e1eda7165c89135db06a/ (logs, reports, regression source, binaries, native source evidence and SHA256SUMS). All 548 archived files were compared to their originals and the manifest was reverified before this citation. Earlier validation remains under the previously cited head-specific evidence directories.

Rebased onto fresh main after MySQL #676 landed. The only conflict was the appended design record; preserved MySQL D70 and renamed PostgreSQL D71. Final head e809dd18782773af0dccf0d8d2a64c09f8c1d7ce has identical PostgreSQL code/tests and shared ordered-dispatch contract to the measured head, so no tests were rerun after this docs-only resolution. Rebase proof and verified SHA256SUMS: /Users/tom/git/Relayer-evidence/pr-672/e809dd18782773af0dccf0d8d2a64c09f8c1d7ce/. GitHub reports the final head mergeable.

Review correction in 0b3a76ef6c3828b91d7132d54da5cc31034194fa: failed-batch isolation stops after the first single-send Retry. Remaining claims receive the same fenced durable retry without further native sends or classification. DeadLetter/Discard continue isolation. Successful sends are unchanged; failure-path-only work, no benchmark required. Reuses existing SendAsync, IFailureClassifier and fenced RecordDispatchFailureAsync; no additional native feature is duplicated.

Validation: a new four-row outage regression failed on both targets before the fix (5 attempts), then all 24 DispatchBackoffTests cases passed across net10.0/net11.0 (2 outage attempts and durable deadlines on every row). npm ci, npm run build and git diff --check passed. Eight retained source/report/log files were compared to originals and their SHA256SUMS reverified under /Users/tom/git/Relayer-evidence/pr-672/0b3a76ef6c3828b91d7132d54da5cc31034194fa/.

Rebased onto fresh main 65e4da3 after SQL Server #674 landed. Preserved its D71 and renumbered PostgreSQL D72. Current head 0b6ed14496d66561169fdf705f6655f9f0ad703d retains identical PostgreSQL source/tests and affected PostgreSQL site pages to measured 0b3a76ef6c3828b91d7132d54da5cc31034194fa. No code conflicts; tests were not rerun for this docs-only conflict resolution. Range-diff, identity proof and diff check are retained with SHA256SUMS at /Users/tom/git/Relayer-evidence/pr-672/0b6ed14496d66561169fdf705f6655f9f0ad703d/.

Review fix in 4b5c25609b958c5deedeff32236677754c0f3b2b: local-handler Retry failures retain their original MaxDispatchAttempts budget in direct and ordered dispatch; native broker sends retain durable indefinite backoff. Actual local-handler Retry tests replace forced DeadLetter cases and cover rollback, disposal and unrelated-key progress. Updated worker option summaries, D72 and site; corrected stale maintenance backoff text. Native/existing reuse: existing local consume classification, fenced failure SQL and ordered poison transitions; no native capability duplicated. Per-message cost: successful sends unchanged, 0 B; failure-path branch only.

Validation: regression failed on both targets before the fix; all 124 selected LocalTransportTests/PoisonTests/OrderedDispatchTests/DispatchBackoffTests cases passed across net10/net11 after it. npm ci, npm run build and git diff --check passed. Ten source/report/log files were compared to originals and SHA256SUMS reverified under /Users/tom/git/Relayer-evidence/pr-672/4b5c25609b958c5deedeff32236677754c0f3b2b/.

CI test-contract correction in 5794b049fad230c7df638669025fbca2adb08877: recovery/telemetry and CDC restart tests explicitly advance the new durable retry deadline. Shared direct-dispatch tests distinguish PostgreSQL isolation/completion with permitted duplicates from MySQL/SQL Server whole-batch retention. CDC polling reuses a database connection to avoid unpooled session churn. Test-only correction; no docs impact or production/per-message cost change. Existing native send isolation and fenced durable retry are reused, with no duplicated native capability.

Validation: 84/86 initial focused PostgreSQL cases passed; the remaining two exposed the CDC restart deadline assumption, then all 20 CDC cases passed after correction (the other 66 unchanged cases were not rerun). The shared partial-batch contract passed on MySQL and SQL Server across both targets (4 cases); git diff --check passed. All 16 archived source/report/log files were compared to originals and SHA256SUMS reverified at /Users/tom/git/Relayer-evidence/pr-672/5794b049fad230c7df638669025fbca2adb08877/.

Rebased onto main 04ee8e7 in 335f9dcec54f9f82350243316f45616e433f28ad: preserved main’s consumer handler-registration D72 and renumbered PostgreSQL D73. Production PostgreSQL sources are byte-identical to prior reviewed head 5794b04. All 80 focused DispatchBackoffTests, OutboxTelemetryTests and ChangeCaptureTests cases passed across net10/net11 after the upstream handler API change; git diff --check passed. No additional site edits or per-message cost changes. Rebase proof, logs, test reports, test sources and loaded binaries retained at /Users/tom/git/Relayer-evidence/pr-672/335f9dcec54f9f82350243316f45616e433f28ad; all 585 archived files were compared to originals where available and SHA256SUMS reverified.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: feb8844c-ed45-4393-8dc5-00b5f4129ead
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@thomhurst

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T14:03:56.336723Z 335f9dc Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown

Review of #672 (durable backoff for PostgreSQL native-send failures)

The mechanics look sound. The retry statement is fenced, and the deadline is stored in the row, so a restart can't cause a hot retry loop. The counter saturates, and the direct, ordered and maintenance paths share one eligibility rule. The tests and docs cover the new behaviour and D69 is recorded.

Blocking: no cap on retries for a permanently failing send

PostgreSqlDirectDispatcher.cs:245 and the ordered path now send every non-DeadLetter send failure through Retry (PostgreSqlPoisonSql.Retry), which never reaches MaxDispatchAttempts. Before this change a message the broker permanently rejects dead-lettered after 10 attempts. Examples are an oversized message, an authorization failure or a missing destination. Now it is retried every 5 minutes indefinitely.

  • Ordered keys: one such head row blocks its key forever. That is the stall the "poison messages dead-lettered rather than stalling" rule in AGENTS.md is meant to prevent.
  • Batches: a failed SendBatchAsync applies the failure to all live rows. One bad row keeps backing off the good ones, and nothing isolates it.
  • Classifier: the PR text says only local handlers use IFailureClassifier. Native transports have no permanent-versus-transient decision at all.
  • Local handlers: failures not classified permanent now retry forever with no ceiling. ValidateLocal misconfiguration lands on the same path.

Suggested fix: keep durable backoff, but still count attempts against a ceiling, and dead-letter when it is exceeded (a long-horizon attempt or age option). Alternatively, classify transport exceptions. Azure Service Bus has ServiceBusException.IsTransient, and the AWS and RabbitMQ clients expose similar signals. Only transient errors would use Retry, and the rest would go through Failure. That keeps a broker outage from burning the budget without turning poison into an infinite loop. If unbounded retry is intended, D69 and the docs should say plainly that an operator must intervene for permanent rejections, and the MaxDispatchAttempts doc comment should not read as the poison control.

Minor

  • The ordered path passes retryable: preparedForSend, and the direct path passes retryable: true unconditionally. A shared helper would make the rule explicit and uniform.
  • Retry uses the caller's clock (@now) in the store but clock_timestamp() in the lane. Harmless, but worth a comment.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 6fa5796c51

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomhurst

Copy link
Copy Markdown
Owner Author

Addressed Claude's review in 1c8b266 using its explicitly offered documented-contract alternative. D69 and the PostgreSQL reference now state that all native send exceptions retry indefinitely, including permanent rejections; operators must repair them, ordered keys remain blocked, and failed batches back off all claimed rows. They also state that unclassified local failures/configuration errors require repair. The three stale worker MaxDispatchAttempts summaries now describe the actual preparation/store failure budget. A new ceiling would reintroduce outage-driven poison transitions; transport classification is not added by this PostgreSQL durability change.

Minor suggestions disposition: a shared helper is a non-blocking optional refactor; the two call sites intentionally differ because ordered preparation errors retain their budget. The clock-source comment is non-blocking: the explicit store clock remains caller-supplied while lane transactions use database time; changing or commenting unchanged clock ownership is outside this focused correction.

Validation: npm ci, npm run build, and git diff --check passed. Runtime code is unchanged, so existing code tests were not rerun. New head remains draft for fresh review.

@thomhurst

Copy link
Copy Markdown
Owner Author

@codex review

@github-actions

Copy link
Copy Markdown

Review of #672: durable PostgreSQL dispatch backoff

I read PostgreSqlPoisonSql.Retry and where it is wired into PostgreSqlOrderedLane and PostgreSqlOutboxStore. I did not run the tests or read the test diffs line by line.

What looks sound

  • The retry is one fenced statement. The backoff deadline lives in deliver_at, so a stale claim cannot overwrite a newer one, and a restart does not turn an outage into a hot retry loop.
  • The attempts counter saturates at 30 (LEAST(attempts, 29) + 1). The backoff runs 1s, 2s, 4s up to the 300s cap, and the exponent is clamped, so there is no overflow.
  • Direct, ordered, CDC and maintenance paths share one SQL builder, which avoids divergent behaviour.
  • It reuses existing pieces (deliver_at eligibility, fenced claims, IFailureClassifier) rather than adding a parallel retry loop. D69 records why the durable transition belongs here.
  • The SQL adds no per-message-path allocations. The statements are built once, and the failure path only runs an extra UPDATE.
  • Docs and the decision record were updated in the same PR.

Non-blocking notes

  • Retrying by default with no cap means an unclassified permanent send error, such as an oversized message, holds its ordered key indefinitely. The docs already say so. It may be worth a warning log or a metric when attempts reaches the saturation value, so operators can see a stuck key.
  • As the PR description notes, a first preparation failure after a long outage can exhaust MaxDispatchAttempts, because the shared attempts counter has already grown. This is documented and accepted.

No actionable issues.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: 1c8b266516

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomhurst

Copy link
Copy Markdown
Owner Author

Disposition of the current-head Claude review: the suggested saturation warning/metric is a non-blocking observability extension; existing documented indefinite retry behavior is retained without another runtime change. The shared diagnostic/preparation attempt counter behavior is documented and accepted as the reviewer notes. Both required reviewers now report a clear verdict for 1c8b266; all review surfaces are dispositioned and no review threads exist.

Verified the retained evidence inventory against its SHA256SUMS: all 543 files under /Users/tom/git/Relayer-evidence/pr-672/6fa5796c513ae913472c7def0b8e1a1cb8952be3/ and both files under /Users/tom/git/Relayer-evidence/pr-672/1c8b2665161a19bd148c9be5ed6e7cbaab4a3c29/ match. Original worktrees have already been released; this verifies the archived inventory and hashes rather than claiming a new comparison to deleted originals. No tests rerun for this lifecycle-only action.

@thomhurst
thomhurst marked this pull request as ready for review November 13, 2026 11:54
@thomhurst

Copy link
Copy Markdown
Owner Author

Promotion succeeded on the approved head 1c8b266, but Enable-AutoMerge.ps1 -MarkReady stopped with: CI did not start on the ready head within 3 minutes. GitHub recorded ready_for_review at 2026-11-13T11:54:17Z; the CI workflow is active and subscribes to ready_for_review, but the only registered CI run remained the skipped draft run 43419885923. The PR is ready and auto-merge remains unarmed. No checks were bypassed or rerun. A later unit should check for delayed ready CI registration and invoke Enable-AutoMerge.ps1 -Pr 672 without -MarkReady once it registers; if delivery remains absent, diagnose workflow event delivery before further lifecycle actions.

@thomhurst

Copy link
Copy Markdown
Owner Author

The earlier promotion timeout still had no ready CI execution: only skipped draft CI runs were registered. The PR also became conflicting with main, which prevents a pull_request workflow from running. Converted back to draft and rebased onto 70b1a6f; preserved both appended decisions and renumbered the PostgreSQL decision to D70 because main now owns D69. Range-diff confirms the runtime changes and review correction are preserved.

Pushed 07d111c. Validation: all 6 DispatchBackoffTests passed across net10.0/net11.0; npm ci, npm run build and git diff --check passed. Logs and SHA256SUMS are retained at /Users/tom/git/Relayer-evidence/pr-672/rebase/. The new head needs both required reviews before promotion; auto-merge remains unarmed. No CI checks or review gates were bypassed.

@codex review

@github-actions

Copy link
Copy Markdown

Review

The mechanics look sound. The retry statement is fenced, the LEAST(attempts, 29) saturation and the 1 s to 300 s backoff are correct, and preparedForSend correctly keeps preparation failures on the old budget. The tests cover the durable paths well. I have one blocking design concern.

Blocking: permanent native send failures are now retried forever, and a bad row can stall healthy ones

Before this PR, a send failure that kept recurring ended in the dead table after MaxDispatchAttempts. Now every native send failure takes retryable: true (PostgreSqlDirectDispatcher.cs:245, and PostgreSqlOrderedDispatcher.cs via preparedForSend). D70 admits this: oversized messages, authorization errors and missing destinations all loop at 5-minute intervals indefinitely, and MaxDispatchAttempts no longer bounds them. That conflicts with AGENTS.md default of "poison messages dead-lettered rather than crashing or stalling a consumer". Two consequences follow:

  • Batches: D70 says a failed native batch backs off every claimed row. One oversized or invalid row in a SendBatchAsync call therefore makes the whole batch fail on every attempt. Its healthy neighbours back off with it and are never isolated. Previously the attempt budget eventually dead-lettered the offender and cleared the batch.
  • Ordered keys: a permanently rejected head blocks its key forever until an operator intervenes.

Suggestion: classify native send exceptions with the existing IFailureClassifier (the PR already applies it to local handlers), or use the transport own non-transient signal. For example, ServiceBusException.IsTransient is already exposed, and the SQS and RabbitMQ clients expose equivalents.

  • Transient errors (connectivity, throttling, timeouts) would take the durable backoff path.
  • Permanent errors would keep the existing poison-budget path, or go to dead-letter immediately.
  • For a failed batch with more than one row, fall back to per-row sends so a single bad row is isolated.

That keeps the outage-recovery goal of #666 without turning poison messages into unbounded stalls. If you want to keep the "retry everything" behavior, it needs explicit maintainer sign-off, since it trades away the dead-letter default.

Minor

  • Ordered lane retry uses clock_timestamp() while the direct path and store use the client @now. Not a bug, but the two deadlines come from different clocks.
  • There is no opt-in bound on retries, such as a max retry age. Operators get only monitoring.

Per-message cost: the success path is unchanged, so no benchmark is needed.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: 07d111c0ac

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

Copy link
Copy Markdown

Review of PR #672 (PostgreSQL outbox durable dispatch backoff)

I read PostgreSqlDispatchFailures, the PostgreSqlDirectDispatcher failure path, PostgreSqlPoisonSql.Retry and the store wiring. I did not run the tests or read the full test diff. I found no blocking correctness issue.

What looks sound

  • The retry statement is fenced by claim token and expiry, clears the claim, and persists deliver_at in the row. A restart cannot turn a broker outage into a hot retry loop. The counter saturates at 30 and the delay is capped at 300 s.
  • Isolation after a failed native batch reuses the native SendAsync under the existing live claim. It stops on cancellation or a known-expired lease. Completion failures are kept apart from send failures.
  • Classification happens only on the failure path. The scope, context and headers view cost nothing per message on success, so the zero-allocation budget is unaffected. A per-message cost line in the PR is enough; no benchmark is needed.
  • The existing IFailureClassifier and DefaultFailureClassifier are reused rather than a new mechanism. Decisions and website pages are updated, and tests were added.

Non-blocking suggestions

  1. A throwing classifier retries forever with no backoff. In PostgreSqlDirectDispatcher.DispatchAsync, the catch (Exception failure) when (!propagateDatabaseFailures) around RecordSendFailureAsync also swallows exceptions thrown by the classifier or by DI scope creation. The claim then just expires, attempts and deliver_at never change, and the row is re-dispatched on every pass. The only signal is the error log. Catch classifier exceptions inside ClassifyAsync and fall back to Retry, so the row still gets the durable backoff and the attempt counter moves.
  2. Unclassified native errors now retry forever. Previously MaxDispatchAttempts bounded this. Your PR description and the website both state it. It does move away from the AGENTS.md default that poison messages are dead-lettered rather than stalling a consumer. Consider a startup warning or analyzer when the outbox is registered without a native-exception rule, so it is not silent.
  3. O(n) row lookup per failure. RecordSendFailureAsync scans batch.Rows for each failed claim, which is O(n²) over a fully failing batch. It only runs on the error path, but you could carry the row index alongside _claims in the compaction step instead.

@thomhurst
thomhurst force-pushed the issue-666-postgres-backoff branch from 2d065a2 to e809dd1 Compare November 13, 2026 12:28
@thomhurst

Copy link
Copy Markdown
Owner Author

Addressed current-head Claude findings in final head e809dd1:

  • Native send failures now reuse the registered scoped IFailureClassifier. DeadLetter takes the existing fenced poison transition immediately; Discard completes the row; Retry retains durable backoff. The website shows a typed native ServiceBusException.IsTransient rule. PostgreSQL stays independent of broker packages. Unmatched non-contract failures retain the existing default Retry classification, explicitly documented along with required permanent-error rules.
  • Failed native batches now isolate rows with one bounded native SendAsync pass under live claims. Healthy rows complete independently; rejected rows are classified individually. Partial-batch duplicates remain valid at-least-once delivery. Cancellation/known expiry stop isolation; completion failures are never reclassified as send failures.
  • Minor clock-source observation is non-blocking and unchanged; an optional retry-age cap is an out-of-scope policy extension, so no further option is added.

214 selected real-PostgreSQL cases passed across net10/net11, including scoped Retry/DeadLetter/Discard through keyed DI and mixed/partially successful batch isolation. npm ci/build and diff check passed. Successful sends add no work/allocations; all new scopes and isolation work occur on failure. D71 and the site document the final policy. 548 archived evidence files were verified against originals and SHA256SUMS under /Users/tom/git/Relayer-evidence/pr-672/2d065a2d1ecb3938f638e1eda7165c89135db06a/.

The earlier ready-CI timeout was caused by conflicts preventing pull_request workflow delivery. A new appended-decision conflict arose after MySQL #676 merged; this unit rebased, preserved both records and renumbered PostgreSQL D71. The final head is MERGEABLE. PostgreSQL code/tests and the shared ordered contract are identical to measured 2d065a2; rebase proof is retained under /Users/tom/git/Relayer-evidence/pr-672/e809dd18782773af0dccf0d8d2a64c09f8c1d7ce/. Both reviewers must now review the final draft head before promotion. Auto-merge remains unarmed under the normal lifecycle, not parked behind the old CI timeout.

@codex review

@github-actions

Copy link
Copy Markdown

Review of PR 672 (PostgreSQL outbox durable dispatch backoff)

I read the dispatcher, the failure classifier, the retry and dead-letter SQL, and the store wiring. The design is sound: it reuses the registered IFailureClassifier, the fenced claims and deliver_at, and it adds no per-message cost on the success path. The retry SQL is correct: the attempt counter saturates at 30 and the delay runs from 1 s to 300 s.

One finding: a failing batch can send each row individually during an outage (PostgreSqlDirectDispatcher.cs, lines 244-270)

When a native batch fails with live > 1, every row is re-sent with its own SendAsync. Nothing short-circuits when the first single send fails with a transient error that the classifier maps to Retry.

  • Cost: during a broker outage, a batch of N rows costs N full native send attempts, each with the client's own retry and timeout, before any backoff is recorded.
  • Lease expiry: the loop breaks once expires <= now. Rows not yet reached never go through RecordSendFailureAsync, so they get no deliver_at backoff. They become eligible as soon as the lease expires and repeat the same slow cycle. This weakens the stated goal that an outage cannot cause a hot retry loop.

Suggested fix: if a single-row send fails and the classifier returns Retry, treat it as systemic. Record the retry with the same error for the remaining claimed rows, including the ones skipped by the break, and send no more rows in that pass. Keep per-row isolation only while failures are classified DeadLetter or Discard, which is the poison-row case the isolation exists for. That bounds an outage to one failing batch send plus one failing single send, and every row gets a durable deadline.

Please add a test where the broker is down for a batch of several rows. It should assert that every row has a future deliver_at and that the number of native sends is bounded.

Notes (non-blocking)

  • RecordSendFailureAsync finds the row by scanning batch.Rows linearly. It only runs on the failure path, but an index carried alongside the claims would avoid O(n^2) work on large batches.
  • Unmatched native errors now retry indefinitely instead of reaching MaxDispatchAttempts. This is documented, and I accept it as intended.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: e809dd1878

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomhurst

Copy link
Copy Markdown
Owner Author

The earlier ready-CI timeout no longer describes the current blocker: conflicts were already resolved and the PR is now draft for review. Addressed the current-head Claude blocking finding in 0b3a76e. The first single-send Retry ends native isolation and applies fenced durable retry to remaining claims; permanent/discard decisions still permit per-row isolation. Expired/replaced claims remain protected by fencing. The regression reproduced 5 native attempts before the fix, now 2, with all four live rows retaining future deadlines.

Validation: all 24 DispatchBackoffTests cases passed across net10/net11, including existing mixed-poison/partial-success cases; npm ci/build and diff check passed. D71 and the PostgreSQL reference describe the bounded outage behavior. Successful dispatch adds no work or allocations; this changes only the failure path. Eight archived evidence files were verified against originals and SHA256SUMS in the head-specific location recorded in the PR body.

Non-blocking review notes disposition: carrying row indices is an optional error-path optimization and does not justify another pipeline buffer. A warning/analyzer for missing native rules is an optional diagnostic extension; the required configuration and indefinite fallback are explicitly documented. Classifier exceptions are application-code failures, already logged and left under claim-expiry recovery; introducing a fallback policy for a broken classifier is outside this transport-outage correction. These suggestions do not block the documented valid-classifier contract.

The new head needs both required reviewers before promotion; auto-merge remains unarmed under the normal lifecycle.

@codex review

@github-actions

Copy link
Copy Markdown

Review of #672: PostgreSQL retryable outbox sends retain durable eligibility

I read the diff against AGENTS.md and D70 and found nothing that should block merge.

  • Correctness: The success path is unchanged. The classifier scope, the context view and the per-row isolation pass run only after a failed send. The new retry statement is fenced like the other mutations. Preparation failures still count against MaxDispatchAttempts through retryable: preparedForSend. Discard completes the row, and an unknown action throws.
  • Direct batch failure: Retrying each row individually under the same live claim can duplicate rows the native batch had already accepted. That is allowed under at-least-once delivery, and D71 and the docs say so. Ownership expiry is checked before each native send, and the remaining claims still get a fenced backoff.
  • Tests and docs: DispatchBackoffTests and the updated poison, ordered-dispatch and local-transport tests cover the new behavior. D71, the website pages and the MaxDispatchAttempts doc comment are updated in the same PR.
  • Minor, non-blocking: RecordSendFailureAsync finds the batch row with a linear scan per failed claim, so a very large failing batch costs O(n²). It only runs on the failure path, so it doesn't affect the per-message budget. A parallel index array would remove it if you ever want to.
  • Performance: The per-message cost is 0 B on the success path, so no benchmark is needed.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 0b3a76ef6c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomhurst

Copy link
Copy Markdown
Owner Author

Rechecked the earlier ready-CI promotion timeout. It no longer describes this PR: the current head 0b3a76e is MERGEABLE and draft after the subsequent review fix. Claude run 43426180036 succeeded with CLEAR for this head. Codex summary comment 6851852226 still reports this head running, and current-head request 6853037582 has only the connector eyes reaction, not a thumbs-up. All REST reviews/inline comments and GraphQL review threads were checked; no threads or new undispositioned findings exist.

Resolution routes checked: there is no linked implementation blocker to work, no replacement PR or finished-parent action needed to advance this PR, and #666 is already referenced with Closes in the body. The prior fix is pushed; the current dependency is hosted review completion, not the earlier CI timeout. No competing review, CI rerun, or promotion was started. Keep the existing review request; after Codex completes, check every review surface and retained evidence, then use Enable-AutoMerge.ps1 -Pr 672 -MarkReady if both current-head verdicts remain positive. No on-hold or needs-human label is appropriate for this self-ending wait.

@thomhurst

Copy link
Copy Markdown
Owner Author

The prior Codex-review blocker has cleared: the mutable summary now reports completed with no findings for current head 0b3a76e, matching its explicit clean receipt. Claude run 43426180036 also reports CLEAR for that head. Rechecked all paginated REST reviews, inline comments and conversation comments, plus all GraphQL review threads: no unresolved threads or undispositioned findings. The linear-scan suggestion remains a non-blocking error-path optimization, already dispositioned.

Reverified all 548 + 2 + 8 archived files against SHA256SUMS in the measured, rebase-proof and current-head evidence directories cited in the PR body under /Users/tom/git/Relayer-evidence/pr-672/. Originals were compared when archived by the implementation units; original worktrees have since been released, so this is retention verification rather than a new comparison against removed originals. No tests rerun for this lifecycle-only action. Head is unchanged and MERGEABLE; proceeding through Enable-AutoMerge.ps1 -MarkReady.

@thomhurst
thomhurst marked this pull request as draft November 13, 2026 13:26
@thomhurst
thomhurst force-pushed the issue-666-postgres-backoff branch from 0b3a76e to 0b6ed14 Compare November 13, 2026 13:27
@thomhurst

Copy link
Copy Markdown
Owner Author

The earlier wait on CI run 43432827595 was still active, but the PR had become conflicting with main. Disabled auto-merge and restored draft before rebasing. Pushed 0b6ed14 onto fresh main; preserved SQL Server D71 and renamed PostgreSQL D72. Range-diff confirms the PostgreSQL implementation/tests are unchanged; no tests rerun for this docs-only conflict resolution. Evidence location is recorded in the PR body.

All review surfaces were checked; prior findings are dispositioned and there are no threads. No linked blocker, replacement PR, finished-parent or stale-issue route is needed: #666 remains delivered by this PR with Closes. The old run is superseded by this new head, which needs both current-head reviews before promotion. Auto-merge remains unarmed.

@codex review

@github-actions

Copy link
Copy Markdown

Review of #672 (PostgreSQL outbox durable dispatch backoff)

The design reuses the existing fenced-claim SQL, IFailureClassifier and DefaultFailureClassifier. Classification and isolation run only on the failure path, so the per-message cost on the success path is unchanged. One regression blocks merge.

Blocking: local-handler Retry failures now retry forever instead of dead-lettering at MaxDispatchAttempts

The PR description says local handlers keep their existing consume classification. The action stays the same, but the budget behaviour does not.

  • Direct dispatcher (PostgreSqlDirectDispatcher.RecordSendFailureAsync): every Retry result is recorded with retryable: true. That includes a PostgreSqlLocalFailure thrown by the local transport, because ClassifyAsync returns local.Action unchanged. This selects the Retry SQL, which never dead-letters.
  • Ordered dispatcher: preparedForSend is true for the local path. So FailAsync(..., retryable: true) is used, and poisoned becomes permanent || (!preparedForSend && ...), which is always false for local Retry.
  • Before this PR, a local handler failing with Retry hit PostgreSqlPoisonSql.Failure. It was dead-lettered after MaxDispatchAttempts, and in ordered mode that parked the key.
  • Now a deterministic handler bug (a handler that always throws a classified-retry exception) loops every 5 minutes forever. In ordered mode it also blocks the key head forever.
  • That breaks the AGENTS.md default that poison messages are dead-lettered rather than stalling a consumer. The MaxDispatchAttempts docs also still imply a budget for these.
  • The tests mask it. LocalTransportTests now passes failureAction: FailureAction.DeadLetter and its expected dead count changed. PoisonTests and OrderedDispatchTests now throw PostgreSqlLocalFailure(..., DeadLetter). None of them checks the budget on a Retry path any more.

Suggested fix: make retryable mean "native send failure" only, so retryable = error is not PostgreSqlLocalFailure. A local Retry then keeps the budgeted _fail path in both dispatchers. In the ordered dispatcher, keep poisoned driven by the budget for local failures. Restore the original tests, for example local Retry with MaxDispatchAttempts = 1 expecting a dead row. Keep the new DispatchBackoffTests for native sends. A single flag at the classification boundary is also simpler than deriving retryable separately in each dispatcher.

Minor, non-blocking

  • A classifier that throws is swallowed and logged in the direct path, so the claim sits until expiry. Ordered rethrows from inside the lane transaction. A one-line note, or a fallback to Retry, would make the behaviour consistent.
  • RecordSendFailureAsync does a linear scan of batch.Rows to find the row for each failed claim. That is fine on the failure path, but carrying the row index alongside the claim would be cleaner.
  • Performance: the success path is unchanged and the new code is failure-only, so no benchmark is needed.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 0b6ed14496

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomhurst

Copy link
Copy Markdown
Owner Author

The earlier CI run 43432827595 belongs to superseded head 0b3a76e and is no longer this PR's blocker. Current-head Claude feedback identified a real local-handler retry-budget regression, fixed in 4b5c256: local consume failures and local validation failures retain bounded poison handling; only native sends use indefinite durable backoff. Ordered poison accounting uses the same distinction. Restored actual local Retry tests with MaxDispatchAttempts=1, including handler/disposal rollback and unrelated-key progress. The regression failed on both frameworks before the fix; all 124 affected-class cases now pass. Docs/build/evidence details are in the PR body.

Minor findings remain non-blocking and previously dispositioned: classifier exceptions are application-code failures recovered by claim expiry, while a parallel row-index array is an optional failure-path optimization. No extra policy or buffer is introduced.

All review surfaces were checked: no review threads exist. Resolve routes checked: #666 remains delivered by this PR with Closes; no linked implementation blocker, replacement PR, finished-parent or stale-issue action is needed. This unit pushed a concrete fix rather than deferring. The new draft head requires both reviews before guarded promotion; auto-merge remains unarmed.

@codex review

@github-actions

Copy link
Copy Markdown

Review of #672 (PostgreSQL outbox dispatch backoff)

I read the dispatcher failure path in PostgreSqlDirectDispatcher, PostgreSqlDispatchFailures and the Retry SQL in PostgreSqlPoisonSql. I did not run the tests or the website build. Nothing here needs to block merge.

Correctness

  • Retry SQL: it is fenced on the claim token and expiry. It saturates attempts at 30 and sets a durable deliver_at of 1s doubling to a 5 minute cap. A restart therefore cannot turn a broker outage into a hot loop, and retryable failures do not consume the poison budget.
  • Isolation pass: a failed native batch is retried row by row under the same live claims. It stops on cancellation or known lease expiry. After the first retryable single-send failure, the remaining rows get fenced backoff without further native sends. That bounds the pass, and duplicates are acceptable under at-least-once delivery.
  • Completion errors: these are kept out of the send-failure classification.
  • Local transport: PostgreSqlLocalFailure carries its own action, so local handlers keep their existing consume classification.
  • Classifier scopes: they are created only on the failed-send path. Tenant context is restored before the scoped IFailureClassifier runs. This follows the zero-allocation steady-state rule: the success path gains no work.
  • Duplicate-send trade-off: the PR says the per-row isolation pass can duplicate sends, and it does not hide that.

Minor, non-blocking observations

  • RecordSendFailureAsync finds the row with a linear scan of the batch. That is O(n²) but only on the error path, so it is acceptable.
  • A row that already has diagnostic attempts from retries and then hits an ordered-preparation failure uses the MaxDispatchAttempts budget immediately. The PR description and docs state this, so I treat it as intended.

Tests and docs: DispatchBackoffTests, PoisonTests, LocalTransportTests and OrderedDispatchTests are updated. decisions.md and the website pages were updated in the same PR, as AGENTS.md requires. The PR also lists the native and existing features it builds on.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Delightful!

Reviewed commit: 4b5c25609b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomhurst

Copy link
Copy Markdown
Owner Author

The earlier wait on run 43432827595 has ended in test failures, rather than remaining a CI wait. Diagnosed its logs and fixed the remaining test contracts in 5794b04. Recovery and telemetry tests now explicitly advance durable retry eligibility along with claim expiry/age. The shared partial-batch contract asserts PostgreSQL single-send isolation, permitted duplicates and completion while retaining the existing MySQL/SQL Server whole-batch recovery expectations. CDC polling now reuses one database connection instead of repeatedly opening unpooled sessions; its failed-send restart test explicitly advances the persisted deadline before startup recovery on an otherwise quiet INSERT-only stream.

Validation: the first focused PostgreSQL run passed 84/86 cases, including every original deterministic CI assertion failure, and exposed the additional CDC restart deadline assumption on both targets. After that correction, all 20 ChangeCaptureTests cases passed across net10/net11; the other 66 cases were unchanged and not rerun. The shared partial-batch contract also passed on MySQL and SQL Server across both targets (4 cases). git diff --check passed. No production code or user-facing behavior changed in this fix; no docs impact. Per-message cost unchanged, 0 B. Existing durable deadlines, fenced recovery and native SendAsync isolation are reused; no native capability is duplicated.

Retained logs, test reports and all five changed test sources: /Users/tom/git/Relayer-evidence/pr-672/5794b049fad230c7df638669025fbca2adb08877/. All archived files were compared to originals and their SHA256SUMS reverified before this citation.

All review surfaces were examined before the fix; no threads exist and prior findings are dispositioned. The new draft head needs fresh reviews. Resolve routes checked: #666 is delivered by this PR with Closes; no linked implementation blocker, replacement, finished-parent or stale-issue action advances it. This unit pushed fixes rather than repeating the earlier deferral. Auto-merge remains unarmed.

@codex review

@github-actions

Copy link
Copy Markdown

Review of #672: PostgreSQL outbox durable dispatch backoff

I read the dispatcher, ordered-lane, classifier and retry SQL changes against AGENTS.md. I found no blocking defects.

What checks out

  • The retry SQL is fenced on the claim, like the other mutations. The deadline is clock_timestamp() + min(300, 2^min(attempts,9))s, giving 1 s to 5 min. attempts saturates at 30, so there is no overflow.
  • Classification, scope creation and the header and context views only run on the failed-send path. The success path is unchanged, so there is no per-message cost.
  • Completion failures are kept out of send classification. Cancellation propagates, and expiry stops the native isolation sends while still recording fenced backoff for the remaining claims.
  • It reuses native SendAsync, IFailureClassifier and the existing fenced terminal mutations, with no parallel retry machinery. The decision is recorded in docs/decisions.md, the website is updated, and there are dedicated backoff tests.

Non-blocking observations

  1. Ordered lanes: the read query ignores deliver_at, and the loop breaks when the claim fails. A delayed head row therefore holds back other ordering keys in the same lane for up to 5 minutes, not just its own key. The docs mention ordered-key blocking, but the stall is lane-wide. Consider stating that explicitly, or filtering delayed rows in the read query.
  2. There is no jitter in the backoff. Many rows failing together during a broker outage will all become due at the same instant. Adding a little jitter in SQL (random()) would spread the load.
  3. Per-row isolation runs native sends one by one for a failed batch. This is bounded and documented, but a large failed batch is slow. That seems acceptable for a failure path.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 5794b049fa

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomhurst

Copy link
Copy Markdown
Owner Author

Rechecked the quoted blocker: run 43432827595 has completed with failure on superseded head 0b3a76e. The failures have already been diagnosed and corrected by 5794b04, with focused test results recorded above. It is no longer a pending-run blocker.

Current head 5794b04 is MERGEABLE and draft. Claude run 43435372116 succeeded with CLEAR for this exact head. Codex summary 6851852226 explicitly reports this head running; request 6854564840 was posted at 13:38:31 UTC and has the connector eyes reaction only. It is within the 15-minute request window, so no duplicate request or competing run is warranted. Both current-head verdicts are required before guarded promotion. Auto-merge remains unarmed.

Checked every review surface, including all conversation comments, REST reviews and inline comments, and GraphQL review threads: no threads or new blocking findings exist. Latest Claude observations are non-blocking: lane-wide delay follows the existing first-head lane-readiness contract (PostgreSqlOrderedLane._ready/_read); filtering delayed heads would change that ordering contract. Jitter is an optional retry-policy extension, and serial isolation is the already documented bounded failure path. No additional runtime change is justified for these suggestions.

Resolve routes checked: #666 remains delivered by this open PR and its body has Closes #666; main does not yet replace it. There is no separate agent-workable blocker, superseding PR, finished-parent closure, stale acceptance criterion, or reversible implementation choice that would advance promotion. The only remaining gate is the already-running hosted Codex review. No on-hold or needs-human label applies. Next visit should re-read its mutable summary and every review surface, then verify retained evidence before Enable-AutoMerge.ps1 -Pr 672 -MarkReady if both verdicts are positive. No tests rerun for this review/lifecycle-only unit.

@thomhurst
thomhurst force-pushed the issue-666-postgres-backoff branch from 5794b04 to 335f9dc Compare November 13, 2026 13:59
@thomhurst

Copy link
Copy Markdown
Owner Author

The earlier Codex blocker cleared: its mutable summary completed with no findings for 5794b04. All review surfaces were rechecked; there are no threads or undispositioned blocking findings. The PR had since become conflicting with main, so this unit rebased and pushed 335f9dc. Preserved main's handler-registration D72 and renamed PostgreSQL D73. No production conflicts or PostgreSQL implementation changes; all 80 selected backoff/telemetry/CDC tests passed on net10/net11. Evidence and verification details are in the PR body.

Resolve routes checked: #666 remains delivered by this PR with Closes; main does not implement its durable retry changes and no replacement PR exists. No separate linked blocker, finished-parent closure, stale acceptance criterion or reversible choice advances it. This is pushed conflict resolution, not another deferral. The new draft head requires fresh current-head reviews before guarded promotion; auto-merge remains unarmed.

@codex review

@github-actions

Copy link
Copy Markdown

Review of #672: durable backoff for PostgreSQL outbox native-send failures

I read the diff against AGENTS.md and found no blocking issues.

What I checked

  • Retry SQL (PostgreSqlPoisonSql.Retry): it is fenced by claim token and expiry. The delay is 1 s doubling up to 300 s, computed from the pre-increment attempts. The counter saturates at 30. The claim is cleared in the same statement. This matches the description.
  • Direct dispatcher isolation pass:
    • A failed native batch is retried row by row under the same live claims.
    • Successful rows go through the fenced CompleteBatchAsync.
    • A retryable failure ends the pass, and the remaining rows get fenced backoff.
    • Cancellation is rethrown.
    • Completion failures are not classified as send failures.
    • Duplicates after a partial batch are allowed by at-least-once delivery, and the PR says so.
  • Ordered dispatcher:
    • Preparation failures still use the MaxDispatchAttempts budget (retryable: nativeSend).
    • Native failures get durable backoff without poisoning.
    • Discard completes the fenced row.
    • Permanent failures reach the existing dead-copy and barrier path.
    • An unknown classifier action throws.
  • Classifier plumbing: PostgreSqlDispatchFailures creates a scope and a context view only on the failure path. Tenant context is restored, and without a scope factory it falls back to DefaultFailureClassifier. There is no per-message cost on the success path, so no benchmark is needed under AGENTS.md. The PR should state "0 B / no change on success path" in one line.
  • Docs and decisions: the options doc comments, docs/decisions.md and the website pages were updated in the same PR. The tests include DispatchBackoffTests and the shared contract tests.

Non-blocking notes

  1. In the ordered dispatcher, ClassifyAsync runs user classifier code (including DI scope creation) while the lane transaction is open. A slow classifier holds the row lock and the claim lease. Consider documenting that classifiers must be fast and synchronous, as they already are in the consume path.
  2. If a classifier throws in the direct dispatcher, the row is logged and left to lease expiry without backoff. This is safe, but a short note in the docs would help.
  3. RecordSendFailureAsync finds the row with a linear scan of the batch. This is O(n²) in the worst case, but it only runs on the failure path with bounded batch size, so it is fine.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: 335f9dcec5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@thomhurst

Copy link
Copy Markdown
Owner Author

The earlier Codex blocker has cleared: its mutable summary now reports completed with no findings for current head 335f9dc. Claude run 43438488018 also returned CLEAR for this head. All review surfaces were inspected, including paginated reviews, inline comments, conversation comments and GraphQL threads; there are no threads or outstanding blocking findings.

Latest Claude suggestions are non-blocking: documenting classifier speed and exception recovery are optional follow-ups to the existing classifier contract; throwing classifiers already recover through claim expiry and were dispositioned above. Carrying row indexes is an optional failure-path optimization already declined. No runtime changes or new tests are justified for these suggestions.

Resolve routes checked: #666 is delivered by this PR with Closes #666; no replacement exists, and main has not delivered this change. Parent #646 still has open child #666, so it is not finished. No linked implementation prerequisite, stale acceptance criterion or reversible implementation choice remains. The review wait is resolved, so proceeding with guarded promotion rather than deferral.

Reverified 1,720 archived files across all ten retained SHA256SUMS manifests under /Users/tom/git/Relayer-evidence/pr-672/, including all 585 files for current head 335f9dc. Originals were compared at archival by prior units; this verifies retained files rather than claiming a new comparison against removed worktrees. Evidence locations remain recorded in the PR body. No tests rerun for this lifecycle-only action.

@thomhurst
thomhurst marked this pull request as ready for review November 13, 2026 14:02
@thomhurst
thomhurst enabled auto-merge (squash) November 13, 2026 14:02
@thomhurst

Copy link
Copy Markdown
Owner Author
Both required current-head reviews are positive. Guarded promotion succeeded and auto-merge is armed at 335f9dc. Ready CI run 43438960269 is in progress; GitHub will merge only after the required gate succeeds. No tests were rerun for this lifecycle-only unit.

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.

PostgreSQL outbox dispatch must retain retryable failures with durable backoff

1 participant