Invisible means nonexistent
A table an agent may not see gets the same answer as a table that does not exist, so a refusal never confirms what is there.
Applied AI engineer · Staff Data Scientist
I’m Tong Liu. I take AI from prototype to production: agents that act on real decisions, the evaluation that proves they work, and the governed data they depend on. My recent work is in freight logistics, and the same problems show up anywhere AI acts on real money and real time.
Agents and the predictors and tools they call, taken live behind readiness gates, so automation expands only where the evidence holds.
Appointment prediction →Replay harnesses, LLM-as-judge grading, label-free checks, and randomized audits. My framework for scheduling agents became the company’s standard for judging AI.
Document AI →Semantic layers and governed MCP access, so every agent gives the same answer with only the access it should have. There is an open-source version you can run.
Governed data access →Selected work
Each project started with a question that mattered more than the model. The setting is freight, but the questions are not: when to trust an agent, how to measure quality before you have labels, and what makes people act on a plan. Each case shows the before and after, the tradeoffs, and what transfers.
A predictor for delivery appointments that AI scheduling agents rely on, improved by a coding agent that runs its own experiments against a fixed replay harness.
The questionHow do you know a model change is actually better, and when is it ready to act on its own?
AI agents · Data platformsFrom a hackathon text-to-SQL prototype to an MCP server that gives every agent the same business definitions through a semantic layer, with least-privilege access.
The questionHow do many AI agents give one consistent answer, with only the access they should have?
Document AIAI validation for the delivery paperwork that invoicing waits on, with evaluation that starts label-free and continues through randomized audits.
The questionHow do you measure document AI quality before you have labels, and keep measuring after launch?
OptimizationA route optimization engine that turns a customer’s order backlog into shipment plans their planners can run, iterated with the customer until it was adopted.
The questionWhat makes an optimizer’s plan something people actually execute?
Data · Decision supportA pipeline that reconciles carrier telemetry and freight-market signals, then turns them into ranked recommendations for the operations team.
The questionWhat has to be true about the data before a carrier ranking means anything?
Data platforms · LeadershipAn AI-native BI platform built in house, an agentic workflow that keeps dbt models in sync with the application, and the engineering standards around both.
The questionHow does a small data team ship fast without losing trust in the numbers?
Open source · Built in the open
The production version of my governed data access work stays private, so I rebuilt the idea from scratch in public. governed-warehouse-mcp is an MCP server that lets AI agents answer questions from an analytical warehouse without writing to it, reading tables their token does not allow, or seeing personal data they are not cleared for.
It ships with an evaluation harness for tool-calling agents. The harness checks whether an agent gets the right answer, stays inside its permissions, and ignores instructions planted in the data. It runs the real model client and server end to end, and it runs offline, so every change is tested without a model key. For qualities no exact check can grade, an LLM judge with a versioned rubric is calibrated against the deterministic graders before its verdicts count, and live runs are traced to Langfuse so every failure can be inspected step by step.
The warehouse is a synthetic cross-border freight dataset. No code, schema, or data from the production system is used.
A table an agent may not see gets the same answer as a table that does not exist, so a refusal never confirms what is there.
Agent SQL is parsed, checked against the caller’s access, and regenerated before it runs. A read-only, sandboxed database is the second, independent layer, so a bug in one check is not a breach.
Every denial starts with a stable code, so an agent can tell “try another metric” from “you are not allowed”, and an evaluation can grade it without parsing prose.
Each grader has to catch a deliberately planted failure, and only that failure, before it is allowed to grade a model.
Featured · AI that runs its own experiments
Appointment prediction had many candidate improvements worth testing. Instead of hand-tuning them one at a time, I designed an autonomous research loop: a coding agent edits the prediction logic, replays it against frozen historical cases, scores it against the baseline, and keeps the change only if it is better.
Because every candidate faces the same replay set and the same acceptance rule, the loop can run unattended without drifting toward changes that only look good on a lucky sample.
The first run produced most of the predictor’s improvement. Just as important, every kept change came with its evidence attached.
Read the case study →How I work
Every project starts as a business ask. Turning it into the right technical question, then choosing between several reasonable paths, is most of the job. Pick a project to see how that went.
Hand-tune the rules · Replace it with a new model
Build the harness, then let an agent iterate. Many experiments, each one evidenced and reviewable, and the logic stays legible.
Let each agent write raw SQL · Train a text-to-SQL model on our schema
Semantic layer, catalog, and an MCP server. One set of definitions, least-privilege access, and it works with any model or agent.
Keep full manual review · Automate everything
Automate by confidence, audit continuously. Captures most of the volume safely and keeps quality measured.
Planner rules of thumb · Chase the exact optimum every run
Constraint-faithful, fast, ranked options. Planners compare candidate plans and recognize their own rules in them.
Rank directly on raw feeds · Rely on operator memory
Reconcile first, rank second, operator decides. Rankings are trustworthy and explainable, and the call stays with operations.
Stay on the current SaaS tool · Switch to another SaaS tool
Build in house on tested dbt models. Lower cost, AI-native, and fits the existing stack.
How I think
Positions I’ve arrived at by shipping models, agents, and data platforms into real operations. They shape every project above.
A model without an honest, repeatable evaluation is a demo. I build the measuring stick first, because it outlives every version of the model.
Before choosing a method, I want to know who makes the call, under what constraints, and what a wrong answer costs. That framing usually decides the solution.
Many agent failures trace back to data: the wrong table, an ambiguous metric, access that is too broad. A semantic layer and governed access fix more than a bigger model does.
A coding agent can test far more ideas than I can, as long as the evaluation it answers to stays fixed and every change remains reviewable.
My Ph.D. was on human-in-the-loop learning, and it still shapes my work. Confidence thresholds, audits, and reviewable pull requests decide where human judgment adds the most.
I do what I said I would, when I said I would, and I leave behind tests, shared CI, and clear standards so a small team ships without a gatekeeper. The best systems I’ve built are the ones colleagues extend without me.
The path so far
The settings changed, from research labs to crowd platforms to freight. The question stayed the same: how do machine predictions and human judgment make each other better?
At Rochester Institute of Technology, my research asked how to learn when people disagree: modeling label distributions from crowds and reading signals in social media. Internships at Bosch, Tencent, and Figure Eight were my first applied NLP and ML work in industry.
At Appen, a training-data platform with millions of contributors, I built the systems that decided who should work on what, and which work could be trusted, through ranking, matching, fraud detection, and quality control.
At Nuvocargo, a cross-border freight platform serving the U.S., Mexico, and Canada, I build AI end to end, now as Staff Data Scientist: AI agents and the tools they call, the services and evaluation behind them, and the data platform underneath.
What’s next
This is where I’m headed. If any of these overlap with what you’re building, let’s talk.
Good reasons to reach out
Research roots
Things I build for fun
CLI for migrating X lists and follows, with resumable job state, atomic progress writes, and rate-limit recovery.
iPhone app, now in TestFlight beta, that turns a photo or screenshot of a flyer, invitation, or schedule into calendar events: on-device OCR, LLM extraction through an attested proxy, and review before anything is saved. It also works from Shortcuts.
Diagnosed and fixed a hook that blocked authenticated page fetches in a widely used context plugin for coding agents. The maintainer adopted the fix in v2.0.