Repository navigation
fix(core): 服务启动时拒绝会拆分授权的字符串名单(lingshu #1132,镜像 #1132 净增量) - #1153
Merged
Merged
Conversation
This was referenced Oct 29, 2026
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.
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
tests/test_structure_grant_arrays.py(13 条,来自 fix(core): 服务启动时拒绝会拆分授权的字符串名单 #1132 原样)—— 13 passed(镜像分支)。3552ec3)同文件:10 failed / 3 passed——10 红恰为授权面契约 ⇒ 鉴别力。test_structure_writer/test_issue712/test_structure_read_deadline(fix(core): 结构写服务整帧读取共享超时预算(lingshu #1139,镜像 #1140 净增量) #1146 读超时预算保持)⇒ 19 passed。tools/verify_manifest.py --strict64/64,exit 0。