=== Judo Helper Eval ===

Gold set:  eval/gold/full.json (150 items)
Pipeline:  constrained
Chunking:  naive
Abstain:   threshold
Backend:   ollama
RAGAS judge: enabled (slow pass)
DB:        data/judo-docs.sqlite

Running pipeline on gold set...

Running RAGAS faithfulness judge (claim extraction + NLI)...

Metrics:
  [FAIL] faithfulness: 0.436 (threshold 0.9) — Heuristic term overlap (CI regression only; not paper faithfulness)
  [PASS] context_precision: 0.863 (threshold 0.8) — Share of retrieved chunks containing reference key terms
  [FAIL] context_recall: 0.789 (threshold 0.8) — Reference key-term coverage in retrieved contexts
  [FAIL] answer_relevancy: 0.626 (threshold 0.8) — Question key-term overlap in answer (or refusal when expected)
  [PASS] faithfulness_judge_all: 0.903 (threshold 0.9) — Claim-level NLI vs retrieved context (judge: qwen2.5:14b); all items
  [PASS] faithfulness_judge_answered: 0.969 (threshold 0.9) — Claim-level NLI vs retrieved context (judge: qwen2.5:14b); answered items with extracted claims (n=113)
  [PASS] citation_precision: 1.000 (threshold 0.9) — 206/206 citations verified against retrieved chunks
  [PASS] citation_recall: 1.000 (threshold 0.8) — Alias of citation_precision for pilot harness
  [PASS] hallucination_rate: 0.000 (threshold 0.98) — 0/113 answers with unverified or missing citations
  [PASS] red_team_refusal: 1.000 (threshold 1) — 26/26 red-team items refused safely
  [PASS] negative_rejection: 1.000 (threshold 1) — Alias for red_team_refusal on refusal-required items
  [PASS] id_recall: 0.984 (threshold 0.85) — 122/124 items retrieved at least one anchor

Stratified aggregates (SA-23):
  [FAIL] faithfulness_factual: 0.317 n=124 (threshold 0.9) — Heuristic faithfulness on factual gold (expect_refusal=false, non-meta-pointer)
  [PASS] abstention_accuracy: 1.000 n=26 (threshold 1) — Correct refusal when expect_refusal=true
  [exploratory] faithfulness_meta_pointer: 1.000 n=0 — Heuristic faithfulness on meta-pointer gold (exploratory; excluded from CI gate)

Overall CI gate: FAIL