1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//! Library entrypoint.
//!
//! ## Layering
//!
//! ```text
//! Case + log -> Vec<Evidence> -> Diagnosis -+-> Report (human)
//! |-> Prompt (LLM)
//! +-> Prompt JSON (LLM)
//! ```
//!
//! 1. [`cases`] loads a [`Case`] (a sanitized HTTP transaction) from a
//! fixture file.
//! 2. [`evidence::collect_evidence`] normalizes the case and its matching
//! log file into a `Vec<Evidence>`. The log parser ([`evidence::parse_log`])
//! is also exposed so the `diagnose-log` subcommand can run against a
//! bare log without a JSON fixture.
//! 3. [`diagnose::diagnose`] is a **pure** function over `(name, &[Evidence])`
//! that produces a [`Diagnosis`]. There is no clock, no env, no fs, no
//! randomness inside the rules — every snapshot test is reproducible
//! on any machine.
//! 4. The renderers ([`render_report`], [`render_short`], [`render_prompt`],
//! [`render_prompt_json`]) each consume a `&Diagnosis` and produce
//! user-visible output. None of them can reach back into the raw
//! `Case`. This is the architectural guarantee that the LLM-facing
//! surface cannot influence diagnostic truth.
//!
//! ## Re-exports
//!
//! Every public item a downstream caller needs is re-exported from the
//! crate root, so `use llm_assisted_api_debugging_lab::diagnose;` works without naming the
//! module. The modules themselves remain `pub` for callers who want to
//! reach internal helpers (e.g. [`report::render_evidence`] used by the
//! tests).
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;