Repository navigation
Conversation
roychying
marked this pull request as ready for review
December 1, 2026 17:15
roychying
force-pushed
the
chenghan.ying/sq-request-reason-keep
branch
from
December 1, 2026 17:56
00593b9 to
207eddd
Compare
roychying
force-pushed
the
chenghan.ying/sq-request-reason-keep
branch
from
December 2, 2026 22:23
207eddd to
e2076f7
Compare
… caller knows and keep the resent marker out of summaries
roychying
force-pushed
the
chenghan.ying/sq-request-reason-keep
branch
from
December 2, 2026 22:55
e2076f7 to
265830c
Compare
This branch has not been deployed
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.
Why?
When the orchestrator repairs a request already in a terminal state, it resends the terminal log with a placeholder reason: "terminal status resent for consistency; original details may not have been retained". The gateway's materializer treated that resend like any other log at the same version, so it could overwrite the real reason, for example "no speculation path could pass", in the summary and in the
request.failedhook event built from it.What?
resent=truemetadata and sends the reason and metadata its caller knows, instead of a placeholder that reads like a real reason. When the original log was never published, the resend is the only account of the finish, so it must say why:TerminateRequestresends its caller's details;resentmarker stays on the log in History but never reaches the summary.Test Plan
bazel test //submitqueue/gateway/core/request/... //submitqueue/orchestrator/....make lint check-gazelle check-mocksIssue