Repository navigation
.NET: Request summaries with a trailing user message - #10219
Lulu (lulu0119) wants to merge 2 commits into
Conversation
|
Full benchmark report and reproducibility bundle: 144 calls on real coding traces at approximately 100K input tokens. Includes the protocol, prompts, original outputs, grades, and analysis. After extracting, run SHA256: Submission containing materials of a third party: The attached bundle includes selected Nebius SWE-rebench OpenHands trajectories (Trofimova et al., 2025), obtained from the ThoughtWorks normalized distribution at revision |
There was a problem hiding this comment.
🔵 Needs a closer look
The mock-only ordering test leaves external provider acceptance and instruction semantics of a trailing system message unverified, requiring maintainer validation.
No open issues 🎉
What changed in this PR
This PR moves the summarization instruction after the selected conversation history in .NET’s compaction strategy, aiming to keep the model focused on summarizing rather than continuing the previous task.
Changes:
- Append the unchanged system summary prompt after the selected history.
- Update the existing unit test to assert the new message order.
- Preserve public APIs and prompt text.
| File | Description |
|---|---|
dotnet/tests/Microsoft.Agents.AI.UnitTests/Compaction/SummarizationCompactionStrategyTests.cs |
Updates assertions to expect history before the custom system prompt. |
dotnet/src/Microsoft.Agents.AI/Compaction/SummarizationCompactionStrategy.cs |
Appends the summarization system instruction after collecting history. |
Review effort: Balanced
|
@microsoft-github-policy-service agree |
|
I overlooked the issue-first requirement in CONTRIBUTING.md and opened this draft PR before obtaining maintainer agreement. Sorry for the process mistake. I have now opened #10221 and will keep this PR in draft pending confirmation of the problem and proposed direction. |
Motivation & Context
With long coding histories, the summarizer can continue the old task instead of producing a summary.
Description & Review Guide
Related Issue
Fixes #10221.
Draft pending maintainer agreement on the problem and proposed direction.
AI Assistance
AI assistance details: implementation, test update, benchmark, and PR description.
Contribution Checklist
FileAgentSkillLoaderTests.