# diesel diamond recursion scan — CLEAN

Scanned: 2026-03-29
Scope: diamond recursion / CWE-407 in schema/migration dependency traversal

## Files checked

- `diesel/src/` — Diesel is a query builder / schema-definition library.
  There is no runtime migration dependency graph or table ordering code in the
  main crate. Schema ordering is handled at compile time via Rust's type system.
- `diesel/src/query_dsl/`, `diesel/src/query_builder/` — query ordering DSL
  (`order`, `then_order_by`) is SQL ORDER BY clause construction, not graph topology.

## Verdict

CLEAN. Diesel has no runtime graph traversal for dependency ordering. Diesel already
has 3 previous defects (0001-0003) in SQLite/MySQL row column HashMap conversion.
