Skip to content

[rollout-tracer] Match analysis messages on encrypted id.#20123

Merged
cassirer-openai merged 2 commits intomainfrom
cassirer/04-28/match-on-id-rather-than-content
Apr 29, 2026
Merged

[rollout-tracer] Match analysis messages on encrypted id.#20123
cassirer-openai merged 2 commits intomainfrom
cassirer/04-28/match-on-id-rather-than-content

Conversation

@cassirer-openai
Copy link
Copy Markdown
Contributor

In some setups the summary or raw content can be dropped between requests. This triggers a check in the reducer which expects that the messages should remain identical between requests.

This PR relaxes the checks to only focus on the encrypted ID instead. It also changes the reducer to keep the most rich version of the message observed during the rollout (this ensures that we don't accidentally lose the CoT nor summary when available).

In some setups the summary or raw content can be dropped between requests. This triggers a check in the reducer which expects that the messages should remain identical between requests.

This PR relaxes the checks to only focus on the encrypted ID instead. It also changes the reducer to keep the most rich version of the message observed during the rollout (this ensures that we don't accidently lose the CoT nor summary when available).
// an ordered superset so a later sighting can add summary/text while a
// conflicting sighting cannot overwrite the first readable body.
let mut incoming_iter = incoming_parts.iter();
existing_parts.len() < incoming_parts.len()
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This still drops complementary readable reasoning. If one sighting has only raw text and a later sighting has only summary for the same encrypted_content, neither body is a superset, so we never keep both. Can we merge non-conflicting text/summary observations instead of requiring the incoming body to contain all existing readable parts?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I don't think that will ever happen in practice but seems reasonable so updated the code.

@cassirer-openai cassirer-openai enabled auto-merge (squash) April 29, 2026 16:57
@cassirer-openai cassirer-openai merged commit df96699 into main Apr 29, 2026
25 checks passed
@cassirer-openai cassirer-openai deleted the cassirer/04-28/match-on-id-rather-than-content branch April 29, 2026 17:22
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants