{#- Small pieces the pages share: icons, and the chips for severity and status. -#} {%- macro icon(name) -%} {%- endmacro -%} {%- macro severity_chip(severity) -%} {%- if severity == "ERROR" -%}Error {%- else -%}Warning {%- endif -%} {%- endmacro -%} {%- macro status_chip(row) -%} {%- if row.status == "FAIL" -%}{{ severity_chip(row.severity) }} {%- elif row.status == "PASS" -%}Passed {%- else -%}Not evaluated {%- endif -%} {%- endmacro -%} {#- What the Bank's validations deny list did to a rule: a chip for a list, a note for a detail. -#} {%- macro deny_chip(row) -%} {%- if row.deny -%}{{ "Switched off by the Bank" if row.reason == "deactivated_by_publisher" else "Downgraded by the Bank" }}{%- endif -%} {%- endmacro -%} {%- macro deny_note(row, published="") -%} {%- if row.deny -%}
Validations deny list

This rule was {{ row.deny }}.{% if row.reason == "deactivated_by_publisher" %} The gateway does not run it, and firms are not expected to meet it.{% else %} A break is a warning to explain, and does not stop the submission.{% endif %}{% if published %} {{ published | capitalize }}.{% endif %}

{%- endif -%} {%- endmacro -%} {#- A known issue with the published rule: a chip for a list, a callout for a detail. -#} {%- macro issue_chip(row) -%} {%- for note in row.issues -%}{{ "Open question" if note.kind == "clarification" else "Known issue" }} {{ note.issue_id }}{%- endfor -%} {%- endmacro -%} {%- macro issue_callout(item) -%} {%- set note = item.note -%}
{{ note.heading }} · {{ note.issue_id }}

{{ note.title }}

{{ note.status_text | capitalize }}.{% if note.inside is not none %} {% if note.inside == 0 %}None of the {{ note.unsatisfied }} break{{ "s" if note.unsatisfied != 1 }} here is where it applies: they are not explained by it.{% else %}{{ note.inside }} of {{ note.unsatisfied }} break{{ "s" if note.unsatisfied != 1 }} {{ "may be" if note.attribution == "possible" else "are" }} where the published rule {{ "is open to question" if note.kind == "clarification" else "is known to be wrong" }}{% if note.outside %}; {{ note.outside }} {{ "is" if note.outside == 1 else "are" }} not explained by it{% endif %}.{% endif %}{% endif %} The verdict is unchanged.

{% if item.quote %}
{{ item.quote }}
{% endif %} {% if item.issue.meanwhile %}

Meanwhile: {{ item.issue.meanwhile }}

{% endif %}

The whole issue: rwa-filer rulebook issues {{ note.issue_id }}

{%- endmacro -%} {#- The rule's text as the Bank's workbook states it (Rules page and the cell panel). -#} {%- macro rule_text(rule) -%} {%- if rule.expression -%}

The rule, as the Bank's workbook states it

{{ rule.expression }}
{% if rule.scope %}

Scope

{{ rule.scope }}
{% endif %}
{%- endif -%} {%- endmacro -%} {#- One unsatisfied evaluation: where, the values it read, and each cell on the grid. ``here`` is the (table, sheet, open key, row, column) of the cell being looked at, if any. -#} {%- macro failure_card(failure, grid_url, rule_id, here=none) -%}
{{ "At " ~ failure.place if failure.place else "One evaluation over the whole template" }}
{% if failure.addresses %}
{% for address in failure.addresses[:24] %} {% set is_here = here is not none and (address.table, address.sheet, address.open_key, address.row, address.column) == here %} {{ address.table }}{% if address.sheet %} z{{ address.sheet }}{% endif %}{% if address.open_key %} {{ address.open_key }}{% endif %} r{{ address.row }} c{{ address.column }} {% endfor %} {% if failure.addresses | length > 24 %}and {{ failure.addresses | length - 24 }} more{% endif %}
{% endif %}
{%- endmacro -%} {#- The file and header fields of a form that opens a return (Open and Compare pages). -#} {%- macro open_fields(values, modules, releases) -%}

Return header

A fact table (.parquet or .csv) carries no header, so the entity, the reference date and the module are required for one. A workbook or an XBRL instance states its own; anything entered here overrides it.

{{ caller() }}
{%- endmacro -%}