feat(cli)!: configure ProverServices with a prover block instead of type: remote #1559
All Vouch review confidence checks passed
Residual risk 0.39 = Change Risk (0.74) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.74 · 627 lines diff across 7 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.385
Shallow Review Depth
shallow_review_depth
0.344
Sensitive Paths
sensitive_paths
0.074
Real PR Conversation Timeline
1 comments
"Review active on #1559"
general
weight: 0.35
gjermundgaraba
Description
A client end's
typenow always names the light client that is actually on chain. Choosing a ProverService moves to a separateproverblock instead of replacing the type withremote:Why this is useful
type: remote, a relayer config could not tell whether a remotely proven client was attestation, Besu QBFT or something else. Now a CLI-deployed client keeps its type when its proofs move to a ProverService, and a light client the CLI does not implement is declared as what it is (type: op-stackplus aprover).ibc deploycompares each client's type with the deployment manifest.remotenever matched, sopatch.gohad to skip it. Every end now has its real type, so the exception and its TODO are gone.type=remotefor every remotely proven end. They now carry the on-chain type, like built-in ends.paramsexisted only to carryremote's URL and TLS settings; every other type had an empty params struct, interface methods and a per-type decoder. Removing it takes about 50 lines out ofcli/internal/config.prover.urlandprover.tlsvalidate and resolve through the same helpers as a remote attestor'sgrpcandtls: a barehost:portis dialed ashttp://,https://turns TLS on, andtlscustomizes it. A prover URL with a scheme other thanhttporhttpsnow fails validation instead of the first proof request, as attestor addresses already did.The prover interface, the ProverService proto and the relay pipeline are unchanged.
The docs generator now marks a key that is required inside a block the file can leave out as "required in
<block>" (today onlyprover.url), so the configuration reference no longer suggests every client end needs a prover. Its unusedOPAQUE_TYPEShook, which only servedparams, is removed.Most important to review:
cli/internal/config/relayer.go(fields and validation) andcli/internal/relay/prover/prover.go(newProver).closes: FOU-1893
This came out of FOU-1699, which was closed without adopting its trusted-height parameter; this is the config cleanup from that work.
Breaking changes
type: remotewithparamsis replaced by the client's realtypeplus aproverblock with the sameurlandtlskeys. Without aprover,typemust beattestationorbesu-qbft; with one, any non-empty type is accepted.paramsblock is removed. An oldparams:key now fails to load as an unknown field.prover.urlwith a scheme other thanhttporhttpsis rejected.typelabel for ProverService-backed ends is the on-chain type instead ofremote.Validation
go test ./...inclipasses on this commit.refgen --checkreports the docs up to date.golangci-lint run(Go 1.26.9) reports no issues.TestRemoteProver_(3) pass on the latest commit. The Besu QBFT tests (TestDeployBesuQBFTConnection,TestTransferBesuQBFT_AutoRelay,TestTransferBesuQBFT_TimeoutRefund) passed in complete mode before the rebase onto #1503 (TLS) and the later config edits. The fast suite has not been rerun since.docs/6-ibc-cli/tools/test-refgen-e2e.py: 67 passed, including a new case for the "required inprover" rendering.docs/6-ibc-cli/tools/test-refgen.py: 88 passed, 1 failed. The failure is onTLSClientConfig, as onmainsince #1503; nothing in this PR adds to it.---
CHANGELOG.mddoes not track CLI changes yet.proverblock.docs/) if anything is changed. Configuration reference regenerated, with a hand-written paragraph onproverbelow the connections table; Besu light client page and otel README updated.*godoccomments if relevant.Files changedin the GitHub PR explorer.🤖 Generated with Claude Code