Day 147 — The engine, exercised
Thursday, 31 December 2026 · Week 21 of 52 · The research harness · Catch-up day · 40 min
Light day. Week 21 built the thing the rest of the year runs on, so today is about making sure it actually runs rather than about adding to it.
What you should be able to do tonight
- Run both strategies end to end through the engine and reproduce the result object from disk.
- State the sequence of the event loop from memory, including what each step is allowed to read.
Tasks 40 min
25 min Finish anything outstanding from days 141 to 146. The accounting identity test and the reconciliation against the vectorised version are the two pieces to have working before week 22 puts costs on top.
15 min Closed book: write the event loop sequence, the three fill conventions, and the reason positions are derived from fills. Then check against the code.
Drill interview thread
Spaced repetition, not cramming. Every drill in the year is collected on the drills page.
Arithmetic, timed, twenty-first sitting. Ten two-digit multiplications, the sevenths, and 17 times 18, 23 times 27 and 34 times 36 using the complements trick.
Markov chains: a mouse in a 3 by 3 grid of rooms moves to a uniformly chosen adjacent room each minute, starting in a corner. Expected time to reach the centre? Set up the states using symmetry so there are three, not nine.
The follow-up: what is the long-run fraction of time spent in the centre? Get it from the stationary distribution and say why it is proportional to the number of doors.
Resources
Deliverable
Both strategies run through the engine with results serialised and reloaded, and the closed-book event loop description.
Checkpoint
State the event loop sequence and say what the strategy is allowed to read at the decision step.
Prepare for tomorrow
Ten minutes tonight so Day 148, Friday, 1 January 2027 starts clean. This is what the evening email sends you.
Measure the quoted spread in basis points for ten names across the liquidity spectrum, from SPY to a small cap.
Write the ten numbers down, sorted.
Note the ratio between the largest and smallest. It is bigger than most cost models assume.