What Databricks does 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.
| Schema | Contents | Who can read |
|---|---|---|
| bronze | Coarse trip aggregates, risk events, alerts and traces as received | Data engineers |
| silver | Cleaned incidents, exposures, muster states, alerts, decisions and model outputs, with traveler references masked | Engineers and analysts, with masks |
| gold | Evaluation sets, response-time and fairness reports, KPIs (Key Performance Indicators) and feed health views | Security, quality and evaluation teams |
| knowledge | Policy and template index and its source table | The documentation service principal |
| security | Scan results and security events from the gateway | Security 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.
-- 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.
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"]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
| Job | Schedule | What it does |
|---|---|---|
| Ingest coarse aggregates | Daily | Lands country and day counts in bronze and upserts silver |
| Ingest events and alerts | Continuous | Lands events, alerts and muster outcomes without names or exact locations |
| Refresh policy index | On change, daily check | Re-chunks changed policies, writes the source table and syncs the index |
| Compare advice with outcomes | After each incident | Writes the difference between suggested and decided severity |
| Retrain and validate models | On demand, gated | Trains candidates, evaluates against past incidents and registers them; promotion needs the gate |
| Nightly evaluation | Nightly and on every release | Runs the evaluation set, writes scores and alerts on regressions |
| Response fairness report | Quarterly | Reports alert and response times by region and language for the quality review |
What the data answers
- Time from event to message, and to every traveler accounted for, by region and language.
- Incidents closed with unresolved travelers, which must be zero.
- Feed freshness, register freshness and match coverage in replays.
- Advisor suggestions versus officer decisions, with calibration.
- Software cost per trip, from gateway and compute metadata.
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