Salomon - AI Engineer, audit agents and evaluation
Client engagementAI Engineer engagement at Salomon (Amer Sports). Agents that audit product content (legal compliance, safety), and above all the method that proves they work: goals set before the numbers, sealed test sets, blind human labels.
Results
Stack
- Sonnet 5.5
- The auditors' model. Recall goal met on the safety tuning set.
- Opus 5.5, Haiku, gpt-oss-safeguard
- Compared on the same prompt and test set. Opus adds nothing over Sonnet.
- LangGraph
- Orchestration of the legal-compliance agent.
- MCP
- The agent exposed as a tool any assistant can call.
- Langfuse
- A trace of every call, imported into the evaluation console.
- OpenTelemetry
- Call instrumentation.
- TypeScript
- The audit engines, the evaluation console and the regression judge.
- GitLab CI
- The company's continuous integration, behind its proxy.
Context
Salomon publishes a large volume of product copy. Every text must follow legal rules, notably on environmental claims (the EU EmpCo directive, the French AGEC law), and content safety rules of the same kind as the categories in Azure AI Content Safety, AWS Bedrock Guardrails or LiteLLM: abusive or illegal content, dangerous use.
Human reviewers already exist. My role: build the agents that assist them, and the method that proves they work. A reliable audit brick on product content can then be plugged into the input or output of any agent, as a guardrail.
The engagement in numbers
- 5 workstreams: content safety, legal compliance, a reference review with the business, a reusable audit engine, an evaluation console.
- 0 dangerous texts missed out of 172, over 3 runs, on the safety auditor’s tuning set. The sealed set, kept for the independent measurement, was still to be scored.
- 96.2% recall (± 1.3, over 5 runs, non-blind labels) for the first legal-compliance agent, about $0.30 to audit 40 products.
- About 0.5% of real texts flagged on a sample of 1,412, then 0 out of 200 on the main rule in the last run, with the pre-filter: a volume a review team can absorb.
- An engine refactored with zero regression: identical outputs before and after, checked by a judge that calls no model.
- 166 Claude Code sessions driven over the engagement, with a dated decision log.
What I delivered
- The architecture position. A pipeline rather than a free agent, a deterministic layer before the model, evaluations independent of the framework.
- A template to build a business POC in a day. The business owns the rules: switching domain means replacing one folder, not rewriting the tool.
- The first legal-compliance agent. A hybrid agent, explicit rules plus model judgement, 39 rules able to flag, exposed over HTTP, LangGraph and MCP. Then the rule review with the legal team and the business.
- The safety auditor, end to end. One rule, one prompt, one call, one dataset, one experiment. Sixteen design decisions, dated and justified in writing.
- A reference review of 40 products with the business copy reviewer, to set the ground truth.
- The reusable engine. Rules, domain, catalogue and sources become data files, with a regression judge.
- The evaluation console. Goals, runs, confidence intervals, every number clickable down to the texts behind it, Langfuse trace import, user guide.
- Documentation and handover. One-pagers, architecture, criteria, evaluation protocol, getting-started guide, decision log.
The method
- Goals before numbers. What we accept to miss is set with the business before the first measurement, not adjusted afterwards.
- Versioned, sealed test sets. One set is for tuning, another is set aside and never read during tuning. Labels are set blind by a human, never aligned on what the model says.
- Measure the variance. Several runs on the same set, and Wilson intervals rather than a bare percentage.
- Distrust the LLM judge. A second model asked to re-read the flags pushed dangerous texts back to “non-blocking”. Measured, then dropped.
- The business reads the result. Every number links to the real texts that produce it.
What it taught me
- Designing an evaluation that holds up to “what if the agent is wrong?”.
- Turning a European directive into executable rules, with lawyers.
- Comparing platform guardrails with model judgement.
- Reading a Langfuse trace and instrumenting with OpenTelemetry.
- Working in English, in a large company, on GitLab CI and behind a corporate proxy.
What I would do differently
- Ship a first version early. Put it in the reviewers’ hands in the first weeks, then improve it in real conditions rather than in the lab.
- Two annotators, then their agreement. Measure inter-annotator agreement before measuring the agent: one labeller is one opinion.
- The sealed set before the number. Only present a result once it is measured on cases never seen during tuning.
- Write down the production target. A date and an owner, set with management from the start.
The code and prompts belong to the client. This page describes the method, not their content.