Repository navigation
Bound workspace skill reads and restore discovery rules - #5267
Merged
Merged
Conversation
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.
Human comments
What was wrong
The combined workspace-context reader introduced in #5257 could read up to 1,000 project skill files concurrently without an aggregate content budget. It also lost excluded-directory filtering and exact-case filename matching on case-insensitive filesystems, and checked containment only when reading individual files. Command lookup unnecessarily read
.bb/AGENTS.md, allowing an invalid instructions file to break the command catalog.What changed
SKILL.mdmatching. Check root containment before enumeration and file containment before reading; retain symlink skips.HOST_DAEMON_PROTOCOL_VERSIONfrom 232 to 233 for required request fields and the budget-exceeded result variant; bump SDK declarations to 0.6.35. Document policy and budget scope in the debugging guide.How you verified
pnpm exec turbo run test --filter=@bb/server --filter=@bb/host-daemon --filter=@bb/host-daemon-contract -- src/command-handlers/workspace-agent-context.test.ts test/public/public-project-commands.test.ts test/threads/thread-runtime-config.test.ts test/contract.test.tspnpm exec turbo run typecheck --filter=@bb/server --filter=@bb/host-daemon --filter=@bb/host-daemon-contractgit diff --checkpassed. No live UI or performance benchmark was run for this follow-up.