Skip to content

fix(core): 服务启动时拒绝会拆分授权的字符串名单(lingshu #1132,镜像 #1132 净增量) - #1153

Merged
FuRongJun-1999 merged 1 commit into
mainfrom
fix/structure-grant-arrays-1132
Oct 29, 2026
Merged

FuRongJun-1999 merged 1 commit into
mainfrom
fix/structure-grant-arrays-1132

Conversation

@FuRongJun-1999

Copy link
Copy Markdown
Owner

Summary

修复 lingshu #1132(#1107 的授权面反转子面):load_service 对 grant 的 capabilities/instances 直接 frozenset(...)——字符串被拆成逐字符集合(frozenset("instance-1") = {'i','n','s',...}):真正被指派的 instance-1 被拒、单字符反而通过 capabilities 检查。修法(PR #1132 净增量原样):_grant_names 保守卡——名单必须是非空字符串的 JSON 数组,否则启动即 WriteError。

镜像说明:净增量来自 PR #1132(@STARDUSTLC666,守卫原样)。其分支基线早于 #1138/#1143/#1146 直接合并会回退已合工作(净 diff -998 行),故摘 structure 面净增量重放至最新 main。

Tests

load_service 对 grant 的 capabilities/instances 直接 frozenset(...)——字符串
被拆成逐字符集合:真正被指派的 instance-1 被拒、单字符反而通过 capabilities
检查(授权面反转)。修法(PR #1132 净增量原样):_grant_names 保守卡——名单
必须是非空字符串的 JSON 数组,否则启动即 WriteError。读超时预算(#1146)
等已合工作保持。

守卫 13 条(基线 10 红/3 绿);变异还原 frozenset 直拆 10 红;structure
邻接 19 passed。
@FuRongJun-1999
FuRongJun-1999 merged commit 5674c12 into main Oct 29, 2026
4 checks passed
This was referenced Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant