Work / 04 · Trust boundary
Embedded analytics for a healthcare network
Dashboards with AI summaries, shown inside another company's app, for people who work with patient data. The interesting work is all in what is not allowed to cross the boundary.
What I refused to trust
The message channel
The host page and the embedded dashboard talk over a browser channel. It carries no tokens and no data.
A link written by a model
The model never writes a URL. Links are built by code from known parts.
"Frozen" as a label
A frozen dashboard cannot be changed by any write path. Not just the edit button: every way in.
Frozen means frozen
try it · an illustrationChange the dashboard a few times. Then freeze it and try every way in.
Dashboard · version 1 Frozen
Summary: refills rose in week 4.
Version 1. Not frozen.
Summaries that don't trip over each other
AI summaries are written by background jobs. Two jobs can start for the same dashboard at the same moment.
The risk
Two writers, one row. The slower one overwrites the newer result, or a frozen dashboard gets a fresh summary.
The rule
Jobs are safe to run at the same time, and none of them can write to a frozen dashboard.
The proof
Tests that race real connections against a real PostgreSQL database, not a fake one.
Evidence
41
Concurrency tests for the freeze, run against real PostgreSQL.
6
Customer projects the summary jobs are deployed for.
0
Tokens or data rows carried by the embed message channel.
?
How good the summaries are. No quality score to show yet.
What this page can't claim
- The analytics SQL agent and its eval harness were built by teammates, and so was the chat streaming core. My SQL-agent work is the separate research project.
- The toy above is an illustration. The real write paths have different names.
- No usage numbers, customer names or screenshots of real data appear here.
ProposedA labelled set to score summary quality