S
Study LibraryPractice Lab

Tracing and Failure Isolation

atomic-noteD4 · 2.6%Section: D4 Evals, Testing & DebuggingUpdated 2026-11-15

Failures may arise in input retrieval, request construction, transport, tool dispatch, model reasoning, output parsing or downstream side effects.

Blueprint area: D4 - Eval, Testing, and Debugging MOC (official domain weight 2.6%).

Engineering principles

  • Emit correlated IDs for user request, model call, tool call and external operation; avoid logging raw secrets or unnecessary PII.
  • Record model version, prompt revision, selected tools, stop reason, token usage and latency to reproduce decisions.
  • Distinguish protocol/transport errors, schema mismatch, insufficient context, hallucination, authorization denial and non-idempotent side effects.
  • Use trace-based hypotheses and targeted repro fixtures before changing prompts or models.

Failure modes

  • A 200 HTTP response does not prove a streamed request completed.
  • A fabricated answer and a parser bug may look alike without trace evidence.

Check your understanding

  • ☐ Can the trace locate the first failing boundary?
  • ☐ Are sensitive fields redacted in logs and telemetry?

Streaming SSE and Recovery · Retries Timeouts and Idempotency · Exam Blueprint and Coverage

Evidence and verification

  • Provenance: author-written engineering synthesis aligned to exam guide objectives; this is not a transcript or hidden Skilljar lesson.
  • Primary references:
  • Check currency: model options, pricing, API flags, release-specific behavior and runtime permissions can change after the source was read. See Source Register.