Repository navigation
fix: retain concurrent receive continuations per context - #216
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. |
|
Codex Review: Didn't find any major issues. Bravo. 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". |
Review of #216I read Checked and found correct
Non-blocking observations
|
|
Both required reviewers now approve c54d4ca: Codex's head-bound summary is completed with no findings, and Claude's #216 (comment) ends CLEAR. All review surfaces have been read; there are no review threads or blocking findings. Claude's observations are non-blocking:
Implementation, local validation and the evidence archive are complete. The PR body records all timing/CPU rows, including inconclusive and unfavorable observations, and the independently retained #154 failure. The successful manual Claude retry did not replace the original failed PR-associated receipt check. That check still gates promotion. Its failed job was rerun once, preserving the PR association, to recover review delivery; it is not a code-finding or test retry for green. #220 records this lifecycle gap. The PR remains draft until that original check is passing; no approval or passing check is manufactured. |
Review of #216I compared Checked and sound
Non-blocking notes
|
|
Claude's PR-associated receipt run 41446807882/2 now succeeds and its current-head verdict is CLEAR: #216 (comment). Codex's completed, no-findings verdict remains bound to c54d4ca. All reviews, inline comments, conversation comments and review threads were rechecked; no blocking finding or unresolved thread remains. Disposition of the latest Claude review's non-blocking notes:
Before promotion, all 4,248 archived files were rechecked by length and SHA-256 against the original archive inventory. All 1,072 surviving originals also match. The other 3,176 originals lived in removed worktrees; their independently archived files remain intact and match the hashes recorded when both originals and copies were verified. No retained evidence was lost or regenerated. Inventory SHA-256 remains EA9DCCB4A1595A216D3B40AB04FA2FC2D65A1CCDE3E07580520EAB867AF55685. Verification record: C:/git/Relayer-evidence/pr-216/promotion-evidence-verification.json. Archive location remains C:/git/Relayer-evidence/pr-216/c54d4cadee8246891c52833c427cf6eaa96c977b/. |
Concurrent receives allocate Relayer-owned async state-machine boxes when runtime caches miss. Keep continuation storage with each rented context and native receive state instead. Preserve execution context, fresh DI scopes, asynchronous disposal, failure handling and durable settlement order. Reserve native continuation storage until its ValueTask is consumed, clearing native references before completion.
Add a shared eight-handler cross-thread allocation fixture, MemoryDiagnoser coverage, execution-context/lifetime/cancellation regressions, Windows Native AOT coverage and matching receive/performance documentation. Batch dispatch and executable retry policies retain their existing implementations.
Closes #203
Validation
Performance evidence
Local diagnostic bracket: pinned main cf89c35 plus the identical attribution harness (a3ffe6d), candidate c54d4ca, then the same baseline again. SDK 10.0.403, runtime 10.0.14, BenchmarkDotNet 0.15.8, Windows x64. Sampling was fixed before this bracket at 15 measured iterations, 5 warmups and 1 launch; it is not the default adaptive job. Harness, project, SDK and package input hashes match. No gate threshold or CI workflow was changed.
Values below are baseline / candidate / baseline repeat. Times are ns/operation; allocation columns are inclusive bytes/operation. Concurrent cases normalize eight deliveries per invocation.
Five timing rows are inconclusive under the existing confidence-bound rule, including the unfavorable dedicated-worker means. No row exceeds the 5% threshold against both baseline confidence bounds. The wide overlapping intervals and drift do not establish preserved throughput or latency, and none of these fixtures establishes the real-broker raw-client budget. Startup remains below 50 ms; startup allocation totals are informational.
A separately retained CPU probe uses 1.5 seconds of warmup per mode, fixed process affinity 0xF and 1.6 million measured messages per mode in baseline/candidate/baseline order. Receive CPU time is 1,123 / 596 / 771 ns/message, with inclusive allocations 498.736 / 128 / 493.357 B/message. Direct-scope CPU control is 547 / 264 / 313 ns/message, exposing substantial process/scheduler variation; these are diagnostic observations, not proof of a CPU budget. Earlier fixed-warmup explorations, including unfavorable results, remain archived. Their early candidate probe binaries were overwritten; the final controlled bracket has separately captured and verified binaries for all three executions.
Per-message cost: instance-owned continuation transitions and cached callbacks, with 0 B incremental composition allocation in the isolated concurrent fixture. Fresh DI scopes remain in every reported total; this does not claim zero total receive allocations.
The unfavorable historical #207 comparison remains retained: inclusive concurrent allocations 820 / 825 / 801 B/message. That earlier comparison did not meet the allocation rule and is not retroactively described as passing.
Retained evidence
C:/git/Relayer-evidence/pr-216/c54d4cadee8246891c52833c427cf6eaa96c977b/ contains raw reports/logs, the comparison with confidence intervals, probe sources, source snapshots, final loaded binaries, AOT output, TUnit reports and the independent historical attribution archive. inventory.json verifies 4,248 original/archive file pairs by length and SHA-256; its SHA-256 is EA9DCCB4A1595A216D3B40AB04FA2FC2D65A1CCDE3E07580520EAB867AF55685. Both originals and copies were rechecked after copying. Earlier exploratory records are preserved with their stated limitations; current final validation is the rebased run above.