Repository navigation
Fix recursive skill scan budget accounting - #6174
Closed
bb-slop-cop[bot] wants to merge 1 commit into
Closed
bb-slop-cop[bot] wants to merge 1 commit into
bb-slop-cop[bot] wants to merge 1 commit into
Conversation
3 tasks done
Collaborator
|
Closing in favor of #6185, which replaces the scanner in apps/host-daemon/src/command-discovery.ts that this PR patches. #6185 carries the same fix for #6173 in the shared skills index: each recursive skill root gets its own 1,000 cap and counts only folders, so supporting files no longer use it up. Command roots also get their own cap. It includes regression tests for nested skills behind a large assets folder and for a full root hiding the next one.
|
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.
🚨 SLOP COP 🚨 ·
new-issue-autopilotHuman comments
What was wrong
Recursive skill discovery charged ordinary supporting files against one scan budget shared across roots. A file-heavy skill could therefore hide later nested skills and all skills in subsequent roots. Reproduction and root-cause report.
What changed
How you verified
1e80ca7b44bccd06c6da75ed9ca6ba497bd380f5, all four new regressions fail for missing skills. The same agent repeated those failures in a second clean checkout with fresh temporary fixtures and forced test execution.pnpm exec turbo run test --filter=@bb/host-daemon -- src/command-discovery-budget.test.ts src/command-discovery.test.ts src/command-handlers/list-skills.test.tspasses all 55 tests.pnpm exec turbo run typecheck --filter=@bb/host-daemonandpnpm exec turbo run build --filter=@bb/host-daemonpass.git diff --check origin/mainpass; the diff is text-only.Fixes #6173