test(e2e): cover user auth after service principal error - #1263
Open
ruiconti wants to merge 1 commit into
Open
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
ruiconti
force-pushed
the
rui/current-user-auth-after-service-trigger
branch
2 times, most recently
from
July 27, 2026 22:01
b6a2704 to
0abe5f3
Compare
Signed-off-by: Rui Conti <ruiconti@gmail.com>
ruiconti
force-pushed
the
rui/current-user-auth-after-service-trigger
branch
from
July 28, 2026 00:46
0abe5f3 to
ea6d1f8
Compare
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.
What
connection_search, record the expected user-principal failure, and finish on the next model stepauthorization.requiredfor that current userAn automated investigation can fail to load a user-scoped connection because its active principal is
service. That failed tool call remains in session history. The eval checks the event order directly: failedaction.result, nextstep.started, then the terminal service reply.When a human continues the session, the model must be offered
connection_searchagain. If it calls the tool, eve must resolveauth.currentto the human instead of reusing the service principal.The fixture uses deterministic interactive authorization instead of
@vercel/connect/eve, because e2e fixtures cannot depend on Vercel OIDC, connector installation, or an external MCP server. Its authorization challenge includes the resolved principal ID, so the assertion proves the human became current.This covers the eve history and authorization contract under the existing Sol and Opus e2e matrix. It does not add Terra to every fixture or independently prove a Terra-only tool-selection regression. Fixture-only; no runtime change or changeset.