[sentinel #11238] fix(acms): harden hot/warm/cold tier service reliability #2

Open
HAL9000 wants to merge 2 commits from tests/sentinel-11238-pr-fix-9663-hot-warm-cold-tier-reliability into master

2 Commits

Author SHA1 Message Date
cleveragents-auto f0e0d44089 Merge commit '3d391ddb3a1dfd28beb4271ee9d3ce26a4666bf6' into HEAD 2026-05-21 06:32:47 -04:00
HAL9000 03e34b035e fix(acms): harden hot/warm/cold tier service reliability
- Remove unused conflicting _DEFAULT_* constants that conflicted with
  canonical defaults in context_tier_settings.py (which serves as the
  sole source of truth for budget/setting defaults).

- Add _enforce_warm_capacity() to enforce max_decisions_warm limit on
  warm tier after cold→warm promotion and hot-budget-fallback restore,
  preventing silent over-capacity data accumulation.

- Return deep copies (model_copy) from get_all_fragments() and
  get_hot_fragments() to prevent callers from mutating internal fragment
  state while the service holds its RLock under concurrent plan execution.

- Rename _COLD_SUMMARY_MAX_CHARS → _default_summarisation_max_chars for
  consistent snake_case naming throughout the module.

Fixes: PR #9663
2026-05-16 22:54:08 +00:00