The authority check in YAML
This excerpt shows the limit and the rule that uses it. In the complete file, engineering maps the lender’s fields to a single record named file. The KYB score runs from 0 to 1, so 0.88 means 88%. Compare verified figures at their supplied precision.
limits:
maxAmountUsd: 275000
rules:
- id: R07
when:
amount: '> limits.maxAmountUsd'
action: SENIOR_REVIEW
reason: AUTHORITY_LIMIT
Download the YAML specification
Read the complete YAML on this page
policy_id: "EX-COM-4.2"
version: "1.0"
effective_date: "2026-11-15"
owner: "Commercial Credit Committee (illustrative)"
use: illustrative
hit_policy: FIRST
input_record: file
# 'when' entries are FEEL unary tests keyed to the inputs below.
# An omitted input accepts any value. Retain the first matching row ID, action and reason.
limits:
minMonths: 30
declineDscr: 1.18
standardDscr: 1.30
minKyb: 0.88
maxAmountUsd: 275000
# The client supplies a verified record and its restricted-industry classification.
inputs:
screen: >-
if file.screening instance of string then file.screening else null
ready: >-
if file.verified = true and file.screening = "clear"
and file.businessMonths instance of number
and file.restrictedIndustry instance of boolean
and file.otherChecksPassed instance of boolean
and file.dscr instance of number and file.kybConfidence instance of number
and file.amountUsd instance of number
then file.businessMonths >= 0 and floor(file.businessMonths) = file.businessMonths
and file.kybConfidence >= 0 and file.kybConfidence <= 1 and file.amountUsd > 0
else false
months: >-
if file.businessMonths instance of number then file.businessMonths else null
restricted: >-
if file.restrictedIndustry instance of boolean then file.restrictedIndustry else null
baseline: >-
if file.otherChecksPassed instance of boolean then file.otherChecksPassed else null
dscr: >-
if file.dscr instance of number then file.dscr else null
kyb: >-
if file.kybConfidence instance of number then file.kybConfidence else null
amount: >-
if file.amountUsd instance of number then file.amountUsd else null
rules:
- id: R01
when:
screen: '"possible_match", "confirmed_match"'
action: COMPLIANCE_HOLD
reason: SANCTIONS_REVIEW
- id: R02
when:
ready: 'false'
action: VERIFY_FILE
reason: UNVERIFIED_INPUTS
- id: R03
when:
months: '< limits.minMonths'
action: DECLINE
reason: OPERATING_HISTORY
- id: R04
when:
restricted: 'true'
action: DECLINE
reason: RESTRICTED_INDUSTRY
- id: R05
when:
dscr: '< limits.declineDscr'
action: DECLINE
reason: LOW_COVERAGE
- id: R06
when:
baseline: 'false'
action: SENIOR_REVIEW
reason: BASELINE_EXCEPTION
- id: R07
when:
amount: '> limits.maxAmountUsd'
action: SENIOR_REVIEW
reason: AUTHORITY_LIMIT
- id: R08
when:
dscr: '[limits.declineDscr..limits.standardDscr)'
action: SENIOR_REVIEW
reason: COVERAGE_BAND
- id: R09
when:
kyb: '< limits.minKyb'
action: SENIOR_REVIEW
reason: KYB_CONFIDENCE
- id: R10
when:
screen: '"clear"'
ready: 'true'
months: '>= limits.minMonths'
restricted: 'false'
baseline: 'true'
dscr: '>= limits.standardDscr'
kyb: '>= limits.minKyb'
amount: '<= limits.maxAmountUsd'
action: CONDITIONAL_PREAPPROVAL
reason: STANDARD_ELIGIBILITY
- id: R11
when: {}
action: VERIFY_FILE
reason: UNCLASSIFIED_FILE