Skip to content

apollo_transaction_converter: make validators use task that verifies and stores the proof#12713

Merged
einat-starkware merged 1 commit intomain-v0.14.2from
einat/add_store_to_handle
Feb 19, 2026
Merged

apollo_transaction_converter: make validators use task that verifies and stores the proof#12713
einat-starkware merged 1 commit intomain-v0.14.2from
einat/add_store_to_handle

Conversation

@einat-starkware
Copy link
Copy Markdown
Contributor

@einat-starkware einat-starkware commented Feb 18, 2026

Note

Medium Risk
Changes proof verification/storage execution and error handling during consensus proposal validation; failures or task panics now surface differently and could affect proposal finalization timing.

Overview
Consensus validators now rely on apollo_transaction_converter to spawn a single VerifyAndStoreProofTask per tx that both verifies the proof and stores it in the proof manager, and validate_proposal simply awaits these tasks on ProposalFin (with timing logs) instead of doing a separate store step.

The consensus_proof_manager_store_latency histogram is moved to apollo_transaction_converter::metrics (and consumed by the orchestrator/dashboard), and a new TransactionConverterError::VerifyAndStoreProofTaskFailed is added and mapped to an internal gateway error; Grafana panel titles are updated accordingly.

Written by Cursor Bugbot for commit e299e8f. This will update automatically on new commits. Configure here.

@einat-starkware einat-starkware marked this pull request as ready for review February 18, 2026 15:12
@reviewable-StarkWare
Copy link
Copy Markdown

This change is Reviewable

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link
Copy Markdown
Collaborator

@noaov1 noaov1 left a comment

Choose a reason for hiding this comment

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

@noaov1 reviewed 9 files and all commit messages, and made 2 comments.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on einat-starkware).


crates/apollo_consensus_orchestrator/src/validate_proposal.rs line 353 at r1 (raw file):

    task.await
        .map_err(|e| format!("Verify and store proof task panicked: {e}"))?
        .map_err(|e| format!("Verify and store proof task failed: {e}"))

We already have that string in the display of VerifyAndStoreProofTaskFailed.

Code quote:

        .map_err(|e| format!("Verify and store proof task failed: {e}"))

crates/apollo_transaction_converter/src/metrics.rs line 15 at r1 (raw file):

            CONSENSUS_PROOF_MANAGER_STORE_LATENCY,
            "consensus_proof_manager_store_latency",
            "Time taken to store a proof in the proof manager in seconds in the consensus orchestrator"

Suggestion:

            "Time taken to store a proof in the proof manager during consensus orchestration, in seconds"

@einat-starkware einat-starkware force-pushed the einat/add_store_to_handle branch from 87d207e to e299e8f Compare February 18, 2026 23:08
Copy link
Copy Markdown
Contributor Author

@einat-starkware einat-starkware left a comment

Choose a reason for hiding this comment

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

@einat-starkware made 1 comment and resolved 1 discussion.
Reviewable status: 7 of 9 files reviewed, 1 unresolved discussion (waiting on noaov1).


crates/apollo_consensus_orchestrator/src/validate_proposal.rs line 353 at r1 (raw file):

Previously, noaov1 (Noa Oved) wrote…

We already have that string in the display of VerifyAndStoreProofTaskFailed.

Fixed to use the underlying error

Copy link
Copy Markdown
Collaborator

@noaov1 noaov1 left a comment

Choose a reason for hiding this comment

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

:lgtm:

@noaov1 reviewed 2 files and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on einat-starkware).

@einat-starkware einat-starkware added this pull request to the merge queue Feb 19, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Feb 19, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Feb 19, 2026
@einat-starkware einat-starkware added this pull request to the merge queue Feb 19, 2026
@Itay-Tsabary-Starkware Itay-Tsabary-Starkware removed this pull request from the merge queue due to a manual request Feb 19, 2026
@einat-starkware einat-starkware added this pull request to the merge queue Feb 19, 2026
Merged via the queue into main-v0.14.2 with commit 7e3c155 Feb 19, 2026
15 of 17 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 20, 2026
@einat-starkware einat-starkware deleted the einat/add_store_to_handle branch March 9, 2026 10:10
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.

3 participants