1.3 KiB
1.3 KiB
1. Cache Consistency and Contention Hardening
- 1.1 Harden WIP cache publish in
cache_updater.pyto preserve old snapshot on publish failure. - 1.2 Refactor WIP process-cache slow path in
core/cache.pyso heavy parse runs outside lock. - 1.3 Extend realtime equipment process cache with bounded
max_size+ deterministic LRU and add regression tests.
2. API Safety and Config Hygiene
- 2.1 Add depth-safe NaN cleaning in
resource_routes.pyand tests for deep payloads. - 2.2 Add shared boolean query parser in
core/utils.pyand switchwip_routes.py/hold_routes.pyto it. - 2.3 Make filter-cache source views configurable (env-based) in
filter_cache.pyand add config tests.
3. Runtime Guardrails
- 3.1 Add DB connection-string redaction logging filter in
core/database.py(or logging bootstrap) with tests. - 3.2 Add 5-second internal memoization for
/healthand/health/deep(disabled in testing) and tests. - 3.3 Add lightweight rate limiting for selected high-cost APIs with clear throttling responses and tests.
4. Validation and Documentation
- 4.1 Run targeted backend/frontend tests and benchmark smoke gate.
- 4.2 Update
README.mdandREADME.mdjwith round-3 hardening notes and new env variables.