Skip to content

Reduce gateway event scans and transient payload copies - #2668

Merged
JAVA-LW merged 12 commits into
betafrom
codex/gateway-resource-integration-20261025
Oct 25, 2026
Merged

JAVA-LW merged 12 commits into
betafrom
codex/gateway-resource-integration-20261025

Conversation

@JAVA-LW

@JAVA-LW JAVA-LW commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

工具历史匹配与 committed event 回声存在反复扫描;供应商等待、文件写入和回调恢复又保留多份载荷。本次使用调用内索引与 Rust 所有权减少这些成本,保留完整 JSON 相等、原顺序、ACK/release、上传字节和快照独立性。事件按规范 ID 缩小候选集合,完整正文仍是判重标准;JSON 归一化次数、预算与错误顺序保持原契约。

  • 4096条事件的源绑定样例:587.168→4.801ms;4096工具历史:32.783→1.712ms。小正文/无ID和索引内存开销在报告中保留。
  • Release真实服务同负载(三版本、正反顺序、每版本80条流+80次上传):相对本轮前API+供应商CPU12.785→12.915s(+1.02%);平均采样峰值RSS553.479→546.508MiB;流P955883.995→4493.958ms。文件及sidecar字节完全相同;数据库物理增长均值增加144KiB,未引入持久化副本或schema变化。
  • 重型基准为手动入口。每次源码构建清理本项目workspace产物、复用第三方依赖,校验编译器源码路径和fresh=false,再绑定实际运行二进制hash。此前三次产物复用错误的对照已撤销。

验证:902项后端测试通过/1项既有忽略、四种传输/六种供应商/330请求契约与压力刻画通过、有效Release资源与编译来源证据、最新PR门禁。7,112,495个有限模型断言通过,受控旧缺陷保留3/3,新增同ID误判和编译收据反例均被拒绝。

Root #2665;Delivery #2666、#2667。架构说明见 docs/architecture/ai-gateway-local-indexes.md 和 ai-gateway-payload-ownership.md。无第三方依赖、插件改动或业务容量上限新增。

集成:已合入并推送 beta 909c053ba;合入后 verify 的10个组件全部通过。最终任务验证成本16次运行/383.20 Runner分钟;PR反馈 n=6,P50 9分58秒/P95 10分32秒。独立 QA 和 GitHub 代码审查已完成。

@JAVA-LW
JAVA-LW marked this pull request as ready for review October 25, 2026 03:33
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T03:35:00.602635Z 909c053 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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