Description
The flow delta-ratio and Unbound recursion histogram declarations are classified as Gauge in generated documentation. Owner approved source-based type inference correction.
Acceptance Criteria
- #1 Both histogram families are classified as Histogram from their actual emission calls, without name-based exceptions.
- #2 Regression proof fails before the fix and the real documentation generator produces correct catalogue types and consistent totals.
Definition of Done
- #1 just check
- #2 just gen (if any generated artifact changed) and the diff committed
Implementation Plan
Reproduce emitted const histograms being inferred as Gauge; fix emission-based inference and type totals; exercise focused tests and root-run docgen.
Implementation Notes
Observed regression assertions fail for both real families and both constructor forms before implementation. go test ./scripts/docgen -count=1 -timeout=120s passed. Actual generator now reports 1048 metrics: 695 gauges, 350 counters, 3 histograms, and both affected families are Histogram.
Final Summary
Added emission-based const histogram inference and separate histogram totals. Regression first failed for real families and both constructors, then package tests and actual generator passed. Integrated just check passed; CodeRabbit completed with zero issues.