Evaluation & security

LLM Evaluation, Observability and Security Engineering

We build the eval sets, regression gates, tracing and threat model that let your team ship LLM changes with evidence and catch quality, cost and security problems early.

The problem

You cannot ship what you cannot measure

Without evals, every prompt edit, model upgrade or provider switch is a gamble, and teams either freeze or ship regressions. Without tracing, production failures cannot be reproduced. And LLM features introduce a security surface that traditional reviews miss: untrusted content that can steer the model, sensitive data in prompts and logs, and tools that turn model output into actions.

Signals you’ll recognize

  • Model or prompt changes are validated by trying a few examples by hand.
  • There is no record of which prompt, model and context produced a given production answer.
  • A provider model update changed behavior and nobody noticed until users reported it.
  • User input, retrieved documents or tool output flow into prompts without a threat model.
  • Prompts and logs may contain personal or sensitive data with no clear retention policy.
  • Security review of the AI feature has not covered prompt injection or data exfiltration paths.

Evaluation is the foundation the rest of LLM engineering depends on. Cost optimization, model upgrades, retrieval changes and fine-tuning are all decisions about tradeoffs, and without a trusted eval set those tradeoffs are invisible until users find them.

We build evaluation as engineering infrastructure: versioned datasets, calibrated graders, CI gates and production tracing. Offline evals catch regressions before release; online sampling and tracing catch drift, new input patterns and provider-side changes after release.

Security for LLM features starts from a simple assumption: any content the model reads might be adversarial. We map where untrusted input enters, what the model can do with tools, and where sensitive data flows through prompts, logs and third-party APIs, then recommend controls that limit the impact when something goes wrong. We do not provide compliance certifications; we provide the technical evidence your security and compliance teams need for their own reviews.

What’s included

Eval strategy and golden datasets

We define what good looks like per task and build versioned golden datasets from real, anonymized traffic, including edge cases and known failures.

Graders and calibration

We combine deterministic checks, rubric-based model grading and human review, and calibrate model graders against human labels before relying on them.

Regression gates in CI

We wire evals into your delivery pipeline with thresholds that block releases when quality, latency or cost regress.

Online evaluation and observability

We design tracing for prompts, model versions, retrieved context, tool calls, token usage and latency, plus sampling for online quality review.

Prompt injection threat model

We map trust boundaries, untrusted input paths and tool capabilities, and recommend layered mitigations: privilege limits, output validation, approvals and isolation.

PII and data handling review

We trace where sensitive data enters prompts, logs, caches and vendor APIs, and recommend redaction, minimization and retention controls for your team to adopt.

Scoped red-teaming

We run targeted adversarial tests against agreed scenarios, such as injection, data leakage and policy bypass, and document findings and fixes.

What’s not included

  • Compliance certifications, audits or attestations of any kind; we do not certify systems against SOC 2, HIPAA, ISO or similar frameworks.
  • Legal advice on privacy or AI regulation.
  • Open-ended penetration testing of infrastructure unrelated to the AI feature.

How the engagement runs

Read our approach
  1. Step 1

    Assess current state

    Review existing tests, logs, tracing, data flows and security controls around the LLM feature.

  2. Step 2

    Define criteria and threat model

    Agree on quality criteria per task and map trust boundaries, sensitive data and tool capabilities.

  3. Step 3

    Build evals and tracing

    Create golden datasets, graders and the tracing schema, and establish a baseline.

  4. Step 4

    Test adversarially

    Run scoped red-team scenarios and data leakage checks, and record findings with severity.

  5. Step 5

    Operationalize

    Add CI regression gates, production sampling, dashboards and alerting, and hand off runbooks.

What we measure

Scoped engagement: deliverables, timeline and price are agreed in writing before work starts.

Eval pass rate by category
Share of golden dataset cases passing per task category, tracked per model, prompt and release.
Grader agreement with humans
Agreement between model-graded and human-labeled results on a calibration subset, rechecked when graders change.
Regression catch rate
Share of quality regressions detected by gates before release versus reported from production.
Injection scenario resistance
Share of adversarial scenarios in which the system did not take the attacker's intended action or leak protected data.
Trace coverage
Share of production requests with complete traces: prompt version, model, context sources, tool calls, tokens and latency.
Sensitive data exposure findings
Count of locations where sensitive data appears in prompts, logs or caches outside agreed policy, tracked to resolution.

Examples

Hypothetical example

Model upgrade gated by evals

A team wants to move to a newer model version. The golden dataset is run on both versions with the same graders. Overall pass rate is similar, but one category of structured-output tasks regresses. The gate blocks the release for that endpoint until the prompt is adjusted, while other endpoints migrate.

Hypothetical example

Indirect prompt injection through retrieved documents

An assistant can read shared documents and send emails. The threat model identifies that a document could contain instructions to forward data. Mitigations include removing the email tool from read-heavy flows, requiring approval for outbound messages and adding injection scenarios to the eval suite.

What you receive

Eval suite

Versioned golden datasets, graders and scripts runnable locally and in CI.

Regression gate configuration

Thresholds for quality, latency and cost, integrated with your pipeline.

Observability schema and dashboards

Tracing fields, sampling strategy and dashboard specifications for quality, cost and latency.

Threat model

Trust boundaries, attack paths, mitigations and residual risks for the LLM feature.

Red-team findings report

Scenarios tested, results, severity and recommended fixes.

Data handling recommendations

Where sensitive data flows and the redaction, minimization and retention controls we recommend.

When this isn’t the right fit

We’d rather tell you before we start.

  • Organizations seeking a compliance certification or audit opinion.
  • Projects with no LLM feature in or near production, where there is nothing representative to evaluate yet.
  • Teams wanting a one-time security sign-off rather than ongoing evaluation practices.

Common questions

Can model-graded evaluation be trusted?

Only after calibration. We measure agreement between the model grader and human labels on a sample, tighten rubrics where they disagree, and keep deterministic checks wherever the output allows them.

Can prompt injection be fully prevented?

Not with current techniques. The practical approach is to limit what a compromised model can do: least-privilege tools, approval for sensitive actions, output validation and isolation of untrusted content, plus testing that assumes injection will sometimes succeed.

Do you make our AI feature compliant with SOC 2 or HIPAA?

No. We do not provide certifications or compliance opinions. We document data flows and controls, which your compliance and legal teams can use in their own assessments.

What observability tools do you use?

We work with your existing stack where possible and define the tracing schema independently of any vendor, so the data stays portable.

How often should evals run?

On every change to prompts, models, retrieval or tools, as a CI gate, and on a schedule against production samples to catch drift and provider-side model updates.

Talk to an AI Engineer

We review how you test and monitor your LLM features today and outline a scoped evaluation and security engagement.