Skip to content

feat(memory): resolve compress_provider at runtime in compress_context handler #2356

@bug-ops

Description

@bug-ops

Context

PR #2355 added compress_provider config field to [memory.compression] as part of the Focus autonomous compression feature (#2218). However, handle_compress_context() currently uses the primary provider rather than resolving the named provider from the config field.

Required

In crates/zeph-core/src/agent/tool_execution/native.rs (or wherever compress_context is handled):

  1. Read compression.compress_provider from config
  2. Resolve via ProviderRegistry::get(name) (or equivalent)
  3. Pass the resolved AnyProvider to the compaction pipeline instead of the primary provider

Follow the same pattern as admission_provider wiring added in #2355.

Priority

P3 — multi-model design compliance. Functional correctness not affected (falls back to primary provider).

Metadata

Metadata

Assignees

Labels

P3Research — medium-high complexityenhancementNew feature or requestmemoryzeph-memory crate (SQLite)

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions