maiven gateway · online··
manifest · 1d ago
Sign in
Back to catalog
MAIVENmodelmarts

mart_approval_rules

beta
mart table

The approval-workflow rules that gate proposals — what triggers a sign-off, who signs, and the SLA.

Definition

One row per approval rule (grain `rule_id`), sourced from `stg_gcs__rfx_approval_rules`. Each row describes one gate in the proposal-approval chain: `trigger_type` is what it fires on (`discount_pct` / `deal_value` / `margin_floor` / `legal_terms`), `threshold_value` + `comparator` (`gt` / `gte` / `lt` / `lte`) form the condition, `approver_role` is who must approve when it fires, `sequence` orders the rule in the chain, `escalation_role` + `sla_hours` define the escalation if the SLA is breached, and `active` flags whether the rule is currently in force. Reference / governance data — no personal data. Use it to answer "what discount triggers exec approval" or "what is the approval chain for a large deal".

Watch out for
  • highReading inactive rules as the live policy

    `active = 0` rules are retained for history but are NOT in force. Filter `active = 1` before answering "what is the approval policy", or you may surface a superseded threshold.

  • highComparing threshold_value across trigger_types

    `threshold_value` is denominated by `trigger_type` — a `discount_pct` threshold is a percentage, a `deal_value` threshold is a currency amount, a `margin_floor` is a percentage. Comparing or sorting thresholds across mixed trigger_types is meaningless; filter to one `trigger_type` first.

Questions this answers
  • “What discount percentage triggers executive approval?”
  • “What is the approval chain for a high-value deal, in order?”
  • “Which rules escalate to legal, and on what SLA?”
10 of 10
Column
Type
Description
Tests · PII
rule_id
String
Primary key — the rule's stable id. Matches `stg_gcs__rfx_approval_rules.rule_id`.
3 tests
name
Nullable(String)
Human-readable rule name. Free-text.
1 test
trigger_type
Nullable(String)
What the rule fires on — `discount_pct` / `deal_value` / `margin_floor` / `legal_terms`.
2 tests
threshold_value
Nullable(Decimal(18, 2))
Numeric threshold compared against the trigger. Denominated by `trigger_type` (percentage for discount/margin, currency for value) — never compare across trigger_types.
1 test
comparator
Nullable(String)
Comparison operator — `gt` / `gte` / `lt` / `lte`.
2 tests
approver_role
Nullable(String)
Role that must approve when the rule fires — `rfx_approver` / `finance` / `legal` / `exec`.
2 tests
sequence
Nullable(UInt8)
Order of this rule in the approval chain (1 = first).
1 test
escalation_role
Nullable(String)
Role the approval escalates to if the SLA is breached. Nullable — no escalation defined.
1 test
sla_hours
Nullable(UInt16)
Hours allowed before the approval escalates.
1 test
active
Nullable(UInt8)
1 if the rule is currently in force, 0 otherwise. Filter `= 1` for the live policy.
2 tests