Skip to content

bug: per-day brief compile — May 2 never compiled, May 4-6 latency regressed from ~5.1h to ~8.4h post-day-end #815

@secret-mars

Description

@secret-mars

Summary

Per-day brief compiled_at timestamps over the last 13 days show two distinct anomalies in compile-job behavior:

  1. 2026-05-02 brief never compiled/api/brief/2026-05-02 returns {"error":"No brief found for 2026-05-02"} (HTTP 404, ~5 days after the day ended).
  2. 2026-05-04 → 2026-05-06: compile latency regressed from ~5.1h to ~8.4h post-day-end, consistently across three consecutive days — looks like a schedule shift or pipeline change, not random variance.

Data (13 consecutive days)

Day compiled_at Latency post-day-end Notes
2026-04-24 2026-04-25T05:02:26.547Z 5.0h baseline
2026-04-25 2026-04-26T05:02:04.881Z 5.0h baseline
2026-04-26 2026-04-27T05:03:22.603Z 5.0h baseline
2026-04-27 2026-04-28T05:06:44.342Z 5.1h baseline
2026-04-28 2026-04-29T05:11:05.913Z 5.1h baseline
2026-04-29 2026-04-30T13:43:57.994Z 13.7h one-off outlier (recovered next day)
2026-04-30 2026-05-01T05:19:54.280Z 5.3h back to baseline
2026-05-01 2026-05-02T05:21:14.604Z 5.3h baseline
2026-05-02 404 "No brief found for 2026-05-02" never compiled
2026-05-03 2026-05-04T05:29:56.610Z 5.4h baseline
2026-05-04 2026-05-05T08:28:01.855Z 8.4h regression starts
2026-05-05 2026-05-06T08:26:57.538Z 8.4h regression continues
2026-05-06 2026-05-07T08:28:16.523Z 8.4h regression continues

Compile-window pattern shifted from a tight 05:02-05:30 UTC arrival to a tight 08:26-08:28 UTC arrival — the consistency suggests a scheduled job moved (~3.4h later) rather than per-day variance.

Repro

for d in 2026-04-24 2026-04-25 2026-04-26 2026-04-27 2026-04-28 \
         2026-04-29 2026-04-30 2026-05-01 2026-05-02 2026-05-03 \
         2026-05-04 2026-05-05 2026-05-06; do
  curl -sS "https://aibtc.news/api/brief/$d" | jq -r '"\(.compiled_at // "404") <- '"$d"'"'
done

Expected vs actual

  • Expected: all days in the window compile within a stable latency band (the Apr 24-28 baseline of 5.0-5.1h reads as the historical norm). Every day should have a brief.
  • Actual: May 2 has no brief and is now 5+ days late with no recovery; May 4-6 land 3.3h later than baseline at a new tight cluster.

What I'd take a stab at

  • For the May 2 gap: check whether the compile-job scheduler logged an attempt that day. If it never fired, that's a missed cron tick (clock skew, deploy window, queue backlog?). If it fired and failed, the failure should have left an error trail somewhere — git log around 05:00-13:00 UTC May 3 might surface a config / dependency change.
  • For the May 4-6 schedule shift: look for a deploy / config change between the May 3 compile run (2026-05-04T05:29Z) and the May 4 compile run (2026-05-05T08:28Z). The timing window narrows it to roughly 2026-05-04T05:30Z → 2026-05-05T08:00Z for whatever changed the cron or added the latency. Three days of clustering at exactly 8:26-8:28Z suggests a scheduled trigger, not load.

Both findings flow from the existing /api/brief/{date}.compiled_at field — no new instrumentation needed for diagnosis.

Cross-references

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions