feat(zk-host): enable all configured proving backends#3920
Merged
Conversation
mw2000
force-pushed
the
mw2000/zk-host-routing
branch
from
July 14, 2026 07:28
b31efe7 to
d621781
Compare
mw2000
force-pushed
the
mw2000/zk-host-multi-backend
branch
from
July 14, 2026 07:31
771e83c to
2b93656
Compare
Collaborator
✅ Heimdall Review Status
|
Discover backend availability from its existing settings so one host can serve mock, dry-run, cluster, and network requests without a selector environment variable. Co-authored-by: Cursor <cursoragent@cursor.com>
Preserve mock-only compatibility for stale partial RPC settings, reuse parsed RPC configuration, and clarify presence-based backend enablement. Co-authored-by: Cursor <cursoragent@cursor.com>
Exercise mock, dry-run, cluster, and network enablement together while making optional string parsing accept borrowed string options directly. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep binary wiring minimal by moving backend validation and shared prover setup into the backend crate, while removing stale selector configuration. Co-authored-by: Cursor <cursoragent@cursor.com>
Treat either S3 setting as cluster intent while keeping the default dry-run deployment free of implicit cluster configuration. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep backend-specific invariants in focused resolvers and derive shared witness RPC settings from the resolved backend configs to prevent drift. Co-authored-by: Cursor <cursoragent@cursor.com>
Removed outdated information about RPC configuration and backend settings.
Report backend-specific validation failures before tolerated mock-only RPC errors, and warn when incomplete RPC settings are intentionally ignored. Co-authored-by: Cursor <cursoragent@cursor.com>
Build independent configured backends in parallel so expensive key setup does not serialize multi-backend startup. Co-authored-by: Cursor <cursoragent@cursor.com>
Drain parallel initialization tasks on failure or cancellation and reject mismatched RPC settings before sharing a witness provider. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep canonical RPC resolution alongside backend configs and consolidate parallel task error handling without changing startup behavior. Co-authored-by: Cursor <cursoragent@cursor.com>
Validate that at least one backend is configured at the config boundary, ignore orphan S3 settings without a cluster endpoint, and preserve the Docker region default. Co-authored-by: Cursor <cursoragent@cursor.com>
mw2000
force-pushed
the
mw2000/zk-host-multi-backend
branch
from
July 14, 2026 17:05
2b93656 to
6c3cf05
Compare
Contributor
Review SummaryThe PR successfully moves from a single Key findings (see inline comments for details)Correctness / Behavior change risks:
API design:
Testing:
Overall: the approach is reasonable, but the implicit dry-run activation and the dual-RPC-ownership pattern warrant attention before merge. |
Contributor
✅ base-std fork tests: all 616 passedbase/base is fully in sync with the base-std spec.
|
mw2000
enabled auto-merge
July 14, 2026 17:10
jackchuma
approved these changes
Jul 14, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Jul 14, 2026
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.
Summary
Enables one ZK host to initialize every configured proving backend and route each request to its selected backend. Backend availability is inferred from configuration presence, with shared witness-provider setup centralized in
base-proof-zk-backendand the legacyZK_BACKENDselector removed.