Skip to content

fix: 在原账号停调后恢复未发送的 HTTP 与 WS 可读续轮 - #855

Merged
ranxi2001 merged 52 commits into
productionfrom
fix/issue854-ws-owner-continuation
Nov 15, 2026
Merged

ranxi2001 merged 52 commits into
productionfrom
fix/issue854-ws-owner-continuation

Conversation

@ranxi2001

@ranxi2001 ranxi2001 commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

解决的问题与行为变化

原账号已完成交付后停调或冷却时,可信的首次发送前 owner/route 拒绝可以进入已有的有界可读重建;fresh WS 首帧和已有连接均保留可读任务、工具定义及已完成结果。失败日志区分 HTTP/WS 的传输状态与逻辑错误,界面将 HTTP200 transport failure 标为失败。

关联记录与来源

Refs #854,包含 #853 的完整回放保护。合并顺序为 #853 后本 PR;保留原作者历史和生产功能,不关闭仍有真实供应商验收边界的 Issue。

最终 head:d28501afee9d264b86858915548f5d93da882335。本轮检查的是最终整合提交;历史失败与旧 head 的结果不作为当前通过证据。

管理员新功能提示

不适用:修复现有恢复及错误展示,没有新增管理入口或提示 ID;标签关闭、A→B、多入口同步、刷新/登录和 C 验收均不适用。

复现与验收

实际认证 middleware、生产 scheduler/forwarder、loopback HTTP/WS、隔离 Redis/PostgreSQL 验证继续工具循环与一次交付;保留开关关闭、pending/failed/conflict、记录丢失、payload 变更、权限/计费/审核及已发送拒绝。历史 RED 和当前 GREEN 分别绑定源码身份,CI 同时验证原 860 投影契约。

协议、调度或传输补充

恢复仅限可信的未发送证据,受原预算、权限和交付完整性检查约束;不清 owner/cache、不解除旧账号冷却,不按上游错误文字直接放开重试。无 schema 迁移。日志不包含正文、密文、工具参数或凭据。真实上游、原客户端和生产运行未验证。

实际验证

执行目录 / 命令或检查 结果 范围
CI backend:make test-unit、make test-integration 通过 最终 head 的主 CI,真实隔离依赖按工作流运行
CI lint、前端、security 及已触发专项工作流 通过 82 项通过、45 项条件跳过,48 个 workflow 全部终态;无失败、取消或运行中检查。
本地 checkout:git diff --check 通过 补丁格式;未运行本地动态测试或构建
真实供应商、SMTP、生产与部署 未运行 无真实外部副作用,不宣称已经上线

最终行为证据:专用 job / 原始 JSONL。已下载并核对 handler 257、service 70、PostgreSQL 4 个通过记录(计数包含父测试,不冒称独立叶子样本数);ctx_pool、passthrough、http_bridge 的跨节点提交等待用例均通过。此前测试在阻塞生产提交后才建立消费端连接;现在预先建立连接,仍断言提交前零额外发送、提交后完成续轮,未放宽生产时限。

兼容性与运行影响

恢复仅限可信的未发送证据,受原预算、权限和交付完整性检查约束;不清 owner/cache、不解除旧账号冷却,不按上游错误文字直接放开重试。无 schema 迁移。日志不包含正文、密文、工具参数或凭据。真实上游、原客户端和生产运行未验证。

文档与用户可见变化

原账号停调后的未发送续轮恢复。源码合并与发布、部署分别处理;UI 证据与边界见下方,未作整站或生产验收的部分仍保留明确限制。

Agent 使用声明

  • Codex:唯一实现writer,分析、代码、测试、CI、PR正文;模型gpt-6-astra,推理强度xhigh(任务brief给定运行配置),fast requested非proven delivered。
  • Hermes协调者:gpt-6.1-sol,推理强度未知;任务协调及既有审计。
  • Hermes独立只读review Agent:gpt-6.1-sol,推理强度未知;固定86f源码/merge及最终d1bd两文件delta、原始证据审查,不参与实现。最终复审Agent:Hermes / gpt-6.1-sol,推理强度未知;最终128 checks及RED/GREEN/PG原始证据已重新核验,源码clear不代替临床验收。

本轮维护:Codex,环境标识 GPT-6,完整模型 ID 与推理强度未暴露、未知;负责静态复审、修复、CI、证据核对及合并。子 Agent 调用均返回 502,未产出审查结果,不计为独立验证。

