When a rule matches, theDocumentation Index
Fetch the complete documentation index at: https://docs.blnkfinance.com/llms.txt
Use this file to discover all available pages before exploring further.
then block tells Watch what outcome to produce. In practice, it answers three questions:
- what should happen,
verdict - how strong the signal is,
score - why the rule matched,
reason
allow verdict for a valid discount transaction:
redeemDiscountCode.ws
Supported verdicts
Watch allows you to set one of six supported verdicts. Choose the one that closely matches the action your system should take after the rule fires.| Verdict | When to use it | Example use case |
|---|---|---|
allow | Transaction is acceptable; you still want an explicit outcome recorded. | Low-risk internal transfer |
approve | Explicitly mark as approved by rule logic. | Trusted partner payout flow |
alert | Notify or log without a hard stop. | Mild anomaly to monitor |
review | Transaction needs more scrutiny before you trust it. | Suspicious but not definitive fraud signal |
deny | Explicitly deny via rule logic. | Policy-based rejection |
block | Stop the transaction immediately. | Sanctioned destination or known fraud pattern |
Defining scores
score represents the risk weight assigned by the rule.
Watch does not enforce a fixed risk policy. Instead, you define what different score values mean based on your risk appetite, review workflow, and decision thresholds. The same score can therefore mean different things depending on the system you are building.
For example, a score of 0.3 might be treated as a weak signal that still results in allow in one system, while another system may treat it as a signal that requires review. Many teams reserve a score of 1.0 for rules that should always result in a hard stop, such as a block.
If you omit
score in the then block, Watch defaults it to 0.0.highValueReview.ws
Writing reasons
reason is a human-readable explanation for why a rule triggered. It appears in debugging output, analyst workflows, audit trails, webhook payloads, and logs.
suspiciousKeywordTransfer.ws
If you omit
reason, Watch defaults it to "No reason provided".How consolidation works
A transaction can match multiple rules. When this happens, Watch combines the results of those rules into a single consolidated risk assessment. This gives your system one score and one verdict per transaction, even if several rules fired.Response
-
final_risk_score: The final score is the average of thescorevalues from all rules that matched. The result is always clamped between 0 and 1. -
final_verdict: Individual rule verdicts (allow, review, block, etc.) are not merged. Instead, Watch determines the final verdict from the consolidated score:- If the final score is 0.7 or higher, the verdict is
block. - Otherwise, the verdict is
review.
- If the final score is 0.7 or higher, the verdict is
-
final_reason: Thereasonvalues from all matching rules are combined into a single string, separated by ”; ”. This allows you to see every rule that contributed to the decision. -
source_count: The number of rules that matched the transaction.
No rules triggered