← Back to Pull requests

feat(cli)!: configure ProverServices with a prover block instead of type: remote #1559

Open
unknown opened this pull request with 627 lines diff across 7 files
View on GitHub
unknown unknown commented on Oct 14, 2026 16:09 UTC
Author

Description

A client end's type now always names the light client that is actually on chain. Choosing a ProverService moves to a separate prover block instead of replacing the type with remote:

# before                            # after
type: "remote"                      type: "besu-qbft"   # or any type, e.g. "op-stack"
params:                             prover:
  url: https://prover.example.com     url: https://prover.example.com
  tls:                                tls:
    caFile: /etc/ibc/tls/ca.crt         caFile: /etc/ibc/tls/ca.crt

Why this is useful

  • The config says what is on chain. With 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-stack plus a prover).

  • No special case when merging deployments. ibc deploy compares each client's type with the deployment manifest. remote never matched, so patch.go had to skip it. Every end now has its real type, so the exception and its TODO are gone.

  • Metrics keep the client type. Prover metrics were labelled type=remote for every remotely proven end. They now carry the on-chain type, like built-in ends.

  • Less config machinery. params existed only to carry remote'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 of cli/internal/config.

  • Same endpoint handling as other remote services. prover.url and prover.tls validate and resolve through the same helpers as a remote attestor's grpc and tls: a bare host:port is dialed as http://, https:// turns TLS on, and tls customizes it. A prover URL with a scheme other than http or https now 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 only prover.url), so the configuration reference no longer suggests every client end needs a prover. Its unused OPAQUE_TYPES hook, which only served params, is removed.

    Most important to review: cli/internal/config/relayer.go (fields and validation) and cli/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: remote with params is replaced by the client's real type plus a prover block with the same url and tls keys. Without a prover, type must be attestation or besu-qbft; with one, any non-empty type is accepted.

  • The params block is removed. An old params: key now fails to load as an unknown field.

  • A prover.url with a scheme other than http or https is rejected.

  • The prover metrics type label for ProverService-backed ends is the on-chain type instead of remote.
  • Validation

  • go test ./... in cli passes on this commit. refgen --check reports the docs up to date.

  • golangci-lint run (Go 1.26.9) reports no issues.

  • e2e: 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 in prover" rendering.

  • docs/6-ibc-cli/tools/test-refgen.py: 88 passed, 1 failed. The failure is on TLSClientConfig, as on main since #1503; nothing in this PR adds to it.
  • ---

  • Linked to GitHub issue with discussion and accepted design, OR link to spec that describes this work. Linear FOU-1893.

  • Include changelog entry when appropriate (e.g. chores should be omitted from changelog). n/a: CHANGELOG.md does not track CLI changes yet.

  • Wrote unit and e2e tests if relevant. Config validation and prover setup unit tests; the e2e harness now writes a prover block.

  • Updated documentation (docs/) if anything is changed. Configuration reference regenerated, with a hand-written paragraph on prover below the connections table; Besu light client page and otel README updated.*

  • Added godoc comments if relevant.

  • Self-reviewed Files changed in the GitHub PR explorer.

  • Provide a conventional commit message to follow the repository standards.
  • 🤖 Generated with Claude Code

    Diff: 627 lines (+470 / -157) across 7 files Reviewer: gjermundgaraba Review duration: 3085m
    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
    0.74
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 46.7% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 73.5% (HIGH) · Higher = larger blast radius
    73.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 39.2% · Moderate risk
    39.2%
    Repository