refactor(pxe): clean up the operation and staged-write lifecycle (backport of aztec-labs-eng/aztec-node#35) - #25336
Open
nventuro wants to merge 1 commit into
Conversation
nchamo
approved these changes
Aug 28, 2026
* refactor(pxe): clean up the operation and staged-write lifecycle * fix(pxe): keep an operation's outcome when a contributor's end notification throws * refactor(pxe): clarify staged-write coordinator docs and naming (cherry picked from commit 3850908ac99f57206222639bc6e9e1463569160b)
nventuro
force-pushed
the
nico/port-node-35-operation-lifecycle
branch
from
August 28, 2026 21:15
36f8320 to
9293331
Compare
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.
Backport of aztec-labs-eng/aztec-node#35 to the v5 line: a
git cherry-pick -xof its squash commit onaztec-node/main,3850908ac99f57206222639bc6e9e1463569160b. The change itself was described and reviewed there; this PR is only about the port being faithful, so please review it as such.Validating the backport
Fetch the source repo once:
git remote add node https://github.com/aztec-labs-eng/aztec-node && git fetch node main.Compare the upstream patch with this PR's patch (
range-diffcompares patches, so unrelated histories are fine):Expected: the
(cherry picked from commit …)trailer under the commit message, and exactly one patch-level difference, inyarn-project/txe/src/oracle/txe_oracle_top_level_context.ts:v5's contract-sync
utilityExecutorforwardsauthorizedUtilityCallTargets(nextdoes not); the resolution keeps that argument and applies upstream'sjobId→changeSetIdrename. Every other-/+line in the output is a context-only difference (a single-or+followed by a space): the lines around the patch differ between v5 andnextintxe_session.tsandsync_tagged_private_logs.test.ts, the changed lines do not.Build and run the unit suites at this commit (from
yarn-project/):yarn workspace @aztec/pxe build && yarn workspace @aztec/txe build && yarn workspace @aztec/pxe test && yarn workspace @aztec/txe test. The upstream PR's own tests are part of these suites, so passing them is the behavioral check; CI on this PR runs them as well.This change rewrites the TXE session's operation lifecycle, so also run a TXE-driven contract test package against the built TXE, e.g.
noir-projects/noir-contracts/bootstrap.sh test-package nested_utility_contract(also checked locally:custom_sync_state_contract,token_contract).Stack
Stacked on the backport of aztec-labs-eng/aztec-node#20 (base branch
nico/port-node-20-operation-queue); to be rebased ontomerge-train/fairies-v5once that one merges. Order: #20 → #35 → #40 → #47 → #94 → #100 → #98 (aztec-node numbers).