Book stores the record, publishes it on the bus, and from then on does
not change it. The own-sale step added in v0.1.100 broke that: it set
the segment statuses on the same record a moment after the publish. A
subscriber reading the record raced with it. wholesky's revenue tap
did, and its race suite caught it.
sellOwn now takes the locator, reads its own copy from the store,
decides on that copy, stores it and publishes it. Book and AddSegment
return the decided copy. The new test makes 60 own sales while a bus
listener reads every record. It reports 2 data races on the old code
and none now.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T4efsDi6fNVRMC3NcdWg1Q