Skip to content

feat: choose the quorum service in Settings and with dg --quorum-url - #382

Merged
PastaPastaPasta merged 5 commits into
masterfrom
feat/p0-e7-quorum-url
Oct 5, 2026
Merged

PastaPastaPasta merged 5 commits into
masterfrom
feat/p0-e7-quorum-url

Conversation

@PastaPastaPasta

Copy link
Copy Markdown
Owner

What

Readers can now choose the quorum service that every proof is checked against, on any network.

  • Web app: Settings has a new Quorum service section, available signed in or out. The app asks a typed https:// URL for its quorum list before saving it, so a typo can't stop every read. The URL is saved per network in this browser, and the page reloads to use it. Use the default puts the default back. The trust panel and the quorum-key cross-check name the chosen service, so repository pages still compare its keys with a Platform node's.
  • dg / git-remote-dash: a new global --quorum-url flag. DASH_FORGE_QUORUM_URL and git config dash.quorumUrl now work on testnet and mainnet too; before, they applied only on a devnet. The setting reaches git-remote-dash through the child environment. dg doctor names the quorum service in use on every network. On testnet and mainnet, a plain-http URL is refused when the client connects, and the error names the settings that chose it. A command that never reads the network is not stopped by it.
  • Docs: verify-forge.md explains how to point each tool at another service and what that service must serve (/quorums, /previous, i.e. Dash's quorum-list-server). It also explains why there is no DAPI-only fallback. BUILDING.md is updated to match.

Why

Roadmap E7 / TS-13: a single quorum endpoint run by DCG gates every proven read. If it is down or blocked, both the web app and dg stop reading.

Why no DAPI-only fallback

The SDK takes quorum keys from a quorum service and nowhere else:

  • Rust: rs-sdk-trusted-context-provider TrustedHttpContextProvider::new_with_url (provider.rs) is the only key source without a Core node. It fetches {base}/quorums and {base}/previous.
  • Browser: evo-sdk's trusted mode only fetches through WasmTrustedContext.prefetch{Mainnet,Testnet,Devnet}WithUrl (EvoSDK.connect). Untrusted mode checks no proofs.

DAPI's getCurrentQuorumsInfo returns unproved keys for the current set only. The web app already uses it as the second source of the cross-check, never as a replacement. Building a custom Rust ContextProvider from several nodes' getCurrentQuorumsInfo would be possible, but it is out of scope here, and the browser could not use it.

How tested

  • cargo fmt --check, cargo clippy --workspace --all-targets -D warnings, cargo test --workspace (new: testnet keeps a chosen service and hands it to the child; mainnet refuses plain http at connect; a devnet keeps its own).
  • tsc, eslint --max-warnings=0, vitest (5650 passed; new lib/quorum-url.test.ts and components/quorum-service-field.test.tsx).
  • Live on sakura with a production static build, using Playwright (evidence dash-forge-qa/evidence/p0/integrity-dx/e7-quorum/):
    • plain http is refused without being contacted; an unreachable host is refused and nothing changes;
    • choosing testnet's quorum service (it answers, but its keys can't check a sakura proof) makes the SDK fetch from quorums.testnet.networks.dash.org, and the repo page can't resolve. That proves the setting is the SDK's key source;
    • Use the default brings back quorums.sakura.networks.dash.org, and the repo page loads;
    • axe: no violations, desktop dark and 390 px light; no horizontal overflow at 390 px.

Screenshots

Desktop, dark, with a service chosen: 04-desktop-dark-chosen.png. 390 px, light, default: 07-mobile-390-light.png. Both are in the evidence folder above.

Limits

  • No DAPI-only fallback (see above).
  • The cross-check is not ported to dg doctor yet.

🤖 Generated with Claude Code

PastaPastaPasta and others added 2 commits October 4, 2026 14:09
DASH_FORGE_QUORUM_URL and dash.quorumUrl now apply on testnet and mainnet too, not only on a devnet, and reach git-remote-dash through the child environment. dg doctor names the quorum service in use. A plain-http service on testnet or mainnet is refused at connect, naming the settings that chose it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Settings gains a Quorum service section: a typed https URL is asked for its quorum list, saved in this browser for the network, and used by the SDK after a reload. The trust panel and the key cross-check name the chosen service. The docs explain why there is no DAPI-only fallback (the SDK takes quorum keys only from a quorum service).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 41 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a7b40654-af40-4654-982c-1c9421e5e653
📥 Commits

Reviewing files that changed from the base of the PR and between cfb9b29 and 0b5071b.

📒 Files selected for processing (18)
  • crates/dg/src/context.rs
  • crates/dg/src/doctor.rs
  • crates/dg/src/git.rs
  • crates/dg/src/main.rs
  • crates/forge-core/src/network.rs
  • crates/forge-core/src/platform/mod.rs
  • docs/BUILDING.md
  • docs/guides/verify-forge.md
  • forge-web/app/settings/page.tsx
  • forge-web/components/quorum-service-field.test.tsx
  • forge-web/components/quorum-service-field.tsx
  • forge-web/lib/constants.ts
  • forge-web/lib/quorum-url.test.ts
  • forge-web/lib/quorum-url.ts
  • forge-web/lib/sdk/service.ts
  • forge-web/lib/view/index.ts
  • forge-web/lib/view/quorum-check.test.ts
  • forge-web/lib/view/quorum-check.ts
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

PastaPastaPasta and others added 3 commits October 4, 2026 14:21
…verywhere

Settings now refuses a quorum service whose keys contradict a Platform node's or belong to another network, says so when the browser won't keep the setting, and reads the saved choice after mount. dg hands every git child the exact quorum service, pins a chosen one into a clone's config, trims a devnet's URL like testnet's, and treats a blank --quorum-url as unset.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	forge-web/app/settings/page.tsx
@PastaPastaPasta
PastaPastaPasta merged commit c61c0d8 into master Oct 5, 2026
32 checks passed
@PastaPastaPasta
PastaPastaPasta deleted the feat/p0-e7-quorum-url branch October 5, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant