Repository navigation
perf(harness): place the skill catalog before conversation history - #4248
Merged
Merged
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
jujn
approved these changes
Nov 18, 2026
xzxiaoshan
added a commit
to xzxiaoshan/agentscope-java
that referenced
this pull request
Nov 23, 2026
…tract serving rules Plain repositories are no longer enumerated without an explicit SkillFilter.only selection, so the shared workspace/skills layer (a plain FileSystemSkillRepository) served an empty catalog and the two skill-catalog placement tests added by agentscope-ai#4248 saw no <available_skills> block — a serving-rule artifact, not a placement defect. Both tests now pass an explicit LocalFilesystem so the skill is served through the context-scoped WorkspaceSkillRepository; assertions are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4247.
AgentScope-Java Version
2.1.0-SNAPSHOTDescription
Follow-up to #3691. Place the Harness skill catalog where the shared request prefix can include it as conversation history grows.
Summary
The earlier fork groups the catalog with session facts and per-call values from
ContextBlock.runtime(...). A changing value can end the shared prefix before the conversation. Fork commiteb50ccd96HarnessContextBuilderuses the existingharness:skillssource ID to render the catalog as a request-only User message. The catalog remains required during compaction. If putting it before history would leave an Assistant message last, Harness places the catalog at the end as a User message.Evidence
skillCatalogPrecedesGrowingHistoryAndChangingRuntimeStatefails onmain(c1d482900) because the catalog follows history.npm run validatepasses. Thenpm run broken-linksreport matches the baseline's 2,750 existing broken links.Merge Danger
Door Two-way. Reverting restores the previous message order.
Blast radius Harness model requests with a visible skill catalog.
Checklist