How to use this page
Every diagram in the Loyalty section, 42 in all, grouped under the page it belongs to and shown in the order the pages are read. Use it to review all the diagrams of one page together, or to scan the whole set. For a shorter, topic-based selection, see the Diagram Gallery.
Overview
1 diagram · Open the page
Architecture of the loyalty platform
Flights and partner transactions feed a deterministic earn engine that applies earning, tier and expiry rules and posts to the points ledger.
Sequence Diagrams
6 diagrams · Open the page
Missing-miles claim resolved by rule
A member submits a boarding pass photo.
Partner file matched and posted
A card partner sends a monthly file.
Redemption with risk scoring and step-up
A member redeems miles for an award.
Offer decided by rules, checked for consent and sent
Decisioning picks eligible members within budget and caps.
Account takeover caught at login and redemption
A login from a new device in a new country is scored as risky.
Service copilot grounded in the program terms
An agent asks whether a member's miles expire.
Data Model & Classification
2 diagrams · Open the page
Core entities of the loyalty platform
A member has an account with a points balance and a tier status.
Handling a deletion request
A member asks for their personal data to be deleted.
Tool & API Contracts
1 diagram · Open the page
A lost response, a safe retry and a refused credit
A credit posts but the response is lost.
Integration Map
3 diagrams · Open the page
Integration map of the loyalty platform
The app, web and contact centre and partner files reach the platform.
Outbox pattern for ledger events
Posting a ledger entry writes the entry and an outbox row in one transaction.
Queueing a posting when the ledger is unavailable
A credit fails because the ledger does not answer.
Non-Functional Requirements
1 diagram · Open the page
Provider failover and the manual queue
When the primary provider times out the gateway fails over to the second.
Development with the AI Gateway
2 diagrams · Open the page
A gateway call with retry and fallback
The service calls the gateway with an alias.
A blocked claim document and a budget stop at the gateway
A scan blocks a claim image whose text carries hidden instructions, so no provider is called and the claim goes to an agent.
Databricks Data & AI Platform
3 diagrams · Open the page
Databricks lakehouse for the loyalty platform
Ledger and member extracts, flight and partner data and agent traces land in Unity Catalog as bronze, silver and gold tables, with a program-terms index, features and masks on identity and travel history.
A rule changes and the index follows
The program office publishes an amended rule with an effective date.
Nightly evaluation job
A nightly job runs the evaluation set through the agents and the gateway, records traces in MLflow , scores the results and writes them to a gold table.
Prisma AIRS Runtime Security
2 diagrams · Open the page
Where runtime security scans sit in the loyalty platform
Claim documents, member messages and agent questions are scanned before a model reads them.
Scanning a claim, and failing closed
A claim image's text is scanned and extracted, and the agent proposes crediting miles.
Microsoft Foundry Example
1 diagram · Open the page
A Foundry agent run for a claim that needs approval
The service adds the claim summary to a thread and runs the claims agent.
LangSmith Example
2 diagrams · Open the page
Pause for review, resume on the agent's answer
The graph runs to the decide node, finds the claim above the automatic limit, saves its state and pauses at review.
A LangSmith offline experiment
CI (continuous integration) calls evaluate with the target and a dataset.
Telemetry & KQL Examples
1 diagram · Open the page
A trace for one claim
A root span for the claim contains child spans for the input scan, a fast-model extraction, segment verification, rule calculation, a policy check, the post tool call and the output scan, drawn as bars on a shared time axis.
Telemetry Sequence Diagrams
6 diagrams · Open the page
Trace context propagation across one claim
Intake starts the trace and the orchestrator creates the root span.
Telemetry export pipeline
The service sends spans, metrics and logs to a collector over OTLP.
Tail sampling decision
The sampler holds the spans of each trace until the root ends.
Business event to credited-miles query
When miles are credited the service writes a log record with a custom event name.
Alert to incident response
A scheduled alert query returns a credit with no valid basis.
Online evaluation from production traces
A sample of production traces goes to an online evaluator, which asks a judge model to score extraction and rule groundedness.
Threat Model
3 diagrams · Open the page
Data flow and trust boundaries
Members, partners and attackers reach the intake from the internet.
Hidden instructions in a claim image blocked at the scan
An attacker submits a boarding pass image with hidden text instructing the platform to credit extra miles.
Social engineering of a contact centre agent
A caller impersonating a member asks an agent to transfer miles.
Evaluation Plan
1 diagram · Open the page
From a change to production through the gate and a canary
A change passes the suites and thresholds in CI, goes to a small share of traffic, is watched by online evaluators for a day and is then promoted.
Cost & FinOps Model
1 diagram · Open the page
Budget alert at 80 percent of the daily limit
The gateway tracks spend per key.
Rollout & Operating Model
1 diagram · Open the page
Shadow mode: the platform proposes and people decide
Program staff resolve the claim as today.
Agile Delivery Plan
4 diagrams · Open the page
Roadmap across sixteen two-week sprints
A timeline of sixteen sprints grouped into five phases: foundations, shadow, assisted, pilot and expand.
A two-week sprint, day by day
Ten working days.
Story workflow
A story moves from backlog to ready, in progress, in review, evaluation, done and released.
Story lifecycle across the team
The product owner and team refine and estimate the story, commit to it at sprint planning and build it.
Runbooks & Incident Playbooks
1 diagram · Open the page
Response to miscredited miles
The alert pages the on-call engineer, who switches the platform to read-only, reverses and reposts the entries, contacts affected members through the program office, traces the cause and adds a regression case before the platform leaves read-only.
Build this for your business
This example is a loyalty platform for an airline, but the same pattern, deterministic financial rules, a governed gateway, runtime security, consent-aware personalisation and measured quality, fits any program that holds a customer balance and makes offers. We can scope a pilot on your own systems.
Book a discovery call