Document RuntimeState concurrency model and mark task 5 complete

This commit is contained in:
2026-04-18 19:56:41 +02:00
parent 52e08e17a4
commit be1d66988f
3 changed files with 11 additions and 4 deletions

View File

@@ -98,6 +98,8 @@ Reference: `Docs/Refactoring.md` for full analysis of each issue.
**Why this is needed:** The safety of `RuntimeState` depends on an implicit assumption (single-worker, no `await` between read and write) that is not written down anywhere. If the deployment model changes or a developer modifies state-mutating functions, silent data races could appear with no warning. Explicit documentation prevents this.
**Status:** Completed.
---
### 6. `geo_service` Calls `db.commit()` Directly Instead of Deferring to Repository