Repository navigation
Conversation
Signed-off-by: aihop <[email protected]>
Codex Review Summary: ✅ CompletedThis 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. |
Signed-off-by: aihop <[email protected]>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
[P2] 五页耗尽会压住已核验的独立信号。 配置了 GitHub 仓库的信号 Monitor 遇到超过 100 个开放 PR 的仓库。五个 20 项页面都返回 hasNextPage=true。 仓库触发上限时,每次轮询都会进入现有恢复分支。监控窗口不变时,它无法通过再次读取恢复,独立委托和 Goal 变化可能都无法唤起后续处理。 保留末页校验,给持续超限的仓库一个有界的完整读取路径,或用现有信号 owner 隔离仓库失败,让已独立验证的 Inbox/Portfolio 变化继续产生后续任务,同时保留上次完整的仓库状态。 保留第五页刚好终止、损坏元数据和游标循环测试,新增六页仓库和一个已验证的新委托,断言不从截断清单判定 PR 消失,且独立 Inbox 信号仍能形成后续任务。 分页上限 收集与重试
动机 / Motivation
使用 Steward 同时跟踪 GitHub PR、待处理委托或 Goal 变化的操作者。 旧采集器读满五页就返回已读的清单。GitHub 仍有下一页时,清单可能因列表排序变化而丢失条目,造成虚假的 PR 变化。 用 loopx-project/loopx 当时的五页真实 GraphQL 响应复放,基线返回 100 项。 新头返回 unavailable,保留上次快照的 hash。把同一个新增委托代入真实 Core,基线能检测到它,新头标记 observation_incomplete、不给出 material_change,只监控委托时仍能检测到它。 PR 不再用截断清单推断删除。持续超过 100 个开放 PR 时,绑了该仓库的组合 Monitor 也会停止发布其他已完整读取的信号。 验证覆盖真实公开仓库响应、同响应复放和本地 Core。Lean 模型做了源码核对,运行结果和远端 CI 未复验。 GitHub GraphQL 分页
改动思路 / Approach
接受明确的 hasNextPage=false。继续页要求非空且没有出现过的 cursor,预算耗尽或元数据无效由现有 unavailable 返回。 GitHub collector 判断分页是否完备。Core 依据仓库、Portfolio、Inbox 计算观察结果。collect_signal_monitor 负责快照和后续任务。 第五页明确结束时仍返回完整清单,异常响应、游标循环和身份无效的 PR 节点会阻止发布。节点校验消除了另一处缺项误报。这个判断纠正了截断时的误报。组合监控的失败出口也需要区分仓库数据不足与其它来源的已验证变化。
具体改动 / Changes
精确提交 80cab8f0b9f9ddb3c8e22a19e36ad86fd9b785f8 对照 509360fb0d3e9e6e578ddf5c12db587886016b23。3 个文件增加 261 行、删除 11 行。生产代码在上一提交的末页和循环检查上补齐 row identity 校验,要求每个节点都带正整数 PR 编号。Python 回归覆盖第五页、坏元数据、游标循环、空或非整数编号和合法空列表。Lean 模型增加节点身份验证,未建模组合信号。 explicit-terminal 已覆盖末页判断,valid-row-identity 已覆盖无效节点。 independent-inbox 在组合 Monitor 上复验失败。
observe_github_repository_prs核对末页和游标。完整时沿现有路径汇总 PR,预算耗尽时从函数返回 unavailable。 采集器observeStewardSignalMonitor在组合其它信号之前处理仓库 unavailable,并保留先前的 hash。 Corecollect_signal_monitor对 incomplete 抛出暂时不可用,发生在保存快照与生成后续任务之前。 调用方
对主干的风险 / Risks
分页和 Steward monitor 合同的 40 项 Python 测试通过。19 项 Core 测试通过,覆盖正常、不可用和未启用仓库观察等路径。 在真实 GitHub 返回的五页各 20 项上,当前逻辑对每页都看到了继续标记。把采集结果与同一合成 Inbox 事件一起交给 Core 复放,复现了同 Tick 的独立信号被压住。没有配置仓库的观察仍能发出该事件。这个影响来自实际 collector 与 Core 路径,Lean 模型的分页结论与之相容。
我的整体评价 / Verdict
保留严格的末页判断。补齐超限仓库的有界恢复,或让组合 Monitor 保留上次完整仓库快照并单独处理已核验的其它来源,再用上述复合输入跑回归。改动触及后台采集、Core 信号和后续任务条件,未改 App 或 Lark 的页面渲染。
English verdict: REQUEST_CHANGES at 80cab8f. The terminal-page guard prevents false removals, but a real five-page GitHub cap stalled independent inbox observation in the existing composite monitor. Forty Python and nineteen Core tests passed, and matched wire replay reproduced the availability regression.
Signed-off-by: aihop <[email protected]>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
[P2] 五页耗尽仍会压住已核验的独立信号。 配置了 GitHub 仓库的信号 Monitor 遇到超过 100 个开放 PR 的仓库。五个 20 项页面都返回 hasNextPage=true。 仓库触发上限时,每次轮询都会进入现有恢复分支。监控窗口不变时,它无法通过再次读取恢复,独立委托和 Goal 变化可能都无法唤起后续处理。 保留末页校验,给持续超限的仓库一个有界的完整读取路径,或用现有信号 owner 隔离仓库失败,让已独立验证的 Inbox/Portfolio 变化继续产生后续任务,同时保留上次完整的仓库状态。 保留第五页刚好终止、损坏元数据和游标循环测试,新增六页仓库和一个已验证的新委托,断言不从截断清单判定 PR 消失,且独立 Inbox 信号仍能形成后续任务。 分页上限 收集与重试 上一轮评审
动机 / Motivation
使用 Steward 同时跟踪 GitHub PR、待处理委托或 Goal 变化的操作者。 旧采集器读满五页就返回已读的清单。GitHub 仍有下一页时,清单可能因列表排序变化而丢失条目,造成虚假的 PR 变化。 用 loopx-project/loopx 的五页真实 GraphQL 响应复放。五页均报告 111 个开放 PR 和下一页,基线仍返回前 100 项。 新头返回 unavailable,保留上次快照的 hash。把同一个新增委托代入真实 Core,基线能检测到它,新头标记 observation_incomplete、不给出 material_change,只监控委托时仍能检测到它。 PR 不再用截断清单推断删除。持续超过 100 个开放 PR 时,绑了该仓库的组合 Monitor 也会停止发布其他已完整读取的信号。 验证覆盖真实公开仓库响应、同响应复放和本地 Core。Lean 模型做了源码核对,运行结果和远端 CI 未复验。 GitHub GraphQL 分页 PullRequestConnection 字段
改动思路 / Approach
接受明确的 hasNextPage=false。继续页要求非空且没有出现过的 cursor。末页验证去重后的 PR 数量与各页一致的 totalCount 相同,预算耗尽或元数据无效由现有 unavailable 返回。 GitHub collector 判断分页是否完备。Core 依据仓库、Portfolio、Inbox 计算观察结果。collect_signal_monitor 负责快照和后续任务。 第五页明确结束时仍返回完整清单,异常响应、游标循环和身份无效的 PR 节点会阻止发布。新增的总数检查也能识别去重后的数量不足,避免把分页重叠导致的缺项当成删除。这个判断纠正了截断时的误报。组合监控的失败出口也需要区分仓库数据不足与其它来源的已验证变化。
具体改动 / Changes
精确提交 f04c236a00b1be72c0a0968f87fc437dfe6f21cb 对照 509360fb0d3e9e6e578ddf5c12db587886016b23。3 个文件增加 398 行、删除 14 行。最新一轮给现有 GraphQL 查询添加 totalCount,要求各页总数一致、去重后实际数量与总数相等。生产代码仍校验页尾、游标和正整数 PR 编号。Python 和 Lean 扩展了重复项、计数漂移及零条目的例子。Lean 不包含组合信号处理。 explicit-terminal 已覆盖末页判断,valid-row-identity 已覆盖无效节点,stable-total-coverage 已覆盖总数和去重后数量校验。 independent-inbox 在组合 Monitor 上复验失败。
observe_github_repository_prs核对末页和游标。完整时沿现有路径汇总 PR,预算耗尽时从函数返回 unavailable。 采集器observeStewardSignalMonitor在组合其它信号之前处理仓库 unavailable,并保留先前的 hash。 Corecollect_signal_monitor对 incomplete 抛出暂时不可用,发生在保存快照与生成后续任务之前。 调用方
对主干的风险 / Risks
分页和 Steward monitor 合同的 50 项 Python 测试通过。19 项 Core 测试通过,覆盖正常、不可用和未启用仓库观察等路径。 真实 GitHub 返回的五页各有 20 项,五页均报告 111 个开放 PR 和后续页。把两版采集结果与同一合成 Inbox 事件分别交给 Core,当前提交仍抑制完整的独立信号。没有配置仓库的观察仍能发出该事件。本地对照只放宽测试进程的页面预算,读取的第六页返回剩余 11 项并明确终止。核齐 111 项后,同一 Core 恢复检测这条委托;固定六页只是该输入的复验边界。
我的整体评价 / Verdict
保留严格的末页判断。补齐超限仓库的有界恢复,或让组合 Monitor 保留上次完整仓库快照并单独处理已核验的其它来源,再用上述复合输入跑回归。改动触及后台采集、Core 信号和后续任务条件,未改 App 或 Lark 的页面渲染。
English verdict: REQUEST_CHANGES at f04c236. The new totalCount check catches missing distinct PRs. It still stalls independent inbox observation when a live repository exceeds the five-page cap. Fifty Python and nineteen Core tests passed, and matched wire replay reproduced the availability regression.
Signed-off-by: aihop <[email protected]>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
动机 / Motivation
使用 Steward 同时监控开放 PR 和待处理委托的操作者。 主干在第五页后可能发布 100 个 PR 的截断清单。上一候选已拒绝截断清单,但五页各 20 项仍不足,使整个组合监控无法检测到新的委托。 固定响应成员后,主干误报 100 项完整,上一提交返回 unavailable,Core 留下原 hash,也跳过已核验的委托。 当前提交用五次真实 GitHub GraphQL 查询核齐 111 项。用同样的 111 项和同一个合成新委托复放,Core 恢复识别实质变化,空变更对照也没有触发。 组合监控能继续处理完整列表和独立委托。100 项普通清单的五页请求和产出与基线完全一致。 上限现在是 120 项。121 项在第一次读取后报告 unavailable。实际 provider 复验关闭评论补读。补读预算经合成 provider 测试验证,Lean 和远端 CI 未独立执行。 GitHub GraphQL 分页依据
改动思路 / Approach
先读取 20 项。总数 101–120 时后续页请求 25 项;其余保留旧尺寸。仍须读到明确末页、校验节点、稳定总数与去重覆盖。评论补读通过同一调用链消耗有限余额。 collector 持有范围明确的 GitHub 读预算和完备性判断。现有 Core 决定组合信号,Host 持久化快照和后续任务。 这种扩页能覆盖当前实际仓库,普通仓库仍按五页各 20 项读取。额外评论的最坏读取次数保留原上限。 GitHub 查询限制
具体改动 / Changes
精确提交 9f4df8aaf026df11f98adfb63a2af1e9460ccdb8 对照 509360fb0d3e9e6e578ddf5c12db587886016b23,上一评审提交为 f04c236a00b1be72c0a0968f87fc437dfe6f21cb。3 个文件,增加 574 行,删除 28 行。Python collector 持有生产变化,回归覆盖 100、101、120、121 边界、异常输入和 300 次补读。Lean 模型说明分页和补读额度,模型没有实际 Core 或 HTTP 的运行环境。 terminal-and-count、bounded-111-recovery 和 comment-coverage-budget 已核验。
observe_github_repository_prs验证真实列表,实测页长为 20、25、25、25、16。 采集_backfill_pr_comments_if_needed把每次尝试记入同一轮的余额。耗尽后保留缺少证据的原标识。 补读observeStewardSignalMonitor继续使用原信号合同。同一完整仓库和一个新委托令 Core 产生变化,空变更继续保留相同 hash。 Core
对主干的风险 / Risks
121 项仍保留上次 verified hash。未到末页、游标循环、总数漂移、ID 缺失或去重后数量不足,均从原 unavailable 路径返回。 55 项 Python、19 项 Core 测试通过。完成 Git diff --check。评论补读仍限每 PR 三次、全局 300 次。101 项补读饱和夹具记录恰好 300 次,第 101 项保留 coverage incomplete,Core 仍按相关监控范围拒绝不完整证据。 实测五次请求合计 29.4 秒,单次最长 7.7 秒。该样本没有测限额点数,也未做时延基准。 固定成员回放确认 100 项结果逐字段保持。111 项到达真正末页并恢复 Core,对坏元数据和未终止快照继续保守处理。超过 120 的组合监控仍会进入原不可用路径,其容量边界已在提案写明。
我的整体评价 / Verdict
APPROVE。 本轮复验未发现新的阻塞项。上一轮实际仓库的 111 项阻塞已消除。真实请求与同源复放都确认完整清单可用,独立委托得以触发。上限与不完整证据保持明确。检查了采集、Core 和 Host 收集路径。此次变更没有 App 或 Lark 界面渲染改动。 上一轮发现
English verdict: APPROVE at 9f4df8a. Five real GitHub requests now cover all 111 open PRs, and the same composite monitor recognizes an independent inbox change. Ordinary 100-item results and comment backfill bounds were verified.
Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
动机 / Motivation
使用 Steward 按停滞年龄、作者和评审条件观察开放 PR 的操作者。 上一提交把列表与评论放在一个 100 秒窗口里,但按仓库 PR 编号补读。窄范围监控的最后一次读取可能被一个排除的 PR 消耗。 同样先花 95 秒读五页,上一提交把余下 5 秒用在范围外的 PR,范围内 PR 评论不全,Core 留下原 hash。 当前提交用一次本地 Core 规划,把 5 秒留给符合范围的 PR。及时证据触发 material_change,迟到仍保留原 hash。六组共享预算对照逐字节相同,无年龄过滤也保持无补读、无额外规划。 回放同一公开 GitHub 五页响应,完整读取 112 项。真实 Host 收集入口连接 Core 后,在同一限额内得到范围内的评论证据。 真实 GitHub 响应采集于上一提交,当前精确提交复放相同响应。范围与晚到的复验使用合成时钟和 provider,Node 调用实际 Core。Lean 模型和远端 CI 未独立执行。 Python 子进程时限
改动思路 / Approach
列表与补读继续使用单一 monotonic deadline。已经配置年龄限制时,Host 批量送未覆盖项给原 Core 筛选门,按其选出的编号在剩余窗口读评论,最终观察仍独立查验覆盖。 GitHub collector 持有查询预算和覆盖状态。Host 把已有源范围传给只读 Core。原 Core 决定需要的覆盖与 material_change,Host 继续持久化快照。 含未知覆盖的匹配者仍可能满足年龄条件,因此列表大小之外不额外猜测年龄资格。 GitHub 分页合同
具体改动 / Changes
精确提交 0cce87a4b5801d5189326d4cb58407f652f09cdb 对照目标基线 509360fb0d3e9e6e578ddf5c12db587886016b23 及上一候选 d8a18669ce540e72ebd8697c7df3fc2a09714e3b。8 个文件,增加 873 行、删除 54 行。上一提交加入共享预算。当前提交增加 Host 调用、Core 同源选择及本地 effect handler。回归覆盖时间、范围、覆盖门和关闭补读,Lean 建模预算与分支。 shared-request-deadline、scoped-backfill、bounded-page-parity 已核验。
observe_github_repository_prs保留有限时间和完成性判断,只补读计划选中的未覆盖项。 采集_read_repository_snapshot在存在年龄条件、候选和剩余预算时发出只读规划调用。无年龄条件无额外调用。 Host 收集planStewardSignalCommentBackfill与最终 Core 观察共用原覆盖门。草稿、冲突、评审和作者筛选优先于评论读取。 Core
对主干的风险 / Risks
仍拒绝超时列表、损坏页和不完整快照。若已选范围内 PR 的补读迟到,完整 GitHub 清单保持,Core 保留上次 hash。 59 项 Python 测试、24 项 TypeScript 测试、Control Plane 类型检查与 git diff --check 通过。 固定输入对照中,上一提交请求范围外编号,当前请求范围内编号,均只拿到 5 秒。正常提交能推进,迟到匹配证据保持原状态。列表原始响应复放仍是 112 项,时间相关六组输出在另一个配对中完全相同。
我的整体评价 / Verdict
APPROVE。 当前提交未发现阻塞项。范围内的可用评论能在原预算内出现在 Core,旧的证据缺口与不可用路径仍可观察。检查采集、Core 与 Host 持久化路径,本次没有 App 或 Lark 页面渲染变化。
English verdict: APPROVE at 0cce87a. The scoped Core plan spends the remaining five seconds on the matching PR, preserves the prior signal when that evidence is late, and keeps all 112 PRs in the matched list replay.
Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
动机 / Motivation
Steward 的范围监控允许操作者按作者和停滞年龄筛选开放 PR。 上一提交会把范围内未覆盖评论放进补读计划,即使已知窗口结束时仍未满阈值。这样的 PR 可消耗最后一个请求,导致真正达到阈值的 PR 缺少评论证据。 同作者的两条 PR 只差 1 毫秒,前五页耗时 95 秒。上一提交把剩余 5 秒用于尚未到龄的一条,阈值恰好满足的另一条证据不齐,保留原 hash。 当前提交只选能在剩余窗口达到阈值的一条,及时返回时将它计入 24h_to_72h。只有尚未到龄的 PR 时,无须补读也能完成观察。 精确提交真实 GitHub 五页共读回 113 项,上一提交回放同一报文返回等同结果。实际 Host 与 Core 用同一受控时钟复验跨阈值和失败链。 年龄与边界复验使用合成时钟及 provider,调用实际 Host 和 Core。Lean 与远端 CI 未独立执行。配对复跑 scoped monitor 的 precommit-retry 用例,两版均通过。作者报告的扩展套件失败未作为通过证据。 已发布的 Steward 范围监控说明
改动思路 / Approach
Core 先判断已知年龄及作者回复能否绕过阈值,再决定是否要求评论覆盖。Host 将共享 monotonic 窗口余量投影为规划的 UTC 上界,最终观察沿用真实 UTC。 GitHub collector 持有只读查询和共享时限。Host 跨时钟域传递规划上界,原 Core 规则同时决定规划和最终观察。 保留原 scope 和 Core 判断,仅调整证据需求顺序。如按规划时刻直接过滤,会漏掉同一窗口末端达到阈值的行。
具体改动 / Changes
精确提交 a49054cbec061ccf790cba2672c19d8b7c935655。对照目标基线 509360fb0d3e9e6e578ddf5c12db587886016b23 和上次复核的 0cce87a4b5801d5189326d4cb58407f652f09cdb。相对目标基线改动 8 文件,增 986 行、减 59 行。当前增量复用私有 callback,把读窗口剩余时间传给 Host,再把已知未到龄排除移到原 Core 覆盖判断之前。测试覆盖精确阈值、无效时间、回复绕过和窗口内跨阈值。 核对了 threshold-coverage、within-window-threshold 和 bounded-list-parity。
observe_github_repository_prs在原截止时间内把剩余秒数交给补读选择器。真实 GitHub 五页分页为 20、25、25、25、18 项。 GitHub 采集_read_repository_snapshot根据余量计算规划截止时刻。配对复验显示,在相同 95 秒列表后,当前只给恰好到龄的 PR 发出一个 5 秒请求。 HostfilterScopedRepositoryItems在允许作者回复绕过年龄的范围中仍要求评论覆盖。最终观察用实际时间,未知时间不能跳过检查。 Core
对主干的风险 / Risks
读取超过截止时间或墙钟前跳使年龄超出规划时,所需评论仍不完整,Core 保留旧 hash。外部作者回复仍能绕过年龄,关闭年龄筛选仍无补读或规划。 清单数量一致仍无法排除分页间发生同数量的成员置换。59 项定向 Python 测试、56 项 Node 测试、Core TypeScript 类型检查、git diff --check 通过。
我的整体评价 / Verdict
APPROVE。 当前精确提交的观察结果与原规则吻合。原无年龄和回复绕过对照保持一致,完整采集仍保留有界时间和失败状态。本提案只改变监控采集和覆盖规则,既有 App/飞书显示由原观察结果驱动。
English verdict: APPROVE at a49054c. The production Host/Core pair backfills the PR that reaches the age boundary within the remaining five seconds, preserves the prior hash on incomplete evidence, and reads all 113 PRs in five provider pages.
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
[P2] 缺少初页评论连接仍会覆盖快照。 年龄条件命中,原快照中作者已回复。新响应仍返回 PR,但缺整个 comments 连接,或 nodes 为 null 且 hasPreviousPage 为 false。 缺整个连接或节点集合时,新头仍返回完整覆盖,将 awaiting_maintainer_reply 改为 24h_to_72h,覆盖原快照并生成后续待办参数。 在初页要求 comments 为 GraphQL connection 且 nodes 为可读列表,异常标记覆盖未知并保留已有 Core 门。合法空列表和能证明覆盖的锚点或回复按现有规则处理。 初页归一化
动机 / Motivation
Steward 范围监控按停滞年龄和作者回复给开放 PR 分类。 只在评论末页明确,或已有足够评论证明覆盖时发布观察结果。 上一精确提交对缺分页标志和缺连接均可能生成错误观察。当前修正了已存在连接的缺标志分支。 年龄条件命中,原快照中作者已回复。新响应仍返回 PR,但缺整个 comments 连接,或 nodes 为 null 且 hasPreviousPage 为 false。 缺整个连接或节点集合时,新头仍返回完整覆盖,将 awaiting_maintainer_reply 改为 24h_to_72h,覆盖原快照并生成后续待办参数。 现头可正确拒绝连接内缺页标志,明确终页和可独立证明覆盖的评论通过。录制的 113 项真实 GitHub 五页在现头回放一致。 异常响应由受控 provider fixture 注入,真实 Host、Core 和隔离快照执行。未观察到公开 GitHub 实时返回这些异常。Lean 和远端 CI 未独立执行。 GitHub 反向分页合同 评论连接类型
改动思路 / Approach
在现有 collector 中复用一个布尔终页和游标解析函数,保持共享窗口、年龄规划以及最后由 Core 判断覆盖。 GitHub collector 负责识别连接与可用证据,Core 负责 scope、结果 hash 与可否推进,Host 负责快照和后续待办参数。 测试从上一条作者已回复的真实持久化快照开始。伪造一次结构不完整的 provider 响应,进入生产采集器和实际 Core;对照只收紧初页连接形状,迟到或缺证据按同一原门处理。
具体改动 / Changes
精确提交 11ad88b62c5cba362c5ed1b0531ec3d60ddd07ba,目标基线 509360fb0d3e9e6e578ddf5c12db587886016b23,上一精确头 a49054cbec061ccf790cba2672c19d8b7c935655。当前完整差异 8 文件,增 1127 行、减 72 行。自上次评审增量包含初页与历史评论页的明确终止校验、Lean 断言及九个回归。 依次验证 comment-contract、retain-verified-snapshot 和 real-list-parity。
- 初页和更早页共用
_graphql_comment_page_info。连接存在但无合法结束标志时,现头会保留覆盖缺口。 终页检查 - 字段缺失、为 null,或连接的
nodes不可读时,首个连接仍绕过该证明。 采集边界 - 历史页读到锚点时可独立证明范围。最终快照和 follow-up 参数仍由原 Host/Core 路径生成。 观察入口
对主干的风险 / Risks
真实 Host 把无评论结论落盘。测试中仅将初页异常形状标为未知,Core 便保留已验证的旧 hash、快照和后续任务状态。 68 项定向 Python 测试、56 项 Node 测试、Core 类型检查和 git diff --check 通过。独立连接反例仍失败。 正常列表依旧保留有界五页与共享时间窗。复核使用的坏连接是合成输入,未将可能的 provider 异常描述为线上已发生。
我的整体评价 / Verdict
REQUEST_CHANGES。 缺失的连接通过覆盖门,当前会把已确认的作者回复替换成无回复状态。这是同一评论证据边界上的漏判。在初页要求 comments 为 GraphQL connection 且 nodes 为可读列表,异常标记覆盖未知并保留已有 Core 门。合法空列表和能证明覆盖的锚点或回复按现有规则处理。
English verdict: REQUEST_CHANGES at 11ad88b. An absent or unreadable initial comment connection still looks complete, overwrites the verified snapshot and emits follow-up arguments. Keep coverage incomplete unless the connection establishes it.
Signed-off-by: aihop <[email protected]>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
[P2] 裸评论数组仍被当作已验证末页。 监控范围命中已有作者回复的 PR,初始 GraphQL 响应把 comments 作为裸数组返回。空数组和只有无关评论的数组均无 pageInfo。 两种裸数组均被标为覆盖完整,实际 Host 将 awaiting_maintainer_reply 改成 24h_to_72h,覆盖隔离测试中的上次快照并生成后续待办参数。 在生产 GraphQL 读入口要求 comments 为 connection 对象。裸数组进入既有覆盖未知路径。若需兼容已验证的 REST 列表,将其限制在有来源证明的独立入口。 初页归一化
动机 / Motivation
Steward 范围监控按停滞年龄和作者回复给开放 PR 分类。 初始评论连接具备明确末页或独立覆盖证据后,Steward 才更新停滞状态。 上一提交仍误收无连接、空数据和裸数组。新头已挡住缺字段、null 及不可读节点,裸数组分支继续把未知覆盖判为已完成。 监控范围命中已有作者回复的 PR,初始 GraphQL 响应把 comments 作为裸数组返回。空数组和只有无关评论的数组均无 pageInfo。 两种裸数组均被标为覆盖完整,实际 Host 将 awaiting_maintainer_reply 改成 24h_to_72h,覆盖隔离测试中的上次快照并生成后续待办参数。 缺连接、null 节点集合和缺少页标志均保留此前 hash,具有明确终页的空连接、可验证的回复和已读锚点通过。113 项真实 GitHub 五页在现头回放一致。 形状反例由合成 provider 注入,实际 Host、Core 和隔离快照执行。录制的真实 GitHub 响应仅用于正常路径回放。Lean 与远端 CI 未独立执行。 GitHub PullRequest 类型 评论连接字段
改动思路 / Approach
在现有 collector 先检查连接和节点,再复用终页与游标函数。Core 继续在原 scope 下判断证据能否推进。 GitHub collector 负责识别连接与可用证据,Core 负责 scope、结果 hash 与可否推进,Host 负责快照和后续待办参数。 当前设计已能拒绝几种不可读结构。实际 provider 的 PullRequest.comments 是带 pageInfo 的 connection,裸列表即使内部节点可读也不提供末页证明。两类来源需要在采集边界保留各自的覆盖含义。
具体改动 / Changes
精确提交 3b9efbd05fb4e1d93c283d129aa407c0ba0b3f48,目标基线 509360fb0d3e9e6e578ddf5c12db587886016b23,上一精确头 11ad88b62c5cba362c5ed1b0531ec3d60ddd07ba。完整差异 8 文件,增 1216 行、减 80 行。当前增量复用一个节点校验器处理初页及补读,加入九组可读性回归和 Lean 模型。 核对了 comment-contract、retain-verified-snapshot 和 real-list-parity。
_read_graphql_comment_nodes对初页和补读共用校验。缺少节点集合或时间坏掉时停止依赖该页。 节点校验_normalize_graphql_pr_node仍接受不带页信息的裸数组并设置无早页。 初页连接- 已读到锚点、作者回复及有效空末页保持正常。回放真实五页共读回 113 个 PR。 监控观察
对主干的风险 / Risks
现头用缺终页证据的裸数组更新快照。进程内仅收紧初页连接类型,两种反例均保留旧 hash 和快照,没有生成后续待办参数。 77 项定向 Python 测试、56 项 Node 测试、Core 类型检查和 git diff --check 通过。追加的裸数组反例仍失败。 合成响应验证的是防御性判断,正常五页以及原作者回复旁路继续通过。缺连接和 null 的原反例已在这个提交修复。
我的整体评价 / Verdict
REQUEST_CHANGES。 覆盖门仍将缺少页证明的初始裸数组转成已验证完成。在生产 GraphQL 读入口要求 comments 为 connection 对象。裸数组进入既有覆盖未知路径。若需兼容已验证的 REST 列表,将其限制在有来源证明的独立入口。
English verdict: REQUEST_CHANGES at 3b9efbd. A bare GraphQL comments array still bypasses the terminal proof and can overwrite a verified snapshot. Require a connection or retain incomplete coverage at the initial wire boundary.
Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
[P2] 裸评论数组仍会覆盖已验证的监控快照。 初次 GraphQL 读取收到 comments: [] 或只有无关评论的裸数组时,归一化会直接标记没有更早页。请在 GraphQL 入口要求 comments 为 connection,对缺少分页证据的输入沿用覆盖不完整的处理。 初页归一化
动机 / Motivation
Steward 用评论和评审回复判断 PR 在等谁。GitHub 的评论连接用 pageInfo 标明是否有更早页。分页证据缺失时,Steward 应保留已有观察,直到读到锚点或找到能独立确认当前状态的回复。 两种输入都把已有状态从 awaiting_maintainer_reply 改为 24h_to_72h,并生成后续待办参数。 明确的空末页、已读锚点和已确认作者回复均通过。实际 GitHub 五页的 113 条记录回放结果一致。 数组反例来自合成响应,五页回放来自正常 GitHub 观测。 GitHub PullRequest 类型 评论连接字段
改动思路 / Approach
GitHub collector 判断连接与回复证据,Core 决定能否推进,Host 写入快照并生成后续待办参数。 GitHub 的评论作者和 PR 创建者字段均可为空。本次增量沿用覆盖不完整的处理。最新回复的角色依赖评论者和 PR 创建者的已知身份。我对照了两种顺序。未知身份的回复较新时,实际观察保留原快照。可辨认的 PR 作者回复较新时,观察维持等待维护者回复的状态。PR 创建者身份缺失时,即使评论者身份已知,观察也保留原快照。 评论作者字段
具体改动 / Changes
当前提交 3b8b17dbdd8c88c815759e32d362b27e6a3bf54e,目标基线 509360fb0d3e9e6e578ddf5c12db587886016b23。上一发布评审绑定 3b9efbd05fb4e1d93c283d129aa407c0ba0b3f48。相对中间提交 3ede75d7d6ff4d4829673a36bceadd5290bfeb78,本次增量涉及 3 个文件,增 72 行、减 24 行。完整差异涉及 8 个文件,增 1421 行、减 93 行。核对了评论连接合同 comment-contract、快照保留 retain-verified-snapshot 和完整列表回放 real-list-parity。
_post_reply_role保留未知身份,最新回复的归类由 collector 传入既有 Core 覆盖判断。 回复角色- 初页和补读共用节点校验,缺连接、不可读节点和缺终页标记的现有用例通过。初页裸数组仍会绕过终页校验。 评论节点校验
- Core 在覆盖不足时拒绝更新,Host 消费该判断后保留快照。 监控观察
对主干的风险 / Risks
在隔离快照上执行了实际 Host 和 Core 路径。收紧初页 connection 类型的进程内对照保留了原快照,两种裸数组都停止生成后续待办参数。98 项定向 Python 测试、56 项 Node 测试、Core 类型检查及 git diff --check 通过。本次独立验证范围未包含 Lean 证明或远端 CI。
我的整体评价 / Verdict
REQUEST_CHANGES。 初页缺少有效分页证据时,应保留上次确认的监控状态。建议把上述裸数组与明确空末页纳入同一回归测试,断言快照与后续待办参数。
English verdict: REQUEST_CHANGES at 3b8b17d. A bare GraphQL comments array still bypasses the terminal proof and can overwrite a verified snapshot. Require a connection or retain incomplete coverage at the initial wire boundary.
Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
[P2] 裸评论数组仍会覆盖已验证的监控快照。 初次 GraphQL 读取收到 comments: [] 或只有无关评论的裸数组时,归一化会直接标记没有更早页。请在 GraphQL 入口要求 comments 为 connection,对缺少分页证据的输入沿用覆盖不完整的处理。 初页归一化
动机 / Motivation
Steward 用评论和评审回复判断 PR 在等谁。GitHub 的评论连接用 pageInfo 标明是否有更早页。分页证据缺失时,Steward 应保留已有观察,直到读到锚点或找到能独立确认当前状态的回复。 两种输入都把已有状态从 awaiting_maintainer_reply 改为 24h_to_72h,并生成后续待办参数。 明确的空末页、已读锚点和已确认作者回复均通过。实际 GitHub 五页的 113 条记录回放结果一致。 数组反例来自合成响应,五页回放来自正常 GitHub 观测。 GitHub PullRequest 类型 评论连接字段
改动思路 / Approach
GitHub collector 判断连接与回复证据,Core 决定能否推进,Host 写入快照并生成后续待办参数。 本次增量将作者筛选中的未知创建者和不可读的 PR 列表交给现有不完整观察。 我用有已验证快照的隔离测试核对了 include 和 exclude。创建者缺失时,两种筛选均保留原快照。PR 列表字段缺失、为 null 或为对象时也保留原快照。明确的空列表仍可报告 PR 移除。 作者筛选
具体改动 / Changes
当前提交 72d9dcf36ae285a16fecd5a8922fd5e5524d7a91,目标基线 509360fb0d3e9e6e578ddf5c12db587886016b23。上一发布评审绑定 3b8b17dbdd8c88c815759e32d362b27e6a3bf54e。本次增量涉及 4 个文件,增 243 行、减 9 行。完整差异涉及 8 个文件,增 1663 行、减 101 行。核对了评论连接合同 comment-contract、快照保留 retain-verified-snapshot 和完整列表回放 real-list-parity。
- Core 的
filterScopedRepositoryItems保留作者筛选未知和独立排除的差别,observeStewardSignalMonitor拒绝呈现为缺字段、null 或对象的列表。 观察入口 - 初页和补读共用节点校验,缺连接、不可读节点和缺终页标记的现有用例通过。初页裸数组仍会绕过终页校验。 评论节点校验
- Core 在覆盖不足时拒绝更新,Host 消费该判断后保留快照。 监控观察
对主干的风险 / Risks
在隔离快照上执行了实际 Host 和 Core 路径。收紧初页 connection 类型的进程内对照保留了原快照,两种裸数组都停止生成后续待办参数。98 项定向 Python 测试、59 项 Node 测试、Core 类型检查及 git diff --check 通过。手动注入 Core 边界的异常数组元素在 scoped 路径仍与有效空列表同 hash,与作者声明的范围一致。未在实际 GitHub 记录观察到此形状。本次独立验证未含 Lean 或远端 CI。
我的整体评价 / Verdict
REQUEST_CHANGES。 初页缺少有效分页证据时,应保留上次确认的监控状态。建议把上述裸数组与明确空末页纳入同一回归测试,断言快照与后续待办参数。
English verdict: REQUEST_CHANGES at 72d9dcf. A bare GraphQL comments array still bypasses the terminal proof and can overwrite a verified snapshot. Require a connection or retain incomplete coverage at the initial wire boundary.
Signed-off-by: aihop <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d5bf8933f6
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if checks_summary is not None: | ||
| if checks_summary["fail_count"] > 0: | ||
| bypassed_gates.append("FAILING_CHECKS") | ||
| if checks_summary["pending_count"] > 0: | ||
| bypassed_gates.append("PENDING_CHECKS") |
There was a problem hiding this comment.
Preserve known check gates in protected merge previews
When a PR has a failing check alongside a STALE check or a completed check with no conclusion, _summarize_checks now returns None, causing this branch to omit even the confirmed FAILING_CHECKS gate. The monitor handles this through checks_coverage_incomplete, but the shared inspect_github_pull_request caller feeds steward_pr_merge.py::pr_merge_preview, which never checks that flag and freezes the reduced gate list into the confirmation and merge receipt. Consequently, a protected merge preview can conceal a known failing check, including when the caller explicitly requests admin bypass. Preserve independently established failing/pending gates, or reject the merge preview when check coverage is incomplete.
AGENTS.md reference: AGENTS.md:L286-L289
Useful? React with 👍 / 👎.
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
[P2] 缺少提交 OID 的时间仍能错误排除停滞 PR。 以一个已进入 24 小时停滞范围的 PR 为起点。保留已验证的评审和独立的检查证据,将嵌套时间更新到最近两小时并去掉提交 OID。现头把该时间当成当前头,范围从 [42] 变为空,覆写快照并生成后续待办。明确是其他 OID 的对照仍保留该 PR,匹配当前头的近期记录则正常排除。请为嵌套时间要求当前头身份;身份不足时保留上次结论或沿用已经独立确认的时间证据。 提交时间
[P2] 仓库评审覆盖不足会压住独立 Inbox 来件。 同一条来件在仓库覆盖完整时更新快照并生成后续待办。仓库缺少可用评审游标时,Host 保存原快照,已验证的 Inbox 来件也停住。请在仓库暂不可验证时保存其上次结果,让独立 Inbox 来源沿原路径推进。 Core 观察
[P2] 初页评论裸数组会抹去已验证的作者回复。 有效回复的快照遇到裸空数组后改为 24h_to_72h,并生成后续待办。应要求可读评论连接及分页信息。固定输入对照保留了原快照,明确空末页与有效回复继续按原行为运行。 评论初页
动机 / Motivation
使用 Steward 范围监控的维护者需要可信的仓库和来件变化。上一提交会把状态不明的检查写为零失败。现头在状态不明时保留原快照,也继续拒绝截断窗口。已知失败、待定和明确空结果继续按原语义写回,状态不明时不抹去已有失败。公开长评审记录使用实际 GitHub GraphQL 请求。漂移、来件和评论异常使用固定输入,经实际 Host、Core 和本地快照验证。Lean 与远端 CI 未独立运行。 Steward 观察契约
改动思路 / Approach
GitHub 采集器持有分页及证据,Core 判断范围,Host 写快照和后续待办参数。沿用每次补读,在同一响应按游标重新读取所有已消费的页,任一版本读回变化或缺失就进入覆盖不足路径。第三次补读最多返回 80 条评审,原请求数和截止时间保持。嵌套检查沿用头 OID 和分页绑定。汇总检查时,每一行需要可判定结果。具备完整证据的来源继续沿原入口推进。复用覆盖不足路径,并保留独立来源推进,可缩小修复范围。
具体改动 / Changes
精确提交 d5bf8933f6620752eb7e6958e09ef6ddec3e304f,基线 509360fb0d3e9e6e578ddf5c12db587886016b23。完整差异 8 个文件增 3641 行、减 221 行。相对 b071dc3db45cc7a6611805b06bb3f0c43fe8c1a8,3 个文件增 105 行、减 5 行。
关键代码讲解
_summarize_checks的check-status-interpretation已验证,STALE、已完成却无结论以及未知状态均保留快照。待定和明确失败对照通过。head-check-coverage与head-check-identity继续拒绝截断和不匹配的提交检查。时间证据的head-clock-identity仍缺保障。_backfill_pr_reviews的complete-initial-window与review-page-coherence均已验证。每次读取旧页均核对首窗与已读旧页。41 条稳定评审的结果一致。状态、正文变化和缺少中间页读回的三组输入均保留原快照字节与 hash,后续待办参数为空。更早的 42cd1d1 在状态漂移时错误移除 PR。- 现头真实 GraphQL 读取恢复了 #8843 的 53 条评审和 #9508 的 28 条。#8843 第二次补读包含前一次中间页的别名,两次响应的页内容一致。
observeStewardSignalMonitor的independent-inbox-progress和_normalize_graphql_pr_node的initial-comment-connection仍需补齐上述两个反例。组合来源复用同一个已验证的 Inbox 事件,评论回放对照使用同一个先前有效回复快照。
对主干的风险 / Risks
175 项 Python、62 项 Node、Core 类型检查及差异检查通过。实际 GitHub 样本覆盖一致的中间页。漂移、评论异常和复合来源的负例来自受控输入。
语义与 CI 对齐
对缺失和变化的已读旧页验证快照和后续待办参数。核对检查结论不明时保留已验证结果,嵌套时间与当前提交对应,独立来件可推进,以及初页评论必须携带分页证据。
我的整体评价 / Verdict
REQUEST_CHANGES。 已验证状态不明确时保留失败观察。缺 OID 的提交时间仍会误移停滞 PR,独立 Inbox 与评论初页两个缺口也仍可复现。请用固定对照核对快照和后续待办参数。
English verdict: REQUEST_CHANGES at d5bf893. Consumed review windows are revalidated, including a live multi-page read. Indeterminate check outcomes now preserve the snapshot. An unbound nested commit timestamp can still remove a stalled PR. Incomplete repository evidence can suppress Inbox progress, and bare comments can overwrite a verified snapshot.
…eward-head-clock Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
Request changes conclusion
- [P2] 仓库证据不全时仍收到独立核实的新 Inbox。 检查归属错误或评审页截断时,旧仓库快照保留,但已独立验证的新 Inbox 没有写入,也无后继。完整仓库证据对照交付同一 Inbox 并生成后继。 源码
- [P2] GraphQL 首屏评论的连接形状缺失。 首屏 comments 是裸数组 [] 时,候选把它当成终页完整连接,把已有作者回复从 awaiting_maintainer_reply 改为 24h_to_72h 并生成后继。只有合法空连接才证明没有回复。 源码
动机 / Motivation
Steward 组合监控向维护者交付仓库变化和 Inbox 事项。 上一头接受缺少 OID 的嵌套提交时间,错误排除已停滞的 PR。 独立配对回放缺 OID、同头和异头的嵌套时间,并核对评审分页、检查状态、首屏评论和 Inbox。 缺 OID 的时间不再移除停滞 PR。独立 Inbox 和首屏结构仍可引起错误交付。 验证采用合成 GitHub/Inbox 结果,实际运行 Python provider、TypeScript Core 和持久快照。 独立复审未覆盖线上竞态、真实 GitHub 检查状态分布、Lean 和完整 canary。
改动思路 / Approach
在既有 GitHub 查询结果上核验嵌套提交身份。无法证明归属且会改变结果的时间进入现有不可核实分支。 provider 校验证据,Core 判断范围及变化,Host 写入快照和后继参数。 持久状态及后继必须受相应来源的已验证证据支撑。 中间评审页重读仍遵循请求数和期限上限。
具体改动 / Changes
精确提交 26bd7d9。目标基线 63c7c48,复审对照 d5bf893。8 个文件,增加 3,852 行、删除 244 行。评审条件 consumed-review-readback、checks-window-coverage、independent-inbox-progress、first-comment-coverage、nested-commit-clock-identity、check-state-coverage。 原始契约
关键代码讲解
- _read_graphql_check_contexts。校验节点总数、终页和唯一 ID。 源码
- _summarize_checks。统计已通过、失败和待完成的检查。 源码
- _normalize_graphql_pr_node。识别首屏评论的连接和分页形状。 源码
- _backfill_pr_reviews。重读已消费的评审页并拒绝漂移。 源码
- _summarize_request_changes_stall。只用绑定当前 head 的嵌套时间重置停滞锚点。 源码
- observeStewardSignalMonitor。组合范围遇到未核实的仓库证据时停止归约。 源码
- collect_signal_monitor。保存监控归约后的快照并生成后继参数。 源码
对主干的风险 / Risks
缺 OID 的嵌套近期提交时间现保留原快照字节和停滞 PR,无后继。明确匹配的近期提交可排除该 PR,异头事件保留该 PR。完整且全部成功的 30 条可清除旧失败。31 条的截断前缀仍保留旧失败。STALE、COMPLETED 且结论为空、未知运行状态均保留原快照及门禁,且无后继。合法 EXPECTED 与 REQUESTED 仍计入待定。41 条同版本评审可读完,中间页或 PR 版本漂移保留原快照。 独立运行 184 项 Python 和 67 项 Node,全部通过。前后两头用同一 provider、Core 与持久快照核对嵌套时钟、检查解释、Inbox 与首屏评论。
语义与 CI 对齐
检查归属错误或评审页截断时,旧仓库快照保留,但已独立验证的新 Inbox 没有写入,也无后继。完整仓库证据对照交付同一 Inbox 并生成后继。 首屏 comments 是裸数组 [] 时,候选把它当成终页完整连接,把已有作者回复从 awaiting_maintainer_reply 改为 24h_to_72h 并生成后继。只有合法空连接才证明没有回复。
我的整体评价 / Verdict
REQUEST_CHANGES。 缺 OID 的嵌套提交时间误移除停滞 PR 的 P2 已关闭。独立 Inbox 和首屏评论仍需修复。 未知仓库事实保留最后有效投影,同时归约已验证 Inbox。初页评论要求可读的连接和分页形状。 分别对照完整和受损的仓库证据,比较快照字节、作者回复状态、已有失败门禁、Inbox ID 和后继。
English verdict: REQUEST_CHANGES at 26bd7d9. Unbound nested commit timestamps and unclassified checks now preserve verified evidence. Incomplete repository evidence still suppresses verified Inbox delivery, and malformed initial comments can overwrite a verified author reply.
Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
…eward-nested-check-revision Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
…eward-nested-review-revision Signed-off-by: aihop <[email protected]>
…eward-nested-review-revision Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
…ction shape, and preserve confirmed check gates
|
Hi @hhyykk, the DCO If the log confirms a missing |
Signed-off-by: aihop <[email protected]>
|
Hi @hhyykk, the DCO If the log confirms a missing |
Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
|
Hi @hhyykk, the DCO If the log confirms a missing |
Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bb43452853
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const previousRepo = jsonObject(params.previous_repository_snapshot); | ||
| const previousItems = previousRepo?.status !== "unavailable" ? previousRepo?.items : null; | ||
| const baseRepoItems = repoIncomplete | ||
| ? (Array.isArray(previousItems) && hasReadableRepositoryItems(previousItems) ? previousItems : null) | ||
| : currentRepoItems; |
There was a problem hiding this comment.
Preserve the prior hash when the repository baseline is unreadable
When a monitor already has a previous_hash but its saved snapshot is missing or unreadable, _read_previous_repository_snapshot returns None. If GitHub is also unavailable, this fallback hashes repository_items: null instead of the previously observed PRs. Even with unchanged portfolio and inbox inputs, the result becomes material_change: true and observation_incomplete: false, causing collect_signal_monitor to enqueue a follow-up and replace the checkpoint without any verified signal change. Preserve the prior hash when the repository baseline cannot be recovered, or compare independently persisted portfolio/inbox hashes before admitting an outage-time wakeup.
Useful? React with 👍 / 👎.
Signed-off-by: aihop <[email protected]>
Signed-off-by: aihop <[email protected]>
|
Hi @hhyykk, the DCO If the log confirms a missing |
Goal And Delivered Outcome
The native recovery fixture now exercises repository-only and combined monitor scopes explicitly. A repository-only outage preserves the durable poll state, allows one zero-effect recovery, and then lets the next monitor run. The combined control publishes an independent inbox change while retaining the verified repository snapshot and reporting its current coverage as incomplete. The scope distinction is covered through the native worker, poll receipt, and Lean model.
Each older-page request now fetches both recent windows. An older review can change the request-changes anchor, and an older comment can change who replied after that anchor. The two isolated one-PR replays originally removed a PR by mixing those facts across versions. Changed, missing or malformed recent evidence preserves the last trusted reply-dependent result. Independent verdict evidence remains usable. The existing supplemental requests carry both windows.
Steward now corroborates older reviews and older comments together when both contribute to the only open PR. In the baseline replay, the newer request-changes anchor was paired with an older author reply and falsely removed the watched PR. The mixed result now keeps the previous observation. Coherent evidence still selects the PR. The one-source controls retain their stable results and request counts.
Steward now corroborates both the terminal list and older supplements when the repository contains multiple open PRs. In a 21-PR replay, the baseline published two PRs from a mixed observation even though only one PR needed an older review. The shared readback verifies each consumed list window and the terminal projections, including rows that needed no supplement. If that evidence is missing or changed, the older supplements remain unverified. The monitor retains its previous result when the scope depends on the missing evidence.
Steward now uses a common readback for completed older review and comment supplements across multiple PRs. The baseline combined approvals that belonged to different observations. The revised repository observation keeps its prior result if a relevant older review cannot be corroborated. If a PR's review readback fails, Steward also discards comment conclusions derived from that provisional review. Verified independent exclusions still apply.
Steward now jointly verifies older comment pages when more than one PR has a completed comment supplement. In the synthetic replay, each coherent generation includes a different PR. The baseline mixed the two generations and published both. The revised scan preserves the prior repository observation when a relevant supplement cannot be corroborated. Independent exclusions, inbox changes and portfolio changes can still apply.
Steward now publishes the title, URL, head ref name and base ref name from the terminal list response for carried PRs. The four isolated replays each produced a mixed hash in the baseline. The revised scan matches the corresponding coherent terminal snapshot. An in-scope native PR with unreadable metadata retains the prior repository data. Independent portfolio and inbox changes can still publish. Verified independent exclusions and legacy snapshots still apply.
Steward now derives the merge-state markers for carried PRs from the terminal list response. The replay holds list membership, scope fields and nested evidence equal while the blocker moves between two PRs. The terminal readback clears the stale blocker. Missing, unknown and malformed native merge states retain the prior observation when the PR is in scope. Independent exclusions and established review and check markers still apply.
Steward now uses the final page response's draft status, mergeability and author for PRs carried from an earlier page. These fields can change while the existing list, check, review and comment readbacks agree. An unresolved scope field retains the prior result if the requested filter needs it and no verified fact independently excludes the PR. Review-based filters also hold when an unreadable author prevents attributing the available review evidence.
Steward now revalidates the recent comment window for PRs carried from earlier list pages. The synthetic replay kept list, CI and review readbacks equal while a mixed scan used author replies from different generations. A changed or missing comment readback leaves the reply evidence incomplete. Age-dependent observations retain their prior result where that evidence is needed. Independently excluded PRs and corroborated older-comment recovery still follow the existing paths.
Steward now revalidates review windows for PRs carried from earlier list pages. In the replay, two coherent generations each satisfied the approver-declaration filter on a different PR. A mixed scan incorrectly published both despite unchanged list revisions and check tallies. Changed or unreadable review readbacks retain the previous observation when the PR remains in scope. An independent exclusion can still apply. Corroborated truncated windows retain the existing review recovery path.
Steward now corroborates nested check tallies for PRs carried from earlier list pages. List identity and revision fields can stay equal while a check changes. The terminal page response must corroborate the earlier passing, failing and pending counts on the same HEAD. Changed or unreadable checks are marked incomplete for that PR. Core retains the previous observation when that PR is in scope. An independent exclusion, a fresh terminal PR row, and trusted direct adapter checks still follow their existing paths.
Steward now revalidates each consumed open-PR window in subsequent page requests. A stable total and distinct numbers can still produce a list that matches neither coherent observation. Each readback uses the original cursor and page size. LoopX compares the ordered PR numbers, HEADs, timestamps, review decisions, continuation and count. If a window is missing or changed, the scan is unavailable and Core preserves the previous observation.
Steward now verifies older comment pages against the same PR revision, latest comment window, and all previously consumed comment windows. Two coherent observations can both contain an author reply, while a mix of their pages falsely removes the PR from a stalled-age watch. Missing or changed readbacks leave the existing comment evidence incomplete and preserve the prior observation when the watch depends on it. Verified replies, independently excluded PRs, and the existing read deadline remain supported.
Steward now binds nested GitHub commit times to the observed PR head before using them to reset a stall. A readable timestamp with a missing or unreadable commit OID leaves the age and reply classification unresolved when it could move the anchor forward. This preserves the prior observation in stalled-age scopes. Verified current-head and direct PR timestamps still apply, and an independent draft filter can still exclude a PR. The existing GraphQL requests and budgets are sufficient.
Steward now verifies PR list pagination, identities and distinct coverage within bounded reads. Scoped watches use Core to plan comment backfill and verify age, reply role and coverage before publishing.
An otherwise eligible PR with a missing creator previously disappeared from include scopes and appeared in exclude scopes. Both produced a false material change. Core now keeps the last verified observation when author membership is uncertain. Independently excluded PRs still stay out of the result. Comment backfill remains useful for an uncertain under-age PR when it could establish that the reply bypass does not apply.
Core also rejects present repository snapshots whose
itemsfield is missing, null or not an array. Before the fix, Core treated these responses as an empty PR list. The observer now returns an incomplete result and the monitor leaves its saved snapshot intact. A verified empty list can still report that PRs were removed. A watch without an associated repository can still observe inbox and portfolio changes.Core now checks PR row identities before filtering or hashing. Each row must be an object with a distinct positive safe-integer
number. A malformed row or duplicate PR number makes the observation incomplete and preserves the saved snapshot. Comment backfill uses the same validation before selecting PRs.Steward now preserves the verified snapshot when a relevant exact-head Request Changes review has unreadable timing. The Python summary distinguishes that case from a confirmed missing current anchor, and Core preserves the distinction before applying filters or choosing comment reads. Known exclusions, valid legacy
updatedAtclocks and verified author-reply bypass still work.Steward preserves the prior observation when the time of a relevant comment or COMMENTED review could change which role replied last. Structured GraphQL comment rows keep their usable role evidence even when their timestamp is unreadable. A same-role reply or a verified irrelevant comment can leave a dated result conclusive.
Steward now requires a terminal review window with a matching total count and readable, distinct review identities before applying a filter that depends on reviews. A truncated window, malformed row or unreadable commit identity preserves the verified observation. Drafts, proven author mismatches and merge conflicts can still be excluded on independent evidence.
Steward can now recover older review pages when a scope needs review evidence and the initial window is truncated. Recovery requires the same PR and head, a stable total count, distinct readable review IDs and a verified terminal page. Review and comment backfill share the existing three requests per PR, scan-wide page allowance and scan deadline.
Older comment pages now use the same PR number and head binding as older review pages. A missing or mismatched identity leaves the existing reply evidence intact. Matching-head author and maintainer replies, independently excluded PRs and the shared read budgets retain their behavior.
Comment backfill stops before reusing any visited cursor. A cycle leaves older coverage unverified, while a fresh page can still establish a decisive dated reply or a real terminal boundary.
Older review pages now compare the PR's updatedAt and reviewDecision with the initial response. Either changed field, including on the last page, leaves the review window incomplete and preserves the prior review-dependent result. An explicit nullable decision remains valid. The fields travel on the existing request.
Each older review request now reads the initial review window through a GraphQL alias. Recovery requires the same ordered review rows, total count and boundary cursor on every response. A missing or changed readback preserves the prior observation. Each request reads up to 20 additional review rows within the original request and deadline limits.
Older requests now include readbacks for every already consumed older review cursor. The provider verifies all readbacks before accepting the next page. Changes or missing readbacks preserve the prior observation. At the third request, the first window, next older page and two readbacks are bounded to 80 review rows in total.
Nested check rollups now require a matching head OID. Readable direct PR-level checks retain priority, and a matching commit's explicit null rollup or empty contexts remain verified empty. Missing or foreign check evidence preserves the prior observation when the affected PR would otherwise be included.
Nested GraphQL check contexts now require a verified terminal page, an exact total count and distinct readable check IDs. A truncated window or contradictory metadata preserves the prior result. A complete 30-row window remains valid, including distinct checks with the same name. The query requests the extra fields on the existing read.
Check summaries now require every observed check to have a known passing, failing or pending classification. STALE, completed checks without a usable conclusion and unsupported run statuses leave the check tally unresolved. The monitor preserves the prior result, while documented pending states and independently readable PR-level checks remain usable.
Author Declaration
811c1a1f66652d3fc3b9830d467e14b45b7423c1.observe_github_repository_prs_post_reply_role,planStewardSignalCommentBackfillfilterScopedRepositoryItems,observeStewardSignalMonitorfilterScopedRepositoryItemsobserveStewardSignalMonitor,_collect_signal_monitorobserveStewardSignalMonitorhasReadableRepositoryItems,observeStewardSignalMonitorplanStewardSignalCommentBackfillsummarize_github_pr_signal,filterScopedRepositoryItemsplanStewardSignalCommentBackfill_summarize_request_changes_stall_read_graphql_comment_nodes_read_graphql_review_page,filterScopedRepositoryItems_backfill_pr_reviews,planStewardSignalReviewBackfill_read_older_pr_page,_backfill_pr_comments_if_needed_backfill_pr_comments_if_needed_read_review_revision,_backfill_pr_reviews_backfill_pr_reviews,_read_graphql_review_page_older_reviews_page_query,_backfill_pr_reviews_read_graphql_head_check_rollup,observeStewardSignalMonitor_read_graphql_check_contexts,_read_graphql_head_check_rollup_summarize_checks,summarize_github_pr_signal_normalize_graphql_pr_node,_summarize_request_changes_stall_older_comments_page_query,_backfill_pr_comments_if_needed_open_prs_graphql_query,_read_open_pr_window,observe_github_repository_prs_nested_check_readback_limit,_earlier_pr_checks_agree_review_readback_limit,_earlier_pr_reviews_agree,observeStewardSignalMonitor_comment_readback_limit,_earlier_pr_comments_agree_open_prs_graphql_query,filterScopedRepositoryItems_open_prs_graphql_query,summarize_github_pr_signal,observeStewardSignalMonitor_open_prs_graphql_query,_normalize_graphql_pr_node,observeStewardSignalMonitorobserve_github_repository_prs,_joint_supplement_matches_corroborate_supplements,observe_github_repository_prs_joint_terminal_matches,observe_github_repository_prsobserve_github_repository_prs_backfill_pr_reviews,_backfill_pr_comments_if_neededtest_repository_unavailability_preserves_poll_and_recovery_scopeScope And Continuation
The filter uses creator identity only when an author scope is configured. Backfill cannot establish a missing creator. In a scope with reply bypass, it can still establish that an under-age PR is independently excluded. Existing request caps and time budgets remain in place. Older adapters still work with their original numeric PR identifiers. Validation passes valid rows to the existing filters in their original order. A verified empty list can still report removals. The initial window and each older review page request at most 20 reviews. An unresolved recovery preserves the previous result in review-dependent scopes. Revision fields and page readbacks establish observable agreement over consumed pages. An older comment request can read the 20-comment latest window, one 50-comment page and up to two 50-comment prior windows. The third comment request is bounded to 170 comment rows and 20 recent review rows. The third review request is bounded to 80 review rows and 20 recent comment rows. The existing shared request count and time budget still apply. Open-list readbacks add at most 95 rows of revision fields to the fifth request, which still has at most 25 full PR rows. The five-request and shared time limits remain in force. The list check establishes agreement of the projected windows within a response. When a page can complete the list, it also requests the check fields used to classify earlier nested rollups. Each earlier window uses its largest observed readable check count as the limit, with a minimum of one for a known empty rollup and the existing cap of 30. The final request can add at most 2,850 prior check contexts. The worst case is 3,600 check contexts including the current page. Potential terminal requests also read the earlier review windows using the largest observed readable window per earlier page, with a minimum of one and the existing cap of 20. The final response can add at most 1,900 earlier review rows or contain 2,400 review rows including the current page. The request count and shared deadline remain bounded. Potential terminal requests now read earlier recent-comment windows using the largest observed readable window per earlier page, with a minimum of one and the existing cap of 20. The added comment rows carry author identity, association and time fields. The final response can add up to 1,900 earlier comment rows. Across check, review, and comment rows, the final request is bounded to 6,650 earlier rows and 8,400 including the current page. The list request count and shared deadline remain bounded. The terminal request can carry up to 760 scalar scope, merge-state and display fields for 95 earlier PRs. Display corroboration adds four fields per carried PR. It reuses the existing aliases and adds no list or supplemental requests. If older evidence completes a supplement in a multi-PR repository, the shared readback uses one existing supplemental slot and includes the cursor-bound list and the terminal rows. The same request is bounded to 3,400 requested rows across list windows, PR and commit aliases, checks, reviews and comments. At most 400 rows carry review bodies. A repository with one open PR uses its existing per-PR readback for a single older source. If older reviews and comments both complete a supplement, they use the same bounded joint readback. The row model and synthetic replays do not measure live provider latency or establish transactional snapshot semantics for GitHub GraphQL.
Validation
Tested revision
93b3337beb8c806ee2ce06f29f894e4ca42ff516. Provider replays use synthetic input.1f891ab02lean -DwarningAsError=true regression/StewardPrSignalPagination.leand5bf8933fFrontend / Visual Evidence
UI impact none.
Type of Change
LoopX Area