Repository navigation
Conversation
Signed-off-by: lusendong.6789 <lusendong.6789@bytedance.com>
loopx-agent
left a comment
There was a problem hiding this comment.
Reviewer: model_agent · gpt-6.2-sol · OpenAI · runtime_reported · xhigh
Independent review conclusion
- [P2] 与现有 #10061 重复且互斥。同一作者此前的 #10061 仍以 main 为目标并保持开放。其 runner 指向同一份当前 main 源码时,通过同一个未改控制并被同一个顺序断言杀死。两候选修改同一 case,合并预览在 mutants.py 冲突。 在两个 PR 之间明确保留的一条交付路径,把另一条标记为被取代或合并至保留的候选,并沿保留的精确提交读回这组对照。 执行入口 · 较早的候选 #10061
动机 / Motivation
负责 shared-authority 归档正确性门和现有 Stage 2C 作业的维护者。 单件归档加入后,原负控定位不再适用,需要恢复既有的归档顺序断言和一条清楚的交付路径。 候选的原样控制退出 0。倒序批量选择后退出 1,既有断言精确抓到应先归档的两项 imported Todo 被换成 native 项。 验证限定于这一条 archive-order 负控和交付重叠。
改动思路 / Approach
1 个文件增 1 行、删 1 行,只改既有负控的选择表达式。 生产选择器保持原样。Stage 2C runner 将负控注入临时副本,预期归档 ID 由既有独立 oracle 固定。
现有 runner 有且只匹配一次,冻结目录后才注入并复原,没有新增测试层或生产决策。
具体改动 / Changes
- CONTROL。恢复现在主干上的确定性 archive-order 反例。 独立验证通过。 mutants.py
- ONE-DELIVERY。同一现有 case 保留一个可合并的交付路径。 配对反例见 P2。 mutants.py
关键代码讲解
- 受测批量路径倒序,同时保留原切片数量逻辑。 archive_oldest_selection
- 生产先取最老的候选。 selectCoordinationTodoArchive
- 用合成导入顺序和时间戳固定应选记录。 archive selection preserves imported order
- 仍由现有 CI Job 自动执行此 runner。 Stage 2C mutant lane
对主干的风险 / Risks
同一完整批量 fixture 下对比两套 runner;冻结主线还原定位错误。另确认生产与 oracle 的文件无差异,两侧各 5 个正常测试通过。 Standard premerge 的 5 项直接检查和 6 项选中检查通过。 Stage 2C 实际 CI 入口继续调用同一 runner。五项归档测试与生产选择器源码在 diff 两侧相同。
技术意图成立。阻塞是两个开放的同目标候选对同一处的改写已产生冲突,且两处 PR 正文未记录取舍。
我的整体评价 / Verdict
需要修改。 负控的实际语义通过,须先收敛与 #10061 的两份互斥交付。
只修改 Stage 2C 负控配置,验证对象是命令和归档 oracle。 独立运行了目标负控与归档测试,未重跑整个 Stage 2C 矩阵。作者的 31 对结果注明来自本地组合树。
两份 runner 均在同一份 main 源码上实跑。合并冲突在本地只读预览复现。
English verdict: REQUEST_CHANGES at b00697b. The repaired mutation is correctly rejected by the archive-order oracle. Open PR #10061 fixes the same case on the same main source and conflicts on the same line. Consolidate to one delivery path.
| "tests/control_plane/test_shadow_native_todo_update_e2e.py::test_native_update_holds_before_primary_for_management[native-bootstrapping-cli]"), | ||
| Case("archive_oldest_selection", ((COORDINATION + "todo_archive_selection.ts", replacement( | ||
| "movable.slice(0, moveCount)", "movable.slice(-moveCount)")),), | ||
| "movable.slice(0,", "movable.toReversed().slice(0,")),), |
Superseded by #10061. Its reviewed head
f5b443d9a5e297777e4c46dc42246a134241abd4passed the archive-order control and rejected the deliberately incorrect selection on main3956eb54f7bb5d1fa91dbfd48b4d8bfcf0002e0c.Goal And Delivered Outcome
Stage 2C stops before exercising the archive-order oracle on current main. Bulk Todo archival now computes the count inside its selection expression, so the mutation runner's old
moveCountlocator fails.The mutation reverses the bulk candidates before the existing slice. The archive-order oracle rejects newest-first selection and verifies the expected oldest records.
Author Declaration
Validation
b00697bf023cb7446ae490df70094a62a7a47a19regression_paritypassedmutation locator drift. The signed repair passes its unchanged control and the deliberately reversed selection exits 1 through the order assertion.unitpassedintegrationpassedstaticpassedRelated to #9646.
Frontend / Visual Evidence
Type of Change