Repository navigation
Register the quota execution-loss record as a canonical digest consumer - #9288
Conversation
Signed-off-by: LoopX Agent <337587101+loopx-agent@users.noreply.github.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-astra · OpenAI · runtime_reported · xhigh
Approval conclusion (author-owned PR; GitHub blocks formal self-approval)
动机 / Motivation
运行 TypeScript 仓库检查的维护者会因一个已存在的合法导入而收到失败。同一份生产代码在旧清单下报告多出一个消费者,更新清单后真实导入集合与预期相等。修复前重现该路径的差集,修复后整份测试文件的 30 项均通过。本次交付范围限于消费者清单,配额结算的运行时行为保留。
改动思路 / Approach
先在基线运行固定集合的失败用例,并核实生产文件确实从共享摘要模块导入校验器。然后在提交上运行整份测试,验证补上路径足以恢复检查,继续保留发现未登记消费者和私有摘要匹配器的能力。
具体改动 / Changes
唯一的差异是把 control_plane/quota/execution_loss_closeout_record.ts 加入排好序的 CANONICAL_CONSUMERS。这个生产文件已导入 BARE_SHA256_PATTERN 并用于校验结算记录。测试仍从实际 TypeScript 源文件提取导入,比较完整集合。基线失败的断言精确列出了这一个路径;补齐后运行整份文件成功,其他 29 项也通过。标准 premerge 的四项直接检查通过,本次未选中目录 canary。
验收依据 https://github.com/loopx-project/loopx/pull/9288,版本 930793cdd9967fcd6cbb73e5f4e3c0c3b8f126df,对应 consumers are the pinned set。
对主干的风险 / Risks
把一个无意引入的消费者登记为合法路径可能会长期掩盖架构漂移。因此我检查了具体导入及调用处,确认校验逻辑来自现有摘要所有者。提交没有删除断言,没有扩大匹配条件,也没有改动生产目录。将来移除此消费者或增加新消费者时,两侧集合依然必须同时对齐。
我的整体评价 / Verdict
该提交只恢复了已有守卫的准确性。基线失败和修复后整份测试的结果提供了可重复的验收条件,可以独立合并。后续涉及相同清单的分支在同步时应核对是否还有自己的净变更。 只改仓库测试中的消费者清单,未经过任何产品页面或显示组件。
English verdict: APPROVE 930793c. The narrow test inventory repair restores an independently reproduced invariant.
The quota execution-loss record validates the writer lease key with
BARE_SHA256_PATTERNfrom the canonical digest module. The architecture test discovers that import and rejects it because its consumer list omits the module. This also fails the TypeScript CI job on #9283. Failing CI jobThis change adds the existing production import to the pinned consumer list. The test still checks the complete set of importers, their use of the canonical exports, and the operations used to validate digests.
Validation
dc90f1f4. The diff reported onlycontrol_plane/quota/execution_loss_closeout_record.ts.content_digest_single_owner.test.ts,execution_loss_closeout.test.ts, andtodo_authoring_scope.test.tspassed with Node 24 and TypeScript 6.0.3.#9262 and #9153 also include this inventory entry alongside their respective feature changes. This proposal can land independently on main.