Traveler Duty of Care · 13 / 26

Databricks Data and AI (artificial intelligence) Platform

How Databricks holds the duty platform's coarse aggregates, event and muster history, policy index, model training and validation, tracing and evaluation, without exact locations.

What Databricks does here

Databricks lakehouse for the traveler duty of care platform Coarse trip aggregates, risk events, alerts, muster outcomes and response measures land in Unity Catalog as bronze, silver and gold tables, with a policy index, features and masks. The risk advisor is trained and validated with MLflow and registered, and a gated process deploys approved versions. Model Serving handles offline and non-real-time use only. Exact locations never arrive here. Coarse trip data country · day · counts Events and alerts areas · times · outcomes Software traces from the gateway Unity Catalog · travel_prod bronze · silver · gold knowledge · features · masks Training and validation MLflow · outcome tests Model registry gated promotion Evaluation tracing · scorecards validate
One governed platform holds the aggregates, the models, their validation and the evaluation loop. Matching and alerts run on the safety path, not here, and no exact location is stored here.

Databricks is the data and AI platform for development and monitoring. It keeps coarse aggregates and the history of events, alerts and muster outcomes in governed tables, trains and validates the risk advisor against what happened, registers approved versions for a gated release, and provides tracing and evaluation. Traveler references are masked by role, and exact locations and names never enter the lakehouse.

Governance in Unity Catalog

One catalog per environment, with schemas by purpose. Access is granted to groups, never to individuals, and sensitive data is protected in the table, so every notebook, dashboard and evaluation job inherits the control.

SchemaContentsWho can read
bronzeCoarse trip aggregates, risk events, alerts and traces as receivedData engineers
silverCleaned incidents, exposures, muster states, alerts, decisions and model outputs, with traveler references maskedEngineers and analysts, with masks
goldEvaluation sets, response-time and fairness reports, KPIs (Key Performance Indicators) and feed health viewsSecurity, quality and evaluation teams
knowledgePolicy and template index and its source tableThe documentation service principal
securityScan results and security events from the gatewaySecurity operations

Protecting traveler references in the table

Row filters and column masks make the rule part of the table. Analysts see a masked reference; a duty steward sees it for an approved review.

Unity Catalog · masks and row filters
-- Traveler references and country detail are masked except for approved roles
CREATE FUNCTION travel_prod.silver.mask_traveler(value STRING)
  RETURN CASE WHEN is_account_group_member('duty_stewards') THEN value ELSE '***' END;

ALTER TABLE travel_prod.silver.muster_state
  ALTER COLUMN traveler_ref SET MASK travel_prod.silver.mask_traveler;
ALTER TABLE travel_prod.silver.alerts
  ALTER COLUMN traveler_ref SET MASK travel_prod.silver.mask_traveler;

-- Regional teams see only their own region's incidents
CREATE FUNCTION travel_prod.silver.region_filter(region STRING)
  RETURN is_account_group_member('duty_global') OR is_account_group_member(CONCAT('region_', region));
ALTER TABLE travel_prod.silver.incidents
  SET ROW FILTER travel_prod.silver.region_filter ON (region);

The policy index

Travel policies, response procedures, message templates and country guidance are chunked by clause, tagged with country, version and effective dates, and stored in a gold table. A Vector Search index (the product is now branded Databricks AI Search) syncs from that table, so a policy change updates the index without a rebuild. The copilot filters by country and effective date at query time, so it cannot cite a superseded policy or another country's rule.

knowledge/search.py · filters are enforced at query time
from databricks.vector_search.client import VectorSearchClient

index = VectorSearchClient().get_index(
    endpoint_name="duty-knowledge",
    index_name="travel_prod.knowledge.policies_index",
)

def search_policies(question: str, country: str, on_date: str) -> list[dict]:
    hits = index.similarity_search(
        query_text=question,
        columns=["clause_id", "title", "text", "version", "source_url"],
        filters={"country": [country, "all"], "effective_from <=": on_date, "effective_to >=": on_date},
        num_results=5,
    )
    return hits["result"]["data_array"]
A policy changes and the index follows Security publishes an amended procedure with a version and effective date. A job parses and chunks it, writes the clauses with country and dates to the source table, and the index syncs from that table. At question time the copilot searches with a country and date filter. Security Lakeflow job Source table Vector Search Incident copilot publish amended procedure document change event parse, chunk by clause write clauses with country and dates sync from change feed embed and index search + country and date filter cited clauses
A policy changes and the index follows

No rebuild is needed. Effective dates make sure a procedure applies only when it should.

Training, validation and release of models

Training with MLflow

Experiments, datasets and code are tracked, so every model version is traceable to its data.

Outcome validation

The advisor's severity suggestions are compared with what officers decided and what happened, with calibration reported, before a version can be promoted.

Gated promotion

A model moves through the registry only with passing evaluation, timing and fault-injection results and sign-off under change control.

Controlled deployment

Approved versions are packaged and deployed to the platform through a controlled release. The alert path has no model to deploy.

Jobs that keep it current

JobScheduleWhat it does
Ingest coarse aggregatesDailyLands country and day counts in bronze and upserts silver
Ingest events and alertsContinuousLands events, alerts and muster outcomes without names or exact locations
Refresh policy indexOn change, daily checkRe-chunks changed policies, writes the source table and syncs the index
Compare advice with outcomesAfter each incidentWrites the difference between suggested and decided severity
Retrain and validate modelsOn demand, gatedTrains candidates, evaluates against past incidents and registers them; promotion needs the gate
Nightly evaluationNightly and on every releaseRuns the evaluation set, writes scores and alerts on regressions
Response fairness reportQuarterlyReports alert and response times by region and language for the quality review
Nightly evaluation job A nightly job runs the evaluation set through the documentation assistant and the advisor, records traces in MLflow, scores the results and writes them to a gold table. A regression raises an alert. Lakeflow job Agent app AI gateway MLflow Gold table Alert run dataset v6 model calls replies traces per case score with scorers and judges scores write scores by version compare with last release regression found
Nightly evaluation job

What the data answers

Build this for your business

This example is speculative, but the same pattern, minimal and consented data, deterministic rules for every safety duty, a governed gateway, runtime security, advisory-only AI and accountable people, fits any service that looks after people. We can scope a pilot on your own systems.

Book a discovery call