Reference / Trade execution

Which of the store's writes take which locks

Of the store's three writes, two enter a guard before taking the log lock and one goes straight to it.

Contents

The two that share a set

The checkpoint and the record of a state change enter the same guard before taking the log lock — the same two steps in the same order.

The one on its own

The event write takes the log lock and enters that guard at no point.

Which object the pair's first half must be

As the build runs, one lock is set on the risk state, and a check refuses to carry on where the pair would be given another in its place.

Source evidence
---
row: P5-07
baseline: 49aa659
created: 2026-11-05 16:22 UTC
modified: 2026-11-09 10:25 UTC
evidence:
  - claim: "A checkpoint and a record of a state change enter the same guard before taking the log lock"
    source: "`nexus/infrastructure/state_store.py` 178 and 198, each entering 219 before the log lock"
  - claim: "The strategy-event write enters no guard before taking its lock"
    source: "`nexus/infrastructure/state_store.py` 236, with no guard entered before it"
  - claim: "The object standing as the pair's first half is set on the risk state as the build runs, and a check refuses to carry on where the pair would hold another"
    source: "`praxis/launcher.py` 4128 setting it, 2569-2576 refusing where it is another, or else 2579 putting it in the pair handed back at 2578"
---

Edit this sourceCheckout revision · 7381aa49
Reference / keep your place
Find a passage