Skip to content

Add compliance gating design rationale - #523

Merged
misrasamuelisiguzor-oss merged 1 commit into
WHEELBACK:mainfrom
meetdarc-tech:docs/compliance-gating-design-rationale
Aug 31, 2026
Merged

Add compliance gating design rationale#523
misrasamuelisiguzor-oss merged 1 commit into
WHEELBACK:mainfrom
meetdarc-tech:docs/compliance-gating-design-rationale

Conversation

@meetdarc-tech

Copy link
Copy Markdown

Summary

This PR adds a design-rationale document explaining why the protocol uses an explicit on-chain compliance gate rather than alternative patterns such as client-side allowlists, oracle-fed sanctions feeds, or zero-knowledge attestations.

What changed

  • Added docs/compliance-gating-design.md
  • Documented the protocol’s current model: admin-managed allow/block state stored on-chain and enforced through Compliance::is_allowed
  • Explains the trade-offs of each alternative pattern in clear, auditable terms
  • Captures the rationale for the existing design so future maintainers and auditors can understand why the current implementation was chosen

Why this design

The current compliance approach is intentionally not a soft client-only policy. The protocol stores the decision in contract state and enforces it automatically in the settlement flow. This makes the compliance gate deterministic, inspectable, and enforceable at the protocol boundary.

The document compares that model against:

  • purely off-chain allowlist enforcement
  • oracle-based sanctions feed integration
  • zero-knowledge attestation-based compliance proofs

Each alternative is discussed in terms of its trust assumptions, operational trade-offs, and fit with this protocol’s public auditability needs.

Scope

This is documentation-only. It does not change behavior, ABI, storage schema, or runtime logic.

closes #476

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@meetdarc-tech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@misrasamuelisiguzor-oss
misrasamuelisiguzor-oss merged commit 443293d into WHEELBACK:main Aug 31, 2026
5 of 13 checks passed
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.

Write a comparison document: this protocol's compliance-gating design versus common alternative patterns (allowlist-only, oracle-based, ZK-attestation)

3 participants