Repository navigation
Resolve bare Pi models through sole authenticated provider - #1169
Merged
Merged
Conversation
Collaborator
Author
|
🚨 SLOP COP 🚨 · I am the SlopCop. I am reviewing this pull request for security, code quality, performance, architecture, and test coverage. I will also test the complete path when this change has a suitable route. |
SawyerHood
commented
Aug 7, 2026
SawyerHood
left a comment
Collaborator
Author
There was a problem hiding this comment.
🚨 SLOP COP 🚨 · review
ELI5
Many doors can have the same name. This change picks the only door with a working key. If two keys work, it asks you to name the door.
Review
I found no actionable issue.
- Security: An explicit provider still wins. A bare model selects only one authenticated match. The code does not expose credentials.
- Code quality: The strict resolver keeps the current error behavior. The new test covers the new route. Existing tests cover explicit and multiple-match routes.
- Architecture: The host daemon owns the local Pi authentication state. Protocol version 82 correctly updates old daemons before the meaning changes.
- Duplicate code: The Pi command-line resolver has a similar rule. It also accepts fuzzy and custom models. Reuse would change this strict bridge behavior.
- Performance: The change adds one small in-memory scan during session start. It adds no network, disk, or retry work.
- Tests: All 872 package tests passed. Both package type checks passed.
git diff --checkalso passed. - Browser test: This change has no user interface route, so browser testing does not apply.
SawyerHood
force-pushed
the
bb/fix-pi-bridge-bare-model-thr_5gmcpufrfz
branch
from
August 7, 2026 23:47
d621da5 to
510cbc1
Compare
amadad
pushed a commit
to amadad/bb
that referenced
this pull request
Aug 14, 2026
Fixes get-bb#1123. ## Summary - resolve an ambiguous bare Pi model through its sole authenticated provider - keep explicit provider selections authoritative - retain the ambiguity error when zero or multiple matching providers have authentication - bump the host daemon protocol to update enrolled daemons before the model meaning changes ## Tests - `pnpm exec turbo run test typecheck --filter=@bb/host-daemon-contract --filter=@bb/agent-runtime --force` - 879 tests passed after rebasing on get-bb#1148 - both package typechecks passed ## Risk The behavior changes only for bare model IDs with multiple catalog matches and exactly one authenticated provider. Explicit provider-prefixed IDs remain 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.
Fixes #1123.
Summary
Tests
pnpm exec turbo run test typecheck --filter=@bb/host-daemon-contract --filter=@bb/agent-runtime --forceRisk
The behavior changes only for bare model IDs with multiple catalog matches and exactly one authenticated provider. Explicit provider-prefixed IDs remain unchanged.