Day 323 — The daily run, as a sequence of steps that can each fail

Friday, 25 June 2027 · Week 47 of 52 · Production · Study day · 60 min

Week 47 turns the research pipeline into a scheduled system, and the design that matters is which failures are loud and which are silent, because the silent ones are the expensive ones.

What you should be able to do tonight

  • Implement the daily run as an ordered set of steps, each with an explicit success condition rather than an absence of exceptions.
  • Name the three failures that would not raise an exception and say how each is detected.

Tasks 60 min

35 min Write qlib/run/daily.py: ingest, validate, compute signals, construct the portfolio, generate orders, submit, and reconcile. Each step returns a status with the checks it performed, and a step that produced no data succeeds only if producing no data was expected on that date.

25 min Enumerate the silent failures and add a check for each: stale data that is present but unchanged from yesterday, a signal that computed but is outside its historical range, and an order set that is empty because a join failed rather than because the strategy wanted no positions. Those three account for most silent production failures in this kind of system.

The running strategy

qlib/run/daily.py is the production entry point: seven ordered steps, each with an explicit success condition, and three checks for the failures that do not raise exceptions.

Resources

Deliverable

A daily run script with per-step success conditions and three silent-failure checks implemented.

Checkpoint

Your pipeline silently produced yesterday’s signal today. Which check catches it, and why is job succeeded not that check?

Prepare for tomorrow

Ten minutes tonight so Day 324, Saturday, 26 June 2027 starts clean. This is what the evening email sends you.

Look at whatever logging your code currently does and write down a question you would want to answer from it in three months.

Then check whether you could.

You almost certainly could not, and that gap is tomorrow.