Repository navigation
业务系统签发失败时给用户能照做的说明,并提示模型其他途径照常可用 - #134
Merged
Merged
Conversation
原来签发失败的本轮说明直接带错误码和「令牌提供方」等术语,模型照搬给用户, 用户看不懂该怎么办;另有一句「不得改用其他身份或历史凭据」,模型会理解成 连数据库等已有途径也不能用,于是放着能完成的请求不做。 现在按错误码给出用户能照做的说法(access_denied:找该系统管理员开通权限; 签发服务异常:稍后重试),并说明失败只影响这些系统的接口,用户的请求能用 其他途径完成时照常完成;禁止的只是用他人或历史令牌调用这些系统。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
问题
AI 员工每轮按授权预先为业务系统签发令牌。外部签发方拒签时,本轮说明是:
实际对话里出现了两个问题:
改动
access_denied:账号通常还没开通该系统的权限,找该系统管理员开通后重新提问;确认已开通仍不行,再联系 CoreMan 管理员。issuer_unavailable/invalid_response:稍后重新提问;持续出现请联系 CoreMan 管理员。测试
tests/integration/test_system_access.py:说明不含错误码、提到其他途径、按错误码给出对应说法、只列出失败的系统。🤖 Generated with Claude Code