Skip to content

fix(compression): frame summaries as reference metadata#17506

Closed
Korkyzer wants to merge 1 commit into
NousResearch:mainfrom
Korkyzer:fix/context-compaction-reference-only
Closed

fix(compression): frame summaries as reference metadata#17506
Korkyzer wants to merge 1 commit into
NousResearch:mainfrom
Korkyzer:fix/context-compaction-reference-only

Conversation

@Korkyzer

Copy link
Copy Markdown
Contributor

Summary\n- Reframe context compaction summaries as reference metadata, not fresh user requests or active instructions.\n- Rename the summary's active-task section to outstanding-work metadata and tell the summarizer not to phrase unfinished work as commands.\n- Add regression coverage for the handoff prefix so it does not reintroduce resume exactly / Respond ONLY style instructions.\n\n## Tests\n- python -m pytest tests/agent/test_context_compressor.py -q -o 'addopts='

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/agent Core agent loop, run_agent.py, prompt builder labels Apr 29, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Closing as superseded by #35383 (#35383). The REFERENCE-ONLY framing your PR proposed already landed on main, and the conflicting-directive removal is handled there via #26290's approach. We kept the section named ## Active Task rather than renaming to ## Outstanding Work Metadata, since #32787 relies on Active Task remaining the authoritative continuation field. Thanks for the clear analysis of the reference-vs-instruction problem.

@teknium1 teknium1 closed this May 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent loop, run_agent.py, prompt builder P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants