feat: preserve RLM call lineage across retries - #2385
Closed
hallerite wants to merge 2 commits into
Closed
Conversation
hallerite
force-pushed
the
feat/rlm-lineage
branch
from
August 17, 2026 17:42
b1fd0ff to
44a4a13
Compare
hallerite
force-pushed
the
feat/acp-response-metadata
branch
from
August 17, 2026 19:48
779fff8 to
bfd6c6b
Compare
hallerite
force-pushed
the
feat/rlm-lineage
branch
from
August 17, 2026 19:48
44a4a13 to
9e4ea9b
Compare
hallerite
force-pushed
the
feat/rlm-lineage
branch
from
August 17, 2026 20:41
9e4ea9b to
bbaea73
Compare
| class LogicalCallReplay: | ||
| binding: tuple[str, bytes, bytes] | ||
| response: dict | None = None | ||
| inflight: "asyncio.Future[dict | None] | None" = None |
Contributor
There was a problem hiding this comment.
🟠 High v1/session.py:102
A cancelled coalesced request cancels the shared LogicalCallReplay.inflight future, so the original exchange cannot publish its result and all other retry handlers receive CancelledError. Await this shared future through asyncio.shield so cancellation of one waiter cannot cancel synchronization for the other attempts.
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file @verifiers/v1/session.py around line 102:
A cancelled coalesced request cancels the shared `LogicalCallReplay.inflight` future, so the original exchange cannot publish its result and all other retry handlers receive `CancelledError`. Await this shared future through `asyncio.shield` so cancellation of one waiter cannot cancel synchronization for the other attempts.
Member
Author
|
Superseded by #2386, which now contains the full RLM ACP contract as one PR against main. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ModelCall.metadataX-RLM-*constant, parser, schema rule, and stripping decision into the RLM harness protocol moduleTrace.nodesauthoritative for training branches; runtime lineage remains descriptive call metadataUnrelated harnesses cannot activate RLM behavior merely by sending
X-RLM-*headers.Depends on #2384.
Validation
uv run pytest tests/v1/test_rlm_lineage.py tests/v1/test_trace.py -q