feat(context): add hot/warm/cold tiers and actor views #530

Merged
freemo merged 1 commit from feature/m6-context-tiers into master 2026-03-03 17:06:59 +00:00
Owner

Summary

Implement hot/warm/cold context tiers with per-actor views and project-scoped filtering for the ACMS Context Tier Service.

  • Added ContextTier, ActorRole, TieredFragment, TierBudget, ActorContextView, TierMetrics, and ScopedBackendView models in src/cleveragents/domain/models/acms/tiers.py
  • Added ContextTierService with store/get, promotion/demotion (with cold-tier summarisation hook), LRU eviction, per-actor filtered views (strategist/executor/reviewer), and project-scoped isolation
  • Added settings: context_max_tokens_hot, context_max_decisions_warm, context_max_decisions_cold
  • DI-wired as singleton context_tier_service in container
  • Includes 30 Behave BDD scenarios, 7 Robot Framework integration tests, 5 ASV benchmark suites, and docs/reference/context_tiers.md

Quality Gates

  • nox -s lint — passed
  • nox -s typecheck — passed (0 errors, 0 warnings)
  • nox -s unit_tests -- features/context_tiers.feature — 30/30 scenarios passed

Closes #208

## Summary Implement hot/warm/cold context tiers with per-actor views and project-scoped filtering for the ACMS Context Tier Service. - Added `ContextTier`, `ActorRole`, `TieredFragment`, `TierBudget`, `ActorContextView`, `TierMetrics`, and `ScopedBackendView` models in `src/cleveragents/domain/models/acms/tiers.py` - Added `ContextTierService` with store/get, promotion/demotion (with cold-tier summarisation hook), LRU eviction, per-actor filtered views (strategist/executor/reviewer), and project-scoped isolation - Added settings: `context_max_tokens_hot`, `context_max_decisions_warm`, `context_max_decisions_cold` - DI-wired as singleton `context_tier_service` in container - Includes 30 Behave BDD scenarios, 7 Robot Framework integration tests, 5 ASV benchmark suites, and `docs/reference/context_tiers.md` ## Quality Gates - `nox -s lint` — passed - `nox -s typecheck` — passed (0 errors, 0 warnings) - `nox -s unit_tests -- features/context_tiers.feature` — 30/30 scenarios passed Closes #208
feat(context): add hot/warm/cold tiers and actor views
All checks were successful
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 15s
CI / build (pull_request) Successful in 18s
CI / quality (pull_request) Successful in 18s
CI / typecheck (pull_request) Successful in 34s
CI / security (pull_request) Successful in 48s
CI / unit_tests (pull_request) Successful in 2m16s
CI / docker (pull_request) Successful in 39s
CI / integration_tests (pull_request) Successful in 3m0s
CI / coverage (pull_request) Successful in 3m58s
CI / lint (push) Successful in 13s
CI / build (push) Successful in 15s
CI / quality (push) Successful in 17s
CI / typecheck (push) Successful in 31s
CI / benchmark-regression (push) Has been skipped
CI / security (push) Successful in 35s
CI / unit_tests (push) Successful in 3m23s
CI / docker (push) Successful in 38s
CI / integration_tests (push) Successful in 4m7s
CI / coverage (push) Successful in 4m48s
CI / benchmark-publish (push) Successful in 14m14s
CI / benchmark-regression (pull_request) Successful in 24m27s
6519f140a9
Implement hot/warm/cold context tiers with ContextTier, ActorRole,
TieredFragment, TierBudget, ActorContextView, TierMetrics, and
ScopedBackendView models. ContextTierService provides store/get,
promotion/demotion with cold-tier summarisation hook, LRU eviction,
per-actor filtered views (strategist/executor/reviewer), and
project-scoped isolation via ScopedBackendView.

Settings: context_max_tokens_hot, context_max_decisions_warm,
context_max_decisions_cold. DI-wired as singleton context_tier_service.

Includes Behave BDD scenarios (30), Robot Framework integration tests (7),
ASV benchmarks (5 suites), and docs/reference/context_tiers.md.

Closes #208
freemo scheduled this pull request to auto merge when all checks succeed 2026-03-03 17:04:01 +00:00
freemo merged commit 6519f140a9 into master 2026-03-03 17:06:59 +00:00
freemo deleted branch feature/m6-context-tiers 2026-03-03 17:06:59 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core!530
No description provided.