Skip to main content
Tian Pan

Tian Pan

Software Engineer

View all authors

·tian

Your System Prompt Will Leak: Designing for Prompt Extraction

Prompt extraction is the quiet attack on LLM products. Treat the system prompt as public, move secrets out of context, and build an eval for it.

insider
llm-security
prompt-engineering
owasp
+1
·tian

Prompt-Version Skew Across Regions: The Unintended A/B Test Your CDN Ran for Six Hours

Pushing prompts through CDN-style rollout systems creates silent geography-split A/B tests when one region drifts ahead of another. Here is the rollout discipline, observability dimension, and rollback model that keep prompt versions globally coherent.

llm
mlops
deployment
observability
+1
·tian

When Your CLI Speaks English: Least Authority for Promptable Infrastructure

The principle of least authority breaks when your CLI accepts English. Every wrapper that translates intent into commands becomes a confused deputy. Patterns that hold up: intent-bound tokens that pin the resolved plan, binding dry-runs, and audit trails that link prompt to action graph.

insider
security
ai-agents
authorization
+2
·tian

The Indexing Policy Committee Nobody Convened: RAG Corpus Governance Beyond the One-Time Migration

Most RAG failures aren't model failures—they're governance failures. The four axes of corpus governance—legal, freshness, authorship-trust, ownership—and the indexing-policy discipline that determines whether your retrieval index is a product surface or a shared inbox.

rag
llm
ai-governance
data-engineering
+1
·tian

The RAG Read-After-Write Race: When Your Vector Index Cites a Document That No Longer Exists

Production RAG pipelines silently assume snapshot isolation between retrieval and generation. They never enforce it — and the bug shows up as deleted-chunk citations, edited-chunk inversions, and stale-permission leaks.

rag
vector-database
ai-engineering
consistency
+1
·tian

Reachability Analysis for Agent Action Spaces: Eval Coverage for the Branches You Never Tested

Your tool catalog plus a planner forms a reachable graph of plans your evals have probably never exercised. Borrow reachability analysis from compilers to find the branches your incident channel will discover first.

insider
ai-engineering
agents
evaluation
+2
·tian

Reasoning-Effort Budgeting: When Thinking Tokens Become a Finance Line Item

Reasoning tokens look like output tokens on the bill but balloon 3–10x and have no natural ceiling. Treat thinking effort as a tunable resource — measured in yield, governed by budgets, routed by difficulty, and surfaced as its own dashboard line item before finance asks about it first.

llm
finops
reasoning-models
cost-optimization
+1
·tian

Replan, Don't Retry: Why Most Agent Errors Aren't Transient

Most agent frameworks default to exponential-backoff retry on tool errors — a pattern borrowed from stateless HTTP that's actively wrong inside a stateful planning loop. The right default is replan.

agents
llm
error-handling
reliability
+1
·tian

Reviewing Agent PRs Is a Different Job, Not a Faster One

Agent-authored PRs concentrate bugs in different places than human PRs, and the reviewer instincts trained on years of human code quietly fail on them. A walkthrough of the new bug profile, why fluent diffs are dangerous, and the three artifacts every reviewer now has to read together.

code-review
ai-agents
engineering-process
software-quality
+1
·tian

The RLAIF Doom Loop: When Your Cheapest Feedback Signal Quietly Poisons Your Fine-Tune

AI-generated preference labels are 100x cheaper than human ones — and they teach your model to prefer the judge's aesthetic, not your users'.

rlaif
rlhf
fine-tuning
llm-as-judge
+1
·tian

The Router Is the Product: Why Your Cheap Classifier Decides More Behavior Than Your Flagship Model

Cost-aware LLM routing makes the cheap model the actual product surface for most users. If your eval discipline still points at the flagship, you are flying blind on 70% of traffic — here is the router-as-product framing that fixes it.

llm-routing
ai-engineering
evals
observability
+1
·tian

Sampling Parameter Inheritance: When Temperature 0.7 Leaks From the Planner Into the Verifier

Agent harnesses that propagate temperature down the call tree turn the planner's creativity knob into the verifier's bug. Per-role sampling profiles, default-deny inheritance, and the disagreement-rate eval that catches the leak.

insider
agents
llm
evals
+1
Showing 1117–1128 of 2314 posts
Prev94 / 193Next