
Tian Pan
Software Engineer
Why Your Thumbs-Down Data Is Lying to You: Selection Bias in Production AI Feedback Loops
Only 1–3% of users click rating buttons — and they are systematically different from everyone else. How selection bias distorts RLHF training data, amplifies preference collapse, and hides 80% of your quality problems, plus the five implicit behavioral signals that capture ground truth from every user.
The Token Economics of Chain-of-Thought: When Thinking Out Loud Costs More Than It's Worth
Chain-of-thought prompting inflates token costs 2–5x and adds seconds of latency — yet delivers no measurable accuracy gain for most production tasks. A decision framework for when CoT pays off, when it hurts, and cheaper alternatives like Chain-of-Draft that close the gap at a fraction of the cost.
The Tool Result Validation Gap: Why AI Agents Blindly Trust Every API Response
AI agent frameworks validate tool inputs but never check what comes back. Here are the three categories of tool result failures and a tiered validation architecture that catches schema violations, stale data, and semantically wrong results before they reach users.
The Unit Economics of AI Agents: When Does Autonomous Work Actually Save Money
Your API bill is 10–20% of the true cost of running AI agents in production. A breakdown of the hidden cost stack, the full cost-per-task formula, volume thresholds for positive ROI, and the metrics that actually predict whether autonomous work saves money.
When the Generalist Beats the Specialists: The Case for Unified Single-Agent Architectures
For most production AI tasks, a single capable agent with rich tool access outperforms multi-agent pipelines — and the research explains why coordination overhead, error amplification, and capability saturation make specialization a liability at scale.
Agent Authorization in Production: Why Your AI Agent Shouldn't Be a Service Account
Giving AI agents service account credentials is the fastest path to discovering which of your systems they can reach when something goes wrong — how ambient authority, over-permissioning, and impersonation tokens create production incidents, and the four patterns that properly scope agent authority.
The Agent Planning Module: A Hidden Architectural Seam
Separating task decomposition from execution in LLM agents is the architectural decision most teams skip — until their agents start failing on anything beyond five steps.
Agent-to-Agent Communication Protocols: The Interface Contracts That Make Multi-Agent Systems Debuggable
How poorly designed inter-agent message contracts cause silent failures in production multi-agent systems — and the schema patterns, error signals, and versioning strategies that prevent them.
Agentic Coding in Production: What SWE-bench Scores Don't Tell You
SWE-bench Verified hit 80%—yet the same models score 23% on harder benchmarks, and a controlled study found AI tools made experienced developers 19% slower. Here's where agentic coding agents actually deliver value and where they silently fail.
CI/CD for LLM Applications: Why Deploying a Prompt Is Nothing Like Deploying Code
Deploying a new prompt version silently breaks production in ways no dashboard catches. Here's how to build a proper CI/CD pipeline for LLM applications — from prompt versioning and shadow testing to canary rollouts and behavioral drift detection.
The Context Stuffing Antipattern: Why More Context Makes LLMs Worse
Dumping full documents, raw tool outputs, and long chat histories into the LLM context window is a reliability trap. Here's how to detect when context is hurting your system — and the budget-aware curation patterns that fix it.
Continuous Batching: The Single Biggest GPU Utilization Unlock for LLM Serving
How iteration-level scheduling replaces static batching to deliver 4–8x GPU throughput gains in production LLM serving—and the failure modes that appear at high concurrency.