Return the latest hour having a complete set of intra-hour samples.
Implements the frontier-completeness guard from the operational assert_coverage (script lines ~485-497): only an hour with all of its quarter-hour samples published may safely anchor a live recursion. A partial frontier hour averages to an anomalous level and drags the first forecast day (observed on the 2026-06-05 forecast).
The expected sample count per hour is derived from the feed’s own cadence (modal index difference) when samples_per_hour is None. For a 15-min feed this evaluates to 4; for an hourly feed it evaluates to 1.
The returned timestamp is the floor of the last complete hour (e.g. 2026-06-11 10:00 UTC for a 15-min feed whose last complete hour ended at 2026-06-11 10:45).
Override for the expected sample count per hour. Pass None (default) to infer from the modal index difference. Must be a positive integer when provided.