提交前自查

  • 原 PR head 普通追加提交,保留原作者及生产历史。
  • 最终 head、base、源码审查与全部已触发检查已核对。
  • 未含真实凭据、客户内容或生产数据;没有真实外部请求。
  • 配置默认值、数据兼容、回滚限制和残余边界已说明。
  • 针对性回归、管理员提示及 UI 证据按适用范围核对。
  • Agent 信息区分已知、未知与失败调用。

真实浏览器 before / after(synthetic fixture)

固定 baseline aa8e596e6d6f3e4648d6beba73b39b240dd5357a → candidate ce4d8eaa0864dbb364a2c0e405a1676594cc8ad6;按此顺序实际渲染。Chrome 155.0.8059.84 / v24.21.0,UTC 2026-11-14T22:08:04.158Z–2026-11-14T22:08:29.598Z。32 PNG / 24 浏览器断言 PASS / 0 pageerror;全部原生附件已认证下载并逐图 SHA256 一致。

真实 OpsErrorLogTable、OpsErrorDetailModal、DataTable 移动卡片、BaseDialog、i18n 和项目 CSS;仅 API 返回 synthetic fixture。HTTP200 + transport_error 作为失败显示。WS 使用真实持久化形状:outer phase=internal、logical409;error JSON wire_status101/turn2/request_written=false/outcome=failed。baseline 注入同样形状仅比较渲染,不代表 baseline 曾成功记录这类 WS 失败。图片没有真实账号、用户数据、密文、凭据或生产 IP。

Fixture SHA256 1b0fcfce7efdae7534aa11ac456e937d5bebdd5429c4a1cc5989340a196091d8;capture harness SHA256 70ca25b4ce38772d8f35bef7915e12fb0b11477d14077d4bb193d435b4abe26e。源码 tree:aa8 9b7d4e7514386fc4fa2d6fd8a5c0aabdc00e533f,ce4d a9b9fc455fda50e97db706f799939e84f5f98e7d。可重现脚本本轮随 PR 追加;图片不进 Git。

en / desktop — table/cards + HTTP detail + WS status/diagnostics
View Before aa8 After ce4d
table before-en-desktop-table.png after-en-desktop-table.png
http-detail-status before-en-desktop-http-detail-status.png after-en-desktop-http-detail-status.png
ws-detail-status before-en-desktop-ws-detail-status.png after-en-desktop-ws-detail-status.png
ws-detail-diagnostics before-en-desktop-ws-detail-diagnostics.png after-en-desktop-ws-detail-diagnostics.png
en / mobile — table/cards + HTTP detail + WS status/diagnostics
View Before aa8 After ce4d
table before-en-mobile-table.png after-en-mobile-table.png
http-detail-status before-en-mobile-http-detail-status.png after-en-mobile-http-detail-status.png
ws-detail-status before-en-mobile-ws-detail-status.png after-en-mobile-ws-detail-status.png
ws-detail-diagnostics before-en-mobile-ws-detail-diagnostics.png after-en-mobile-ws-detail-diagnostics.png
zh / desktop — table/cards + HTTP detail + WS status/diagnostics
View Before aa8 After ce4d
table before-zh-desktop-table.png after-zh-desktop-table.png
http-detail-status before-zh-desktop-http-detail-status.png after-zh-desktop-http-detail-status.png
ws-detail-status before-zh-desktop-ws-detail-status.png after-zh-desktop-ws-detail-status.png
ws-detail-diagnostics before-zh-desktop-ws-detail-diagnostics.png after-zh-desktop-ws-detail-diagnostics.png
zh / mobile — table/cards + HTTP detail + WS status/diagnostics
View Before aa8 After ce4d
table before-zh-mobile-table.png after-zh-mobile-table.png
http-detail-status before-zh-mobile-http-detail-status.png after-zh-mobile-http-detail-status.png
ws-detail-status before-zh-mobile-ws-detail-status.png after-zh-mobile-ws-detail-status.png
ws-detail-diagnostics before-zh-mobile-ws-detail-diagnostics.png after-zh-mobile-ws-detail-diagnostics.png
PNG SHA256 / authenticated download verification
PNG SHA256
before-en-desktop-table.png 9fe7e2279e6788e73e2cba0d707a6712a6b0c65d8159ed81521825581083334c
before-en-desktop-http-detail-status.png 8d0a030540d9d313da2dd63c56e49e85a7c8cada8f7d1a4c98ac5c44b632bf1c
before-en-desktop-ws-detail-status.png e4c4dba45e67474d209f6e07111208988cf702a7d46156501e6363e367946c58
before-en-desktop-ws-detail-diagnostics.png 1ac93ca51473e91b38d3fe7f9412cc8a48fb1588c01462556e5e93c870b039b8
before-en-mobile-table.png ebca2a32e5b4a934afa27209f95848f5104adf23a73f5734c2dd78a446031a36
before-en-mobile-http-detail-status.png 23e2addd3a8c077ba5c115308b8384e20364ef321afba28df16dc86dc30a5b03
before-en-mobile-ws-detail-status.png 5899a69ba4fddefeca7c902ee5701c7ec6a975bc0a49cd81ca628aeb651a929e
before-en-mobile-ws-detail-diagnostics.png 72a5dc0d3a799d7a6b464bbed5d7b5055dde49a710b7c5c5219e328336d78f25
before-zh-desktop-table.png 3f14a7fb8a12d8b0a8b6ada6c660b27083401c092b446814447a667c3329cfde
before-zh-desktop-http-detail-status.png 364e89822100f016568143d66ec55177643e06dc2076798b94b92f8a3ce4d08f
before-zh-desktop-ws-detail-status.png 148b32686fb764c8c9731f78ee02f43215ba7fc15694fa2a6fef6f87bb6fa08b
before-zh-desktop-ws-detail-diagnostics.png 45fe8e056b79f1a62e9895f67f252b9283b1f9825092c0c841031a89611de198
before-zh-mobile-table.png 7938f849a2bd9162c3dee3d52ad49912bf06cb6199f221c44805dc05768de6cf
before-zh-mobile-http-detail-status.png daa4d2c2d1197013b76c8aa54434ab5cfb3e470eef6ef27d61ab9a6216d13430
before-zh-mobile-ws-detail-status.png 3ddc9d20aec9b082a4492a7f1e6538bb52e4e91440d97a90e79f22920633a782
before-zh-mobile-ws-detail-diagnostics.png d54e79d4459a8ca2c7efc67a30894cd95d88b2a96514542e395af6b7ce48624e
after-en-desktop-table.png ac4183358f204f50bb86781f47bc67e3d823da602b5096a24ab95633be7fb342
after-en-desktop-http-detail-status.png c63565dbcf4e442899a8ef51df79c85bf46168c20886f2eebabd0502d6d25273
after-en-desktop-ws-detail-status.png 0d78fa29fd730f2c538767ae57b4601092bd5b729ecc3fdbe6b004652d9a4861
after-en-desktop-ws-detail-diagnostics.png 98c514def736023d6613cae54e20bf3e21a5f222395dfc165f6fd1f5da7ea35e
after-en-mobile-table.png c88598194699a273ca2effb4e295bd03ba0a9d4d70770278d76e6fc24e3e58ea
after-en-mobile-http-detail-status.png 9666083a2b737be439ca6c53b6f05981f1418cf22eeb31d0b4f0beca9506dd7d
after-en-mobile-ws-detail-status.png 70c977d8bdfe868bf8590dca664a80de269e4db9d19d6deff70c5dc59d75b3e1
after-en-mobile-ws-detail-diagnostics.png 47406f95739dea978656d85937398aad20be11be0be90973311bcd043df633f0
after-zh-desktop-table.png 1ba6b0f75d663a81dae221a3066ed3ff8a83e564656db27edf1279efa1a3e1d7
after-zh-desktop-http-detail-status.png 11951d8a276aabf83b43408098be09886582b40ca95b7f361b147103bb50acb8
after-zh-desktop-ws-detail-status.png 04fce93526bfa236800fca2614ad82942886cdb455c0ecf6e30cb6f65d715686
after-zh-desktop-ws-detail-diagnostics.png 38ee4d0e21218df48896d0556c81af206a5691b27eeda679d278b536b1590a60
after-zh-mobile-table.png b7ba7d0c538021de18792d52ea2d56f5e82bfa3e45f2989b75ec00e99a1cad36
after-zh-mobile-http-detail-status.png 86d0dd6c88e06c332c87de768145bff0ee49f58625efb9114560b3205816004f
after-zh-mobile-ws-detail-status.png de247f2124054781081afc541486760bbbd31887a3b53964f98962ecf05c920d
after-zh-mobile-ws-detail-diagnostics.png af0c183fa1634e10904cd9b16bb63fb10e6246a9d29d90ca0be016058aed5616

@ranxi2001 ranxi2001 changed the title fix: resume unsent websocket tasks after owner becomes unavailable fix: resume readable OpenAI HTTP and WS turns after owner changes Nov 14, 2026
@ranxi2001 ranxi2001 changed the title fix: resume readable OpenAI HTTP and WS turns after owner changes fix: 在原账号停调后恢复未发送的 HTTP 与 WS 可读续轮 Nov 15, 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