Feature: Importance-weighted truncation #24
Labels
No labels
audit-2025-12-03
component/api
component/commands
component/llm
component/memory
component/tick-loop
component/tools
priority
high
priority
low
status
in-progress
status
needs-info
status
needs-triage
status
on-hold
type
bug
type
documentation
type
enhancement
type
feature
type
refactor
type
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
blightbow/evennia_ai#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Overview
Implement truncation that preserves narrative coherence by scoring importance rather than using simple FIFO.
Truncation Strategy
When perception stream exceeds token budget:
narrative_textlonger than thresholdAlgorithm
Importance Preservation Rules
Files to Modify
llm_interaction.py- Truncation logic in prompt assemblyapi/serializers/workbench.py- Update for new modelPhase
Phase 4 of Milestone #4