Skip to content
All projects
In progressClient details withheld

ALM TrustGuard

A trust layer for test cases in Codebeamer ALM. It scores each test case against its requirement with free metrics first, then uses Claude to judge the semantics against ASPICE.

Role
AI Engineer — took it from prototype to product (49 of 83 commits)
Year
2026
Company
NEAX AI
ASPICE PAM v4.0 chunks
339
DeepEval metrics in Pro tier
5
Cost per Pro scoring call
~$0.10
Reversed-logic defects caught (12 planted cases)
5/6
False alarms on clean cases
0/6

Context

In regulated industries such as automotive (ISO 26262, ASPICE) and medical devices (IEC 62304), every test case has to match its requirement. When engineers or AI write test cases in bulk in Codebeamer ALM, nobody has time to re-read each one.

ALM TrustGuard is independent middleware: it never generates test cases, it only scores whether a test case can be trusted.

Problem

  • A test case can contradict its requirement (for example, a reversed condition), drift off topic, or miss verification items ASPICE requires.
  • Calling an LLM for every test case is expensive; statistical metrics alone don’t understand meaning.
  • Similarity search is unreliable for picking the relevant ASPICE text: on 15 engineer-written cases it chose the wrong process area 13 times.

Solution & architecture

Two scoring tiers; the second can only lower the first one’s verdict, never raise it:

  1. Pull requirement + test case from Codebeamer
  2. Basic: 5 deterministic checks, no API call
  3. UNSAFE in Basic → stop, zero cost
  4. Pro: select ASPICE chunks by process area
  5. Claude judges 5 DeepEval metrics
  6. Trust Score 0–100 + TRUSTED / REVIEW / UNSAFE
  • Basic (no API cost): 5 deterministic checks. A case rated UNSAFE here stops immediately.
  • Pro: Claude (Anthropic API, structured outputs) is the judge for 5 weighted DeepEval metrics: Faithfulness 30%, Answer Relevancy 25%, Contextual Relevancy 20%, Contextual Recall 15%, Contextual Precision 10%. Extra “Pro gates” may only lower the verdict. One Pro scoring call costs about $0.10, which is why Basic runs first and stops clearly broken cases for free.
  • ASPICE context: I split ASPICE PAM v4.0 (PDF) into 339 chunks — 32 purpose/outcome, 194 base practices, 113 Annex B items. Chunks are selected by process area; FAISS (with qwen3-embedding served by Ollama) is only the fallback when the process area is unknown.
  • Trust Score: 0–100, TRUSTED ≥ 80, REVIEW 50–79, UNSAFE < 50.
  • System: FastAPI backend, PostgreSQL storage, React dashboard (overview, test cases, demo, model server), Codebeamer export/import module. Packaged with Docker, deployed with Dokploy.
Try it: Trust Score → verdict
72REVIEW

UNSAFE < 50 · REVIEW 50–79 · TRUSTED ≥ 80. The Pro tier may only lower a verdict, never raise it.

Moving off AWS: Bedrock → self-hosted → Anthropic API

The first prototype judged with Claude on Amazon Bedrock and embedded text with Amazon Titan. The product had to run without AWS, so I:

  1. Replaced Bedrock with self-hosted models behind any OpenAI-compatible server (Ollama or vLLM), and Titan with a local embedding model. The ASPICE FAISS index rebuilds itself when the embedding model changes. The same change closed security gaps (no default admin password, sign-in throttling).
  2. Benchmarked open judges on GPUs (Kaggle T4, Vast.ai). Qwen2.5-14B and Gemma3-12B needed about 90 minutes for 30 cases and could not tell clean test cases from faulty ones.
  3. Moved the judge to the Anthropic API based on that evidence. Embeddings still run locally (qwen3-embedding:0.6b).

Two design rules came out of this: a case is UNSAFE only when it is wrong, never just incomplete, because a false UNSAFE gets a good test case thrown away; and a contradiction counts only after a second judge call quotes the contradicted sentence word for word.

My role

I took the project from a prototype to a NEAX product and wrote 49 of its 83 commits: the two-tier scoring design (the free Basic tier was my idea), the ASPICE chunking and selection pipeline, the move off AWS, the GPU benchmark, the Claude judge integration, the backend and the dashboard.

Results

  • On 12 deliberately defective test cases: caught 5 of 6 reversed-logic cases with zero false alarms on the 6 clean ones.
  • On 100 AI-generated cases, Basic caught all 29 planted flaws; the 14 clean cases it flagged all went to REVIEW, none to UNSAFE.
  • Tested on real data: 15 engineer-written test cases and 132 requirements. Basic rates TRUSTED all 6 cases Codebeamer marks ACCEPTED.
  • About 170 automated tests.
  • In development, no production users yet. A Codebeamer proxy and writing a “Trust Badge” back into Codebeamer are planned.

Tech stack

Python, DeepEval, Anthropic API (Claude), Ollama, vLLM, FAISS, FastAPI, PostgreSQL, React + Vite + Recharts, Docker, Dokploy.

All projects
ESC