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

mart_client_scorecard

beta
mart table

Per-client×contract SLA scorecard — OTIF and pick-accuracy actual vs target, volume, and billing.

Definition

One row per client×contract engagement (grain (client_id, contract_id)), sourced from int_whse__contract_sla joined to fulfillment actuals. Carries each SLA target next to its achieved actual (otif_target_pct/otif_actual_pct, pick_accuracy_target_pct/ pick_accuracy_actual_pct, dock_to_stock_target_hrs), the derived otif_gap_pct (negative = breach), order_volume, billing_model (∈ {open_book, fixed_fee, cost_plus, activity_based}), and client segment/tier. client_name is a company, not PII. Client-scoped via the client_account_manager row policy on client_id — the canonical isolation-demo surface: two managers open this and see disjoint scorecards.

Watch out for
  • highComparing actual to target without the gap sign

    A breach is otif_actual_pct < otif_target_pct (i.e. otif_gap_pct < 0) — read the sign, don't assume higher-is-worse.

  • highAssuming a manager sees every client

    The row policy scopes to the caller's client_id. This mart is the isolation showpiece — disjoint rows per manager are the expected, enforced behavior.

  • lowReading client_name as PII

    A client is a company; the natural-person PII (primary_contact_name/email) is not projected here.

Questions this answers
  • “Which of my contracts are breaching OTIF?”
  • “Show strategic-tier clients under an activity-based billing model.”
  • “List active contracts by achieved OTIF.”
16 of 16
Column
Type
Description
Tests · PII
client_id
String
Multi-tenant key. Part of grain; the client_account_manager row policy filters on this.
contract_id
String
Part of grain.
1 test
client_name
Nullable(String)
Brand tenant name (a company — not PII).
client_segment
String
automotive / chemicals / fmcg / fashion / high_tech / life_sciences / unknown.
client_tier
Nullable(String)
strategic / key / standard.
site_id
Nullable(String)
Contracted site FK.
site_region
String
EU / UK / NA / APAC / unknown.
billing_model
Nullable(String)
open_book / fixed_fee / cost_plus / activity_based.
otif_target_pct
Nullable(Decimal(18, 2))
SLA OTIF target.
otif_actual_pct
Nullable(Float64)
Achieved OTIF.
pick_accuracy_target_pct
Nullable(Decimal(18, 2))
SLA pick-accuracy target.
pick_accuracy_actual_pct
Nullable(Float64)
Achieved pick accuracy.
dock_to_stock_target_hrs
Nullable(Decimal(18, 2))
SLA dock-to-stock target.
otif_gap_pct
Nullable(Float64)
actual − target (negative = breach).
order_volume
UInt64
Orders under the contract in window.
1 test
is_active
Nullable(UInt8)
Contract currently in term (1/0), computed against logistics_as_of.