Day 324 — Logging for the questions you will ask in March
Saturday, 26 June 2027 · Week 47 of 52 · Production · Study day · 60 min
The purpose of a log is not to record that something happened but to let you reconstruct why a position was what it was, six weeks later, without rerunning anything.
What you should be able to do tonight
- Log structured records that let you reconstruct any day’s decisions without rerunning the pipeline.
- Answer three specific reconstruction questions from the log alone.
Tasks 60 min
35 min Convert your logging to structured records: one line per event as JSON, with a run identifier, a step name, a timestamp, and the numbers rather than a formatted sentence. Include the input row counts, the signal summary statistics, the target positions and the orders generated. A log you have to parse with a regular expression is a log you will not use.
25 min Test it against real questions: why did the book hold this position on that date, what did the signal look like the day the pipeline produced no orders, and how long did each step take across the last month. If any of the three cannot be answered from the log alone, add what is missing now.
The running strategy
The production run emits structured JSON logs with run identifiers, per-step timings and the numbers behind each decision, so any day’s positions can be reconstructed from the log without rerunning the pipeline.
Resources
Deliverable
Structured logging in place, with three reconstruction questions answered from the log alone.
Checkpoint
From your logs alone, can you say why the book held a particular position on a particular day? Demonstrate it.
Prepare for tomorrow
Ten minutes tonight so Day 325, Sunday, 27 June 2027 starts clean. This is what the evening email sends you.
List the four things most likely to break in your pipeline over a year of unattended running.
For each, say how you would find out and how long it would take.
If any answer is that you would notice eventually, mark it.