fix(http-bridge): re-check liveness before retiring a stale pending session - #1649
fix(http-bridge): re-check liveness before retiring a stale pending session#1649Komzpa wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d1238f4d3e
ℹ️ 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".
25bb222 to
fe010f0
Compare
5c899d6 to
961cdc8
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1966752128
ℹ️ 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".
|
Thanks for the fast iterations on the codex P1s — the lock-ordering fix (sampling pending state before 1.
The codex finding you were addressing asked for evidence that is new since the caller's snapshot. Snapshotting 2. Split-lock claim of The close claim moved under 3. Stale-base artifact:
4. Test gap Both new tests model callers with One more process note: the last codex review ran on |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2d877cb56a
ℹ️ 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".
2d877cb to
c009b95
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c009b9592b
ℹ️ 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".
|
Thanks — verified at head 378bd09 that all three prior blockers are resolved in code: the liveness signal now compares
Happy to do a full re-review as soon as the rebased head is green. |
_retire_stale_pending_http_bridge_sessionsampledresponse_events_seenBEFORE anawait(the retry-circuit failure record), then retired the session from that pre-await snapshot. A healthy turn that receives its first response event during the suspension is retired anyway — killing a live turn on hard-strength keys.Fix: re-sample response liveness under the registry + pending locks immediately before the close decision; a session that has since become healthy is not retired. Genuinely eventless sessions still retire.
Regression fails pre-fix (healthy turn killed) and passes post-fix, plus a control proving a truly-stale session still retires; 473 unit + 119 integration green (the 2 known reconnect failures are the separate
bridge_instance_mismatchregression, fixed in its own PR).