Repository navigation
perf(orchestration): reuse edge indexes and borrowed reachability state - #2660
Merged
Merged
Conversation
JAVA-LW
marked this pull request as ready for review
October 24, 2026 17:19
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
复杂工作流每次激活下游、检查失败推理恢复尾部时会扫描全部边;变量引用校验的 DFS 反复复制已访问节点 ID。编译器、主调度、错误策略和内部工具分支现在共用调用内借用出边索引,DFS visited 改用借用字符串;恢复准入复用该索引和已有 topology 位置表。
保留边顺序、平行边、handle 过滤、已有 active 目标的 handled 语义、空边 fallback、原拒绝原因以及恢复不重放副作用。恢复尾部仍包含 error 边。索引不进入持久化计划,临时恢复视图在异步 provider 调用前释放;无新增依赖、存储、容量上限或门禁配置。
与 v0.5.8 相同的旧目标算法比较,1400 节点链的激活 P50 为 2.454 → 0.394 ms,可达性为 116.065 → 92.928 ms,恢复范围为 2.621 → 0.758 ms;可达性少 979,300 次分配。索引额外使用约 142.7 KiB 存活堆;仅激活少量节点时增加约 0.12~0.15 ms,收益面向较长遍历路径。
验证:实际 Rust 的 1,385,088 个激活状态、43,275 个有序投影、1,646,745 次可达性查询,以及源码绑定的 528,536 个恢复变体、80,638 个位置谓词全部通过;8/8 受控错误被断言检出。750/1400 节点真实调度校验每项输出与 trace;最终组件
0d70a5c84的远端 runtime-fast 890 个测试通过(含编排库 526 个),0 失败。数学不变量、复杂度与验证边界见
docs/architecture/orchestration/graph-cost-model.md。这是归纳模型推导和有限域实现检查;不将算法探针或进程内 stub-provider 执行数据当作在线 HTTP/数据库吞吐。独立 QA 已检查并修复相邻恢复扫描遗漏。关联 #2659。组合候选
0cfa6727d包含并发已集成的 beta6c2547614;orchestration-runtime 源码与已验收组件完全一致。完整原始数据、资源回执和量化口径保留在本地tmp/test-governance/backend-workflow-pressure-20261025/acceptance.md与final-metrics.json。最终组合提交
0cfa6727d已合入 beta。验收回执:PR verify、runtime-fast、模板契约与 API 消费方、beta verify 均成功。模板契约 scope 另有 142 项通过。