Skip to main content
Tian Pan

Tian Pan

Software Engineer

View all authors

·tian

The Rubber-Stamp Collapse: Why AI-Authored PRs Are Hollowing Out Code Review

When most diffs in a repo start life as model output, reviewers anchor on 'looks plausible' and miss the semantic bugs that don't render as syntactic smell. The countermeasures, the disclosure question leadership has to answer, and the incident curve that catches up six months later.

insider
ai-engineering
code-review
engineering-leadership
+1
·tian

Sampling Bias in Agent Traces: Why Your Debug Dataset Silently Excludes the Failures You Care About

Head-based and uniform-random sampling silently excise the rare catastrophic agent trajectories from your debug corpus. Tail sampling, anomaly-keyed retention, and per-failure-mode reservoirs build a debug dataset that actually contains the failures you need.

observability
agents
sampling
llm
+1
·tian

Semantic Cache Is a Safety Problem, Not a Perf Win

Semantic caches can serve another user's response in under a millisecond and your hit-rate dashboard will turn green doing it. The cache-key design, provenance envelope, and audit trail that prevent cross-user leak by construction.

insider
llm
security
caching
+2
·tian

Semantic Diff for Prompts: Why Git Diff Lies About What Your Prompt Change Will Do

Text-level diffs have almost no correlation with how an LLM's behavior changes. A three-word edit can flip 30% of outputs while a fifty-line restructure changes nothing. Here is how to build a semantic diff toolkit that PR reviewers can actually trust.

prompt-engineering
evals
ci-cd
llm-ops
+1
·tian

The Ship-and-Pin Trap: How Model Version Stability Becomes Deprecation Debt

Pinning a model version buys short-term stability and quietly accrues deprecation debt. Scheduled re-qualification, drift monitoring against the next tier, and a dual-track prompt portfolio turn migrations into routine operations instead of fire drills.

llm-ops
ai-engineering
model-migration
evals
+1
·tian

Spec-First Agents: Why the Contract Has to Land Before the Prompt

Prompt-as-spec collapses under more than one author. A spec-first contract — inputs, outputs, invariants, errors, refusals, escalations — turns prompt edits into diffs, makes evals derivable, and shrinks owner onboarding from months to a week.

insider
agents
prompt-engineering
evals
+1
·tian

The Synthetic Preference Trap: How AI-Ranked RLHF Quietly Drifts Your Model Into the Teacher's Voice

Synthetic preference data feels like a free lunch — until your product quietly starts sounding exactly like the teacher model you trained it from. A field guide to spotting, measuring, and bounding RLHF flavor drift.

rlhf
fine-tuning
llm-training
ai-engineering
+1
·tian

Token Spend Is a Security Signal Your SOC Isn't Watching

Anomalous LLM token spend is the earliest signal of a compromised API key, prompt injection, or data exfiltration — but billing owns the dashboard and security owns the response. Here is how to wire them together.

insider
security
llm-ops
finops
+2
·tian

Your Tool Descriptions Are Prompts, Not API Docs

Tool spec text is the prompt the model reads before deciding when to invoke. Treat it like a prompt — concrete use cases, negative examples, sibling disambiguation — not like OpenAPI docs.

ai-engineering
tool-use
function-calling
prompt-engineering
+1
·tian

Tool Hallucination Rate: The Probe Suite Your Agent Team Isn't Running

Most agent teams measure tool-call success but never measure tool hallucination. Split the rate into three — unknown-tool, shadow-call, hallucinated-argument — and build the probe suite that catches each before production does.

insider
ai-agents
llm
tool-calling
+2
·tian

Tool Manifest Lies: When Your Agent Trusts a Schema Your Backend No Longer Honors

The most dangerous bug in a production agent isn't the one that throws — it's the one where the tool description promises a field the backend renamed two sprints ago, and the model keeps reasoning as if nothing changed.

ai-agents
tool-use
function-calling
reliability
+1
·tian

Tool Outputs Are an Untrusted Channel Your Agent Treats as Trusted

Tool outputs share a token stream with the system prompt, so every read-tool is a prompt-injection surface. Here is the trust-boundary model, the four production patterns, and the eval harness that actually measures whether your defenses hold.

ai-security
llm-agents
prompt-injection
ai-infrastructure
Showing 1249–1260 of 2314 posts
Prev105 / 193Next