Repository navigation
Add read-only Flex configuration preflight - #623
Merged
Merged
Conversation
This was referenced Oct 13, 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.
IBKR Flex 凭证和既有绑定字段目前只能通过发布任务间接检查;仓库 Secret 名称查询返回 403,不能据此判断字段缺失。增加手动、仅 main 可执行的配置形状检查,按固定字段返回 missing / invalid / configuration_shape_valid,以及执行提交 SHA;不输出配置值或异常文本。
--preflight在发布开关之前退出,复用原有_config校验,仅使用现有八个 Repository secrets。它不调用 Flex、券商、Worker 或通知,不修改发布开关、账户绑定、权限、运行时选择器或 QPK 固定版本。形状通过仍不证明凭证有效、原生账户授权或 Worker token 匹配。验证:85 项聚焦测试通过;全量 1846 passed、5 个既有 skip;frozen sync、Ruff、锁文件、启动检查、现有 CI 指定 QPK pin 和 actionlint / ShellCheck 通过。独立复审无可操作问题;原有测试和默认发布主体保留。默认 canonical QPK 检查仍发现公共 main 与现有固定版本差异,本次不调整固定版本。
最终 head
59b3cc82da1ff61c40c7355bf6ce3a0cd3e99474的 PR CI 38451507725 成功;正常合并a41fe634426d6bb48f24274a3f6ae9c338b6b244,main CI 38451856685 成功,审核树与合并树一致。实际 main 配置检查 38451879253 已执行:两个 Flex 字段 missing,另六项 configuration_shape_valid;配置检查按合同返回失败。该回执不证明凭证有效、独立账户批准或两端同步令牌相等。未调用券商、发布、开启开关或改生产配置。