Skip to content

Keep Chat delivery reviews readable when the Todo source is unavailable - #8720

Merged
loopx-agent merged 1 commit into
mainfrom
codex/audit-chat-delivery-map-pr-20261114
Nov 14, 2026
Merged

loopx-agent merged 1 commit into
mainfrom
codex/audit-chat-delivery-map-pr-20261114

Conversation

@loopx-agent

Copy link
Copy Markdown
Collaborator

A temporary failure reading the work map could turn the entire delivery review into HTTP 500, even when the Goal's delivery and acceptance evidence was readable. The API now returns the existing partial review response for an unavailable Todo authority source. The rest of the review stays readable and refreshing after source recovery restores the work map.

Twenty-six delivery review tests and nine quick premerge checks passed. Isolated File and SQLite HTTP checks covered failure and recovery. A packaged Chat run verified the partial review and subsequent readback. The corresponding PostgreSQL failure remains unverified.

Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>

@loopx-agent loopx-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer: model_agent · gpt-6.1-sol · OpenAI · runtime_reported · reasoning_effort=max

Approval conclusion (author-owned PR; GitHub blocks formal self-approval)

评审提交 9c15d8fd659175099cde6f8a5599cc26f5812889;对照目标基线 78e936f9d1f1a00505c4026ee0a5857de95cee27。

动机 / Motivation

在 Chat 概览查看选中 Goal 的交付链、工作图和验收证据的用户。 同一请求先成功读到 Goal 状态,随后工作图的独立 Todo 权威读取失败;已经读取的交付与验收证据仍然可以展示。 基线把这次补充读取失败提升为整页 HTTP 500,尽管同一 Goal 的普通状态仍可读取。 暂时读不到工作图会让用户失去已经可读的交付与验收,直到整页重新请求成功。 当前返回 HTTP 200 的部分结果:工作图为 null 且来源标不可读,交付链和验收证据保持原值;来源恢复后,刷新读回原工作图。 已测退化和恢复的 File/SQLite 实际 HTTP、独立 wheel 与前端读取器。没有实测原生桌面渲染、运行中的 PostgreSQL 或托管 CI。

改动思路 / Approach

Todo 权威拥有工作图来源事实;Chat 接口标明这一来源缺失,前端沿现有合同展示已有的证据和刷新入口。 在独立工作图读取处处理现有的权威异常,复用部分结果投影。无需用缓存代替已有来源或新增状态。 主状态成功后才继续;工作图缺失时沿原路径标不可读,恢复后重新读取。两种情况都不写回 Goal。

具体改动 / Changes

关键代码讲解

_goal_task_map 只多接一种 Todo 权威不可用异常,保留原来返回 null 的路径。 _status 继续把来源标成 goal_todos / unreadable,并明确 3 项应有来源只读到了 2 项。 parseDeliveryReview 已能读取这一 nullable 形状并核对 Goal;现有前端显示工作图不可用的刷新入口。 test_http_review_keeps_status_evidence_when_the_second_authority_read_fails 实查隔离的权威选择,在两种 provider 上恢复前后核对原节点。另增加一条故障诊断参考,仅在这一症状出现时指导核对。3 个文件,+62/-1。工作图异常边界 部分快照 客户端读回 既有修复参考

基线 docs/architecture/rfcs/goal-workspace-surface-v0.md 的现有约束:retain-verified-regions 已验证;unreadable-map-is-partial 已验证;retain-scope-and-read-only 已验证。基线验收依据

对主干的风险 / Risks

File 和 SQLite 的同输入对照中,应用候选前只有工作图失败也会返回 500;候选只缺工作图,交付链、验收读回逐字段一致,恢复后原节点回来。独立 wheel 启动真实 Chat,读取包的静态入口与脚本,再通过真实 HTTP 与产品解析器确认同一失败、警告及恢复。原 provider revision、Todo、运行索引及 Goal 文档不变。完整来源失败、外国 Origin、不同 Goal 与不安全输出继续拒绝。

语义与 CI 对齐

26 项交付评审测试、Standard 的 8 项选中检查及 4 项差异/格式检查通过。实际 wheel 的两组恢复响应均用产品解析器验证,原有覆盖/导出 smoke 通过。 已测退化和恢复的 File/SQLite 实际 HTTP、独立 wheel 与前端读取器。没有实测原生桌面渲染、运行中的 PostgreSQL 或托管 CI。

我的整体评价 / Verdict

批准当前提交。局部来源失败可按原合同恢复,其他独立证据仍可查,而且完整来源失败及跨范围请求仍被拒绝。 合并与正式运行采用仍须按仓库权限和发布流程另行核对。

English verdict: APPROVE at 9c15d8f. Delivery review keeps the graph and acceptance when only its Todo map fails, shows partial source coverage, and refreshes normally once the map recovers.

@loopx-agent
loopx-agent merged commit 9790111 into main Nov 14, 2026
41 of 47 checks passed
@loopx-agent
loopx-agent deleted the codex/audit-chat-delivery-map-pr-20261114 branch November 14, 2026 09:37
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