fix(concurrency): add thread safety to InvariantService #10947

Open
HAL9000 wants to merge 2 commits from fix/issue-7524-invariant-service-thread-safety-v2 into master

2 Commits

Author SHA1 Message Date
HAL9000 97ab19e5fe fix(concurrency): add thread safety to InvariantService
CI / lint (pull_request) Successful in 52s
CI / quality (pull_request) Successful in 50s
CI / build (pull_request) Successful in 44s
CI / typecheck (pull_request) Successful in 1m24s
CI / security (pull_request) Successful in 1m24s
CI / push-validation (pull_request) Successful in 26s
CI / helm (pull_request) Successful in 42s
CI / unit_tests (pull_request) Failing after 5m22s
CI / coverage (pull_request) Has been skipped
CI / docker (pull_request) Has been skipped
CI / integration_tests (pull_request) Successful in 9m23s
CI / status-check (pull_request) Failing after 3s
Remove trailing blank lines from invariant_service_thread_safety_mixed_steps.py
to fix ruff format check (CI lint gate).

ISSUES CLOSED: #7524
2026-06-10 03:32:30 -04:00
HAL9000 001928330d fix(concurrency): add thread safety to InvariantService
Added threading.RLock to InvariantService to prevent RuntimeError and

data corruption under concurrent access. All 5 public methods are

protected by reentrant lock context managers. Removed forbidden

type guard. Removed 4 dead-code step functions from mixed steps file.

Added CHANGELOG.md entry.

ISSUES CLOSED: #7524
2026-06-10 03:32:30 -04:00