Add compliance gating design rationale - #523
Merged
misrasamuelisiguzor-oss merged 1 commit intoAug 31, 2026
Merged
Conversation
|
@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! 🚀 |
misrasamuelisiguzor-oss
merged commit Aug 31, 2026
443293d
into
WHEELBACK:main
5 of 13 checks passed
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
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
Compliance::is_allowedWhy 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:
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