Repository navigation
Execute consumer retries and durable failure handling - #88
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Review of #88 (failure pipeline)Scope: I read What looks sound
Non-blocking notes
No correctness, security or performance-budget violations found in what I reviewed. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b7f8643088
ℹ️ 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".
|
Disposition of Claude's current-head review:
|
|
@codex review The blocking scope-disposal finding is fixed in 5691545 and dispositioned on its thread. The PR remains draft for fresh head-bound reviews. Release build, all 296 tests, and Windows x64 Native AOT smoke pass. The PR body records the verified evidence archive and the DI allocation-test stabilization. |
Review of head b7f8643I read No blocking issues found. What checks out:
Non-blocking observations:
|
|
Disposition of Claude's review for 569154508a6b52a06cc1a0e687390740120c3b19:
The review text repeats the previous head's title and test count; the current head has 296 passing tests, with validation and archived evidence recorded in the updated PR body. The PR stays draft while fresh Codex review is pending. |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
|
Both required reviewers cleared 5691545. All review surfaces were checked, the prior blocking thread is resolved, and Claude's non-blocking observations already have dispositions. Reverified all 642 baseline and 462 current-head evidence hashes and updated the PR body. Promoted and armed squash auto-merge with |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 569154508a
ℹ️ 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".
| if (AttemptBuffer is not null) return; | ||
| Outbox = null; | ||
| owner.Return(this); |
There was a problem hiding this comment.
Preserve sender ownership through ordinary scope disposal
Once any FailurePipeline enables the pool, ordinary DI scopes also receive pooled senders, but their AttemptBuffer is null, so this callback clears Outbox and returns the sender before the remaining scoped services finish disposing. If a service resolved before the sender captures it later and sends during DisposeAsync, that send now bypasses its still-active outbox; if disposal suspends, another scope can rent the same sender and attach a different outbox or attempt buffer. The attempt-disposal fix protects attached senders only, leaving this ordinary-scope path exposed. Keep ordinary scoped senders reserved, with their original enlistment, until all services that can use them have finished disposing.
Useful? React with 👍 / 👎.
When a handler fails, Relayer can now run immediate retries in fresh scopes, choose a validated native redelivery or durable copy path, and dead-letter poison messages with the complete failure history. Original settlement follows successful durable handling. Failed attempts discard buffered direct sends; successful sends flush after scope disposal.
Composition reuses the startup capability cache, validates every configured delay and the dead-letter path, and requires actual fallback executors. Native redelivery carries owned failure headers. Scheduled/dead-letter copies retain the original identity, creation context, body, headers, ordering key and supported native configuration.
Includes concurrent send buffering, scoped sender reuse, deterministic failure-path tests, Native AOT smoke coverage, MemoryDiagnoser benchmarks, and the public composition example. Native broker adapters and concrete outbox stores remain their existing scaffolds; tests exercise the core's executable transport/scheduler seams.
Closes #9
Validation on
b7f8643088ea110356babead17dcd2b783042939, rebased onto topology PR #81:dotnet build -c Release: passes, 0 warnings/errors.dotnet test -c Release --no-build: 291 passed, 0 failed/skipped. Includes 26 failure-pipeline cases: exact native/scheduled delay boundaries, durable scheduler and dead-letter fallbacks, poison envelopes, complete error histories across redelivery, fresh retry scopes, deterministic backoff/cancellation, concurrent send buffering, partial flush failure, scope-disposal failure and startup validation.git diff --checkpass.Per-message cost: ordinary direct sends add a nullable buffer check, 0 B. Failure-enabled processing adds failure-header lookups and scoped sender resolution; successful handler sends copy payload/header storage into pooled slots and flush after successful async scope disposal. Buffer slot reservation supports concurrent awaited sends without locks. Error history serialization and durable fallback allocations occur only on failure.
The benchmark's synchronous sink isolates pipeline cost; it is not a real-broker throughput acceptance run. The 5% raw-native-client throughput budget remains unverified locally because native adapters are still scaffolds. No throughput/latency trade-off is claimed from these diagnostic numbers. Partial successful-send flushes and copy-versus-completion/cancellation races can duplicate messages, so downstream processing still needs idempotency (D9/D24). Active outbox sends retain transactional enlistment; their transaction owner must roll back a failed attempt.
Archived raw build/test/AOT/benchmark logs, reports, generated benchmark harness and loaded binaries, test binaries, native executable and committed source snapshot:
C:/git/Relayer-evidence/pr-88/b7f8643088ea110356babead17dcd2b783042939/. The 642-file inventory was verified by SHA-256 against the original files (the source snapshot is generated directly bygit archivefor this head).inventory.jsonSHA-256:00e3c43ce4cf86848e54833006798ead955fdbb603c220dc4c79d1e895160913. Standard seven-day evidence retention applies.Review fix validation on
569154508a6b52a06cc1a0e687390740120c3b19:dotnet build -c Release: passes, 0 warnings/errors.dotnet test -c Release --no-build: 296 passed, 0 failed/skipped. Windows x64 Native AOT publish and smoke executable pass with reflection disabled. Code-simplifier review andgit diff --checkpass.b7f8643088ea110356babead17dcd2b783042939only.Archived current test binaries/reports, native executable, raw validation logs, failing regression/allocation logs, DI inspection output, and committed source snapshot:
C:/git/Relayer-evidence/pr-88/569154508a6b52a06cc1a0e687390740120c3b19/. All 462 inventory entries were SHA-256 verified; copied files were also checked against their originals.inventory.jsonSHA-256:26868a9aac72f38118f51f321f3ea4cc6a541f2b39ddbf4f83af5eb784e8cc06. Standard seven-day evidence retention applies.Evidence inventories rechecked before promotion on 2026-11-01: all 642 baseline and 462 current-head archived files match their recorded SHA-256 hashes. The original implementation worktrees were removed by normal checkout cleanup. Remaining originals also match their recorded hashes; the full archive-to-original verification occurred when those archives were created.