Expand description
Task-aware pruning strategy for tool output eviction.
Provides relevance scoring, subgoal tracking, density classification, and
focus auto-consolidation. These types and functions are used by the
crate::service::ContextService summarization path and are referenced from
zeph-core via re-export.
Structs§
- Block
Score - Per-message relevance score used by task-aware and MIG pruning.
- Subgoal
- A tracked subgoal with message span.
- Subgoal
Extraction Result - Output of a background subgoal extraction LLM call.
- Subgoal
Id - Unique identifier for a subgoal within a session.
- Subgoal
Registry - In-memory registry of all subgoals in the current session.
Enums§
- Content
Density - Density classification for a message or segment.
- Subgoal
State - Lifecycle state of a subgoal.
Functions§
- classify_
density - Classify a message’s content density.
- extract_
scorable_ text - Extract text content from a message suitable for scoring.
- partition_
by_ density - Partition messages into (high-density, low-density) groups.
- run_
focus_ auto_ consolidation - Automatically consolidate low-relevance context into a knowledge-block summary.
- score_
blocks_ mig - Score blocks using MIG (relevance − redundancy) with temporal partitioning.
- score_
blocks_ subgoal - Score each tool-output message block by subgoal tier membership.
- score_
blocks_ subgoal_ mig - Score tool-output blocks using subgoal tiers combined with MIG redundancy.
- score_
blocks_ task_ aware - Score each tool-output message block against the task goal.