fix(alpen-ee): preserve newPayload status semantics#1884
Conversation
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9c2eb8eec7
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
Follow-up on
|
|
This is still at the post-fix state where Accepted is treated as a non-fatal outcome in alpen-ee, and the earlier review thread is resolved. If you want a follow-up on the remaining evmexec side for cross-module consistency, I can keep that separate. Otherwise this is ready for another pass. |
Description
Stops
submit_payload()from flattening every successfulnew_payload(...)transport round-trip intoOk(()).Before this change, Alpen EE discarded the returned
PayloadStatus, soInvalidandSyncingnever surfaced as engine-level outcomes. This patch keeps the retry loop but maps the status explicitly:Validsucceeds,InvalidreturnsExecutionEngineError::InvalidPayload,SyncingreturnsExecutionEngineError::EngineSyncing, andAcceptedreturns success.That keeps
Acceptedas a non-fatal outcome in thisResult<(), ExecutionEngineError>path instead of retrying the same payload until the retry budget expires.Type of Change
Notes to Reviewers
The production change is the payload-status mapping in
crates/alpen-ee/engine/src/engine.rs.The current branch also locks the retry boundary in tests:
AI was used to assist in this PR.
Is this PR addressing any specification, design doc or external reference document?
If yes, please add relevant links:
Checklist
Related Issues