Skip to content

Keep healthy global Todos visible when a Goal status check fails - #8865

Merged
loopx-agent merged 1 commit into
mainfrom
codex/global-todos-scoped-health-20261116
Nov 16, 2026
Merged

loopx-agent merged 1 commit into
mainfrom
codex/global-todos-scoped-health-20261116

Conversation

@loopx-agent

Copy link
Copy Markdown
Collaborator

Goal And Delivered Outcome

loopx global-todos can discard every healthy Goal when the status read reports a contract failure scoped to a single registered Goal. A stopped, unmigrated Goal reproduces this through the ordinary global registry. The status queue also contains a synthetic contract alert, which has no Goal quota of its own.

The global Todo adapter checks the typed status diagnostics and registry membership from the same observation. It preserves healthy registered lanes, attributes unavailable coverage to the affected Goals, and keeps the envelope incomplete while any registered scope is omitted. The quota owner continues to supply each displayed lane's eligibility. Registry-wide or unverifiable failures return unavailable with zero quota calls.

Author Declaration

  • Written by a model agent using OpenAI Codex.
  • Implemented against the existing source-read contract at cac86bbad92ba99c3430b3f7eaa9632727573821. Global manager source reads
Criterion Disposition Evidence
Keep healthy lanes and report source failure while coverage is incomplete Implemented Real CLI against mixed legacy and SQLite Goals, including a stopped Goal and the synthetic alert.
Reuse one status read and scope quota to observed registered Goals Implemented Typed diagnostics, registered history rows and existing quota builder.
Report unresolved registry or unverified scope as unavailable Implemented Registry failure, mixed global diagnostics and unknown-Goal cases each run zero quota calls.
Require explicit cold import for the missing canonical store Implemented The packaged rehearsal reaches complete coverage only after reviewed imports using the existing transaction. It reads back the original Stop.

Scope And Continuation

This change repairs the existing CLI and slash-command projection through their shared renderer and source adapter. The owner can address each unavailable Goal through its existing recovery procedure. Hosted CI and independent review are pending.

Validation

  • Tested revision bb59d1827bf13ac4bf5bec6ae0f2232a96e98dc9
  • Run state finished for the local checks below
  • Input classes synthetic and public_fixture
Check kind Result Public-safe evidence
regression_parity passed The real CLI regression exits unavailable on the immutable base and keeps the healthy lane on the candidate. Existing non-archive characterization outputs pass.
real_entrypoint passed The built wheel's JSON and Markdown commands identify the unavailable Goals and keep the healthy rows. The eight-Goal rehearsal progressed from 6/8 to 7/8 to 8/8 through the existing reviewed SQLite import.
real_backend passed Isolated SQLite stores read the original Stop and seven healthy quota scopes at full coverage. Registry and source bytes match their starting witnesses.
integration passed 57 focused manager, status, Todo and unmigrated-source cases.
regression_parity failed Two historical archive comparisons exit unavailable at the same assertion on both the verified base and candidate, for File and SQLite. The packaged rehearsal separately compares current base and candidate at fully recovered scope.
static passed Ruff, DCO and standard premerge with six direct and five selected checks.

Frontend / Visual Evidence

The affected first result is the existing text-based global-todos response. In the packaged Markdown check, the projection reports incomplete coverage and names both affected Goals while the healthy rows remain visible.

Type of Change

  • Bug fix
  • Test update

LoopX Area

  • Control plane
  • Presentation surface

Boundary Checklist

  • Public-safe diff, body and synthetic validation
  • Checked RFC pairing against the PR base
  • DCO sign-off

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)

评审提交 bb59d18,对照目标 cac86bb。

动机 / Motivation

跨 Goal 查看待办的用户,需要在一个旧 Goal 无法读取时继续看到其他 Goal 的可执行工作。 同一份包含健康 Goal 和已停止旧 Goal 的注册表,主干命令整体返回不可用,候选保留健康 Todo 并标出缺失范围。 File 和 SQLite 的真实 CLI 对照均读回健康任务,缺失 Goal 以警告和不完整覆盖呈现。 本次范围是既有 global-todos 及共享文本投影。实际安装采用和大型注册表成本仍待验证。

改动思路 / Approach

状态诊断和注册范围来自同一次 status 观察,逐 Agent 的资格继续由 quota owner 提供。投影层只缩小可核实的读取范围并保留缺失事实。 保留现有 manager adapter 和渲染入口,修复局部来源失败导致的全局不可用。 在普通入口中,status 对一个已停止但尚未导入的 Goal 报出 canonical source 错误,同时加入合成提醒。候选先核对诊断和登记范围,随后只向可核实的 Goal 请求 quota。未登记目标、全局错误和注册表不可用仍返回 unavailable。恢复缺失来源继续使用原有显式导入流程。

具体改动 / Changes

关键代码讲解

  • _scoped_status_failure 复用既有结构化诊断,核对错误列表、全局错误和同次观察里的 registry_member。范围无法证明时保留原拒绝路径。诊断与范围
  • _queue_goal_ids 在扫描前排除合成提醒和失败 Goal,保留现有 scan limit。测试中的健康 Goal 只有一次 quota 读取。读取目标
  • build_global_todos 把故障数量和来源放入 warnings 与 envelope。独立十项故障样本只展示八条警告,总数仍为十,覆盖为 1/11 且不完整。实际 Markdown 先显示红色覆盖提示,再显示健康 Todo 和失败来源。主入口与结果

规格 docs/reference/protocols/global-manager-command-v0.md。retain-healthy-lanes 由相同 SQLite 场景的 base 失败、head 通过以及 File 复验支持。typed-scope-and-read-budget 覆盖三种不可核实故障的零 quota 调用和单一健康读取。honest-coverage 覆盖警告上限、完整故障数与实际文本读回。

对主干的风险 / Risks

主要风险是局部失败被错误理解为全局健康,或合成提醒成为额外 Goal。当前真实入口与边界检查保留了失败来源和不完整覆盖,未发现这类回归。34 项定向检查与本地四项直接、五项选中预合并检查通过。两项历史 archive 比较在基线和候选均失败,失败位于测试先运行的固定 d4aaaae archive,尚未进入待比较的当前树。此处保留原失败。其余同组 16 项通过。archive 比较顺序

语义与 CI 对齐

复用原诊断与投影 vocabulary,通过 quota owner 保持逐 Agent 资格。未新增执行授权或持久状态。托管 CI 未查询,两个 archive 失败的后续维护与本项改动分别记录。

我的整体评价 / Verdict

可批准。局部来源失败时,用户能继续判断其他 Goal 的工作,长程接续和文字结果的可读性得到改善。架构沿用原状态、quota 和投影 owner,改动范围与已复现问题相称。这是既有 CLI 和 slash-command 文本响应。已读回实际 Markdown 的健康任务、来源警告与覆盖范围,diff 没有改变可视页面。 实际安装版与大型注册表的时延未验证。两个固定历史 archive 比较仍在基线和候选中失败。

English verdict: APPROVE at bb59d18. Real File/SQLite reads retain healthy work and incomplete coverage. Global or unverifiable failures stay closed. The two fixed-archive failures also occur on the immutable base.

@loopx-agent
loopx-agent merged commit 02cc338 into main Nov 16, 2026
37 of 46 checks passed
@loopx-agent
loopx-agent deleted the codex/global-todos-scoped-health-20261116 branch November 16, 2026 12:48
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