feat(memory): add incremental transcript compaction

This commit is contained in:
somew1nd committed 2026-09-01 17:46:44 -07:00
1 parent cbe8f4f0c6
commit 41ae386a3a
65 files changed
+9971 -815

No files matched your search

+3 -6
View File
@@ -47,7 +47,7 @@ from artemis.utils.decorators import wrap_with_callbacks
from artemis.utils.logger import get_logger
from artemis.utils.notes import get_note_file_path
from artemis.utils.plan_grammar import render_plan_grammar_spec
from artemis.utils.task_tree import build_plan_and_history
from artemis.memory.context_policy import build_history_for
logger = get_logger(__name__)
@@ -130,14 +130,11 @@ async def run_async_planner_validation(
if ctx.data_engine:
try:
steps = ctx.data_engine.get_agent_friendly_steps()
history_str = build_plan_and_history(
history_str = build_history_for(
"planner",
"", # Pass empty string to avoid rendering the task plan in the history
steps,
"default",
last_n_detailed=2,
strict_milestone_pruning=True,
recent_window_size=5,
chronological_last_step=True,
)
except Exception as e: