//! Evidence-based authority for pattern learning.
//!
//! Authority comes from evidence, not titles. Patterns backed by RFC research,
//! product specs, or ADRs carry more weight and graduate faster than patterns
//! that are just code commits with no context.
//!
//! # Evidence Levels
//!
//! | Level       | Example                               | Weight | Graduation |
//! |-------------|---------------------------------------|--------|------------|
//! | ProductSpec | specs/api-design.md → REQ-API-001     | 0.95   | 1 usage    |
//! | Standard    | RFC 7519, OWASP A03:2021              | 0.85   | 3 usages   |
//! | Research    | ADR-042, docs/decision-log.md         | 0.70   | 5 usages   |
//! | Commit      | Just code, no context                 | 0.40   | 10 usages  |
//!
//! # Flow
//!
//! ```text
//! Pattern observed in commit message
//!         ↓
//! Detect evidence sources (RFC refs, ADR links, etc.)
//!         ↓
//! Compute evidence level (highest source wins)
//!         ↓
//! Apply evidence-aware graduation threshold
//! ```

mod detection;
mod types;

pub use detection::EvidenceDetector;
pub use types::{EvidenceLevel, EvidenceLevelParseError, EvidenceSource, PatternEvidence};
