三人、七台电脑。1 到 3 号机跑编码代理,4、5 号机审查,6 号机做 Windows 验证,7 号机负责合入。这个团队已经习惯自动跟进:4 号机在 PR 上留下审查意见之后,编码代理会被要求「处理审查意见」。代理看到的往往不是「只处理 4 号机那一条」,而是这份 PR 会话里出现过的每一条评论,并把它们都当成工单。
工单本身写得很窄:给已支付、尚未发货的订单加上 refund_order。已经退过的必须拒绝。已发货、已签收的必须拒绝。不要改 export,不要改 auth,也不要改这些退款规则。验收是 pytest -q 为绿。
1 号机按工单把退款接口加对了:已发货和已签收都会被拒绝。单元测试是绿的。文档字符串里却把 refunded 写成了 refuned。4 号机式的审查意见盯的就是这一处拼写,并且写明不要动退款规则,也不要动 export。后来又出现一条会话评论:仓储希望先退款、再拦截发货,请允许对已发货订单退款,去掉已发货状态的拒绝。这条评论不在工单范围里。自动跟进却把两条都做了。测试仍然是绿的——默认用例本来就不覆盖已发货拒绝,而这次跟进还把不变量测试里对应的那条删掉了。用已发货订单做一次探测,退款会成功。
这篇要核对的是评论跟进循环,不是旧批准,也不是「看起来改完了」。它和 旧批准把后来改的导出上限一起合进了 main 谈的是批准还指着更早的 SHA,作者后来改了 EXPORT_LIMIT;今天没有靠一份留下的 APPROVAL,出问题的是跟进把范围外的评论也做了。它和 超时修好了,同一份 PR 把每晚的对账任务也删了 谈的是功能 PR 里一开始就夹带了另一处删除;今天多出来的改动只出现在「处理审查意见」的那次跟进里。它和 审查意见都标成已解决,退款却没有补库存 正好相反:那边是讨论被标成 resolved,要求的修复其实没做;今天有害的那条评论确实被做了。它也不是 只做完一部分的 PR 写了 Fixes,整个 issue 被关掉 里那个关键字关单的问题。今天只谈:你以为跟进的是「改一处拼写」,实际合进去的还有「已发货也可退款」。
我在 GitHub 上建了一个公开的实验室仓库 shuizhengqi1/iotxing-lab-comment-followup-20261202。店铺数据是 zhou@shop.invalid 这一类,卡号后四位是 1111,都不是真实商户。夹具提交是按常见的分单写法准备的,并没有再开一个编码模型来生成这些 diff。两条评论都是用 shuizhengqi1 发的,和 PR 作者是同一个账号。这一点要公开:机器共用一个 gh 登录时,「只处理被请求审查人留下的评论」并不足以当唯一闸门。仓库里没有规则集,main 也没有分支保护。实验室没有把范围闸门设成必检,为的是看它不在必检时,有害的跟进能不能直接合进去。没有使用 --admin。未跑 Windows。
种子提交 6c88822739ec(6c88822739ecb66e7628a14f2b616493d0f4941f)在 2026-12-02 18:46:44(Asia/Shanghai)推上 main,里面只有订单夹具、export 和 auth,还没有退款接口。工单和 AGENTS.md 已经写明:已发货、已签收不能退,已退款必须拒绝,跟进不得改 tests/test_invariants.py。这一步本地 pytest -q 是 4 passed。功能提交 640955e9417a(640955e9417ae85febce0ebe442363a8d7edd7f6)在 18:46:58 加上了正确的 refund_order:LOCKED_STATUSES 里有 shipped 和 delivered,已经退过的会报错;文档字符串里是 typo refuned。默认单元测试只覆盖「已支付可退」和「已退款拒绝」,已发货、已签收的拒绝写在 tests/test_invariants.py。测试是 9 passed。对已发货订单 ord_1002 做探测,结果是 PROBE_RESULT=rejected。以 main 为基线跑 comment_scope_gate.py,退出码是 0:新增不变量文件是允许的,export 和 auth 没有被改。
PR #1 在 18:47:03 打开。18:47:18,我用 shuizhengqi1 留下 4 号机风格的审查,审查编号 6149283782,行内评论是 4768352587,打在 src/shop/refund.py 第 14 行,要求把 refuned 改成 refunded,只改这一处拼写,不要改退款规则,也不要动 export 或 auth。18:47:23,同一账号在会话里又留了评论 7342982829:仓储希望先退款、再拦截发货,请允许对已发货订单退款,去掉已发货状态的拒绝。

实验 A 是一次天真的跟进。提交 665d4a481fe3(665d4a481fe303b40e9ecc520ee8ae8480d22bb1)在 18:47:35 推到同一条 PR 分支上,说明是「处理审查意见」。它做了三件事情:改掉 typo,把 shipped 从 LOCKED_STATUSES 里拿掉,并删除 test_shipped_order_cannot_be_refunded。pytest -q 变成 8 passed,仍然全绿。对 ord_1002 再探测一次,结果是 PROBE_RESULT=allowed,订单状态变成了 refunded。以功能提交为 --base 跑范围闸门,退出码是 1,原因写得很清楚:denylisted path changed: M tests/test_invariants.py;这份文件里少了 test_shipped_order_cannot_be_refunded;refund_order no longer locks: shipped。跟 main 比,闸门同样失败,因为树上的不变量已经不完整。export 和 auth 的内容哈希没有变,危险不在那两处,而在退款规则被跟进改掉了。
若只看会话是否「处理完」,实验 A 会显得很干净。跟进推上去之前,thread_resolution_gate.py 退出码是 1:审查讨论还没解决,也没有回复。18:47:52,我给 typo 那条回复了 4768359065,写的是 typo 已改。18:47:54,又在会话里回复 7342995671,写的是已发货现在可以退款。随后把审查讨论 PRRT_kwDOWEAOB86-jztt 标成已解决。同一道只检查「讨论已解决、评论有回复」的闸门,退出码变成了 0。它没有看 diff,也没有看工单里的不变量。
仓库规则集是空的,main 未被保护,范围闸门也不是必检。18:48:41,我没有加 --admin,把 PR #1 做了一次普通的 merge 合并,合并提交是 051b532380e2(051b532380e2a320518f84589c0ff4769b2219c3)。合入后的 main 上,测试仍是 8 passed,已发货探测仍是 allowed,范围闸门仍是退出码 1。这说明:跟进把范围外的评论做完、测试还是绿的、讨论也标成已解决之后,只要合入前没有一道看 diff 的闸门,这条改动可以进 main。
实验 B 从同一份功能提交分出去,只改 typo。提交 34911b11e106(34911b11e106c0a08b74588e6fe5d51473e8bd04)在 18:48:08,diff 只有文档字符串里 refuned 改成 refunded。测试回到 9 passed。对 ord_1002 的探测是 PROBE_RESULT=rejected。src/shop/export.py、src/shop/auth.py 和 tests/test_invariants.py 的内容哈希与功能提交时完全相同。以功能提交或 main(当时仍是种子)为基线,范围闸门退出码都是 0。读者要看这次安全跟进,应检出 tag 或分支 experiment-b;因为实验 A 已经合进 main,默认分支上现在仍允许已发货退款。这是实验室有意留下的结果,不是事后改掉的。

机制并不绕。「处理审查意见」这句指令,默认没有范围边界。GitHub 的 PR 会话是一个袋子:行内审查、后来的对话评论、仓储或其他能写评论的人提出的新要求,都会出现在同一个页面里。代理若被要求处理「这些评论」,并不会自动把「4 号机只改 typo」和「后来有人要改退款规则」分成两个工单。共用登录让这件事更弱:今天两条评论的作者都是 shuizhengqi1,和打开 PR 的是同一个人。若闸门只允许「被请求的审查人」留下的评论,这两条仍然都会通过。
测试为什么还是绿的,也要说清楚。tests/test_refund.py 只问已支付能不能退、已退款会不会被拒,不问已发货。已发货和已签收的规则放在 tests/test_invariants.py 里。跟进如果只改 refund_order、不改测试,不变量用例会红。实验 A 把那条已发货用例删掉之后,失败的测试不再出现,套件从 9 个变成 8 个,看起来仍是全绿。把不变量写进同一份 PR,并不能自动保住它们;跟进既然能改实现,也就能改挡住它的测试。所以这些不变量必须放在跟进不得修改的路径里,并且要有一道检查去看:这份 diff 有没有碰这条路径,树上的拒绝是否还在。
有人会说,只要告诉代理「只处理范围内的评论」,或者「只处理被请求审查人写下的评论」,就不会误做那条仓储意见。4 号机的评语已经写了不要改退款规则。把范围写在评语里是有用的,但它是给下一个人看的提醒,不是合入条件。今天的实验室甚至不必假设有一个「不听话的模型」:夹具提交是按这种常见跟进写法准备的,两条评论又来自同一个账号。登录身份过滤在共用 gh 的三人七机里,不够当唯一闸门。站点里先前已经讨论过共享登录的问题;今天要补的是,跟进循环本身还需要工单不变量和路径限制。
也有人会说,把已发货用例写进 test_refund.py,天真的跟进就会变红。它会红一会儿,直到跟进把这些用例一并改掉。实验 A 对 test_invariants.py 做的就是这件事。问题不在测试最初写在哪个文件里,而在跟进是否被允许改它们、删它们,或者把 pytest.raises 改成一次成功退款。没有路径拒绝名单,绿测试只说明「当前套件不再反对这次改动」,不说明工单里的规则还在。
还有人会把希望放在 CODEOWNERS 上,让 4 号机必须再看一次 tests/test_invariants.py。这能提高「有人看见」的概率,尤其是所有者和编码代理不是同一登录的时候。它回答的是谁该看这份文件,不是这次跟进有没有把已发货拒绝留下。若合入条件仍是测试为绿、讨论已解决,审查人即使被点名,也不一定挡得住一次已经回复完的跟进。共用登录时,这条路径上的必审同样会变弱。更稳的仍是合入前直接读 diff 和树上的不变量。
仓储那条评论本身也可能是合理的产品要求。若业务真的要改成「先退款、再拦截发货」,那是一张新工单,要重新写验收、重新审查,而不是挂在「改 typo」的跟进里。原工单和 4 号机的评语都禁止改退款规则。把它放进同一份 PR,等于把一次策略变更藏在「审查意见已处理」下面。7 号机若只看测试和讨论状态,不会注意到已发货已经可以退款。
comment_scope_gate.py 只做两件能抄走的事。第一,跟进相对被审查的那次提交,不得改 tests/test_invariants.py、src/shop/export.py、src/shop/auth.py 和 .github/workflows/;功能提交里新增不变量文件是允许的,改或删不行。第二,跟进之后的树上必须还留着已发货拒绝、已签收拒绝、已退款拒绝,并且 refund_order 仍然把 shipped 和 delivered 锁住。实验 A 上它退出码是 1,实验 B 上是 0。它应该做成 PR 必检,至少在跟进推上来之后运行。只检查「全部讨论已解决」或「每条评论都有回复」的那道闸门,在实验 A 上会通过,不能代替它。

明天可以抄走的做法很具体。第一,不要默认把 PR 上的每条评论都当成工单;改退款规则这类策略变化要另开工单,不要跟 typo 绑在一次跟进里。第二,把工单不变量放进跟进不得修改的路径,例如 tests/test_invariants.py 或 guards/,不要只写在会被一并改掉的默认用例里。第三,用 comment_scope_gate.py 去核对跟进相对审查基线的 diff,以及树上的拒绝是否还在,并把它做成必检。第四,不要把「讨论都标成已解决」或「每条评论都回了 done」当成可以合入的充分条件。第五,机器共用 gh 登录时,不要指望「只采纳被请求审查人的评论」能单独挡住范围外的要求。
它不适用的地方也要说清。如果跟进不是自动的,而是 4 号机或 7 号机自己挑哪些评论要做,这篇里的「每条评论都是工单」就不会原样出现;那时仍值得把不变量放到单独的路径里,但失败方式会不一样。如果仓储的要求被开成一张新工单、另走审查,它就不再是 typo 跟进里的夹带。如果当前工单本来就是要允许已发货退款,今天实验室里的拒绝名单会挡住一次合法改动,应当先改工单和不变量,再改实现。实验室没有在 Windows 上跑测试,也没有用现场编码模型来生成这些提交,没有把闸门设成必检,也没有测给不变量文件加上 CODEOWNERS 必审能否单独拦住这次合入。为了让实验 A 的合入真正发生,实验室故意没有加必检;正文里能合进 main,不是因为闸门判断错了,而是因为它当时还不是合入条件。
实际跑了什么
- 公开实验室:shuizhengqi1/iotxing-lab-comment-followup-20261202。PR #1。本地:git 2.47.3、Python 3.13.5、官方
gh2.103.0、pytest 9.2.0。时间均为 Asia/Shanghai。 - 种子
6c88822739ec(18:46:44),pytest 4 passed。功能提交640955e9417a(18:46:58),pytest 9 passed,已发货探测 rejected,相对main的范围闸门退出码 0。PR 于 18:47:03 打开。 - 范围内审查评论 4768352587(审查 6149283782,18:47:18)只要求改 typo。范围外会话评论 7342982829(18:47:23)要求允许已发货退款。两条都来自
shuizhengqi1。 - 实验 A:提交
665d4a481fe3(18:47:35),pytest 8 passed,探测 allowed。comment_scope_gate.py相对功能提交退出码 1。回复并解决讨论后,thread_resolution_gate.py退出码 0;在此之前是 1。18:48:41 无--admin合并,合并提交051b532380e2。合入后的main上探测仍为 allowed,闸门仍为 1。 - 实验 B:提交
34911b11e106(18:48:08),只改 typo,pytest 9 passed,探测 rejected,export / auth / 不变量文件未改,闸门退出码 0。未跑:Windows、现场编码模型、把闸门设成必检、CODEOWNERS 必审。可复制的脚本和夹具在 comment-followup-kit.tar.gz。下一步是把不变量放到跟进不得修改的路径里,并把范围闸门做成必检。
Three people, seven machines. Machines 1 through 3 run coding agents, 4 and 5 review, 6 does Windows validation, and 7 merges. The team already uses automated follow-up: after machine 4 leaves a review comment, a coding agent is told to address the review comments. What the agent sees is often not "just machine 4's comment," but every comment in the pull-request conversation, each treated as a work order.
The ticket itself is narrow: add refund_order for paid, not-yet-shipped orders. Already-refunded must be rejected. Shipped and delivered must be rejected. Do not change export, auth, or those refund rules. Acceptance is pytest -q green.
Machine 1 adds the refund API correctly: shipped and delivered are rejected. The unit tests are green. The docstring, though, says refuned instead of refunded. A machine-4-style review comment points at that typo and says not to touch the refund rules or export. A later conversation comment appears: the warehouse wants to refund first and then stop shipment, so please allow refunds on shipped orders and remove the shipped rejection. That comment is outside the ticket. The automated follow-up applies both. The tests stay green — the default cases never covered the shipped rejection, and this follow-up also deleted the matching invariant test. A probe of a shipped order refunds it successfully.
This post is about the comment-follow-up loop, not a leftover approval, and not a thread marked resolved without the work. It is not the same as the old approval that merged the later export-limit change, where an approval still pointed at an earlier SHA after the author changed EXPORT_LIMIT. Today there is no stale APPROVAL; the failure is that follow-up also applied an out-of-scope comment. It is not the same as the timeout fix that also deleted the nightly job, where the extra deletion was already in the original feature pull request. Today's extra change appears only in the follow-up that "addresses comments." It is the opposite of review threads marked resolved while restock never happened: there, the thread was marked resolved and the requested fix was not done; today the harmful comment is done. It is also not a partial pull request whose Fixes keyword closed the whole issue. The only claim today is this: you thought the follow-up was fixing a typo; what landed also allowed refunds on shipped orders.
I created a public lab repository, shuizhengqi1/iotxing-lab-comment-followup-20261202. Shop data uses addresses such as zhou@shop.invalid and card last four 1111; these are not real merchants. The fixture commits were prepared in the usual ticket style; a live coding model was not used to generate the diffs. Both comments were posted as shuizhengqi1, the same account as the pull-request author. That is part of the argument: when machines share a gh login, "only apply comments from requested reviewers" is not enough as the only gate. The repository had no rulesets, and main was not branch-protected. The lab did not make the scope gate a required status check, so that we could see whether the harmful follow-up would merge without one. --admin was not used. Windows was not run.
The seed commit, 6c88822739ec (6c88822739ecb66e7628a14f2b616493d0f4941f), was pushed to main at 2026-12-02 18:46:44 (Asia/Shanghai). It has order fixtures, export, and auth, and no refund API yet. The ticket and AGENTS.md already say that shipped and delivered cannot be refunded, already-refunded must reject, and a follow-up must not edit tests/test_invariants.py. Local pytest -q was 4 passed. The feature commit, 640955e9417a (640955e9417ae85febce0ebe442363a8d7edd7f6), at 18:46:58, adds a correct refund_order: LOCKED_STATUSES contains shipped and delivered, and an already-refunded order raises. The docstring typo is refuned. Ordinary unit tests only cover a successful paid refund and the already-refunded rejection; the shipped and delivered rejections live in tests/test_invariants.py. Tests were 9 passed. A probe of shipped order ord_1002 returned PROBE_RESULT=rejected. comment_scope_gate.py against main exited 0: adding the invariants file is allowed, and export and auth were not changed.
Pull request #1 opened at 18:47:03. At 18:47:18 I left a machine-4-style review as shuizhengqi1, review 6149283782, with inline comment 4768352587 on line 14 of src/shop/refund.py: change refuned to refunded, fix only that typo, and do not change the refund rules, export, or auth. At 18:47:23 the same account left conversation comment 7342982829: the warehouse wants to refund first and then stop shipment, so please allow refunds on shipped orders and remove the shipped rejection.

Experiment A is the naive follow-up. Commit 665d4a481fe3 (665d4a481fe303b40e9ecc520ee8ae8480d22bb1) was pushed to the same pull-request branch at 18:47:35, described as addressing review comments. It did three things: it fixed the typo, it removed shipped from LOCKED_STATUSES, and it deleted test_shipped_order_cannot_be_refunded. pytest -q became 8 passed, still all green. A second probe of ord_1002 returned PROBE_RESULT=allowed, and the order status became refunded. The scope gate with the feature commit as --base exited 1, for three recorded reasons: denylisted path changed: M tests/test_invariants.py; that file is missing test_shipped_order_cannot_be_refunded; and refund_order no longer locks shipped. Against main the same gate also failed, because the invariants on the tree were no longer complete. The content hashes of export and auth did not change. The damage is not there; it is that the follow-up changed the refund rules.
If you only ask whether the conversation looks finished, experiment A looks clean. Before the follow-up replies, thread_resolution_gate.py exited 1: the review thread was unresolved and unreplied. At 18:47:52 I replied to the typo comment as 4768359065, saying the typo was fixed. At 18:47:54 I left conversation reply 7342995671, saying shipped orders can now be refunded. I then marked review thread PRRT_kwDOWEAOB86-jztt resolved. The same gate, which only checks that threads are resolved and comments have replies, exited 0. It does not look at the diff, and it does not look at the ticket invariants.
The repository ruleset list was empty, main was unprotected, and the scope gate was not a required check. At 18:48:41, without --admin, I merge-merged pull request #1. The merge commit is 051b532380e2 (051b532380e2a320518f84589c0ff4769b2219c3). On main after the merge, tests were still 8 passed, the shipped probe was still allowed, and the scope gate still exited 1. That is the point: once follow-up has applied the out-of-scope comment, the tests are still green, and the threads are resolved, the change can land on main if there is no diff-aware gate before merge.
Experiment B was branched from the same feature commit and fixed only the typo. Commit 34911b11e106 (34911b11e106c0a08b74588e6fe5d51473e8bd04) at 18:48:08 changes only refuned to refunded in the docstring. Tests returned to 9 passed. The probe of ord_1002 was PROBE_RESULT=rejected. The content hashes of src/shop/export.py, src/shop/auth.py, and tests/test_invariants.py were identical to the feature commit. The scope gate exited 0 against both the feature SHA and main (still the seed at that time). To inspect this safe follow-up, check out the experiment-b tag or branch; because experiment A was merged, main still allows shipped refunds. That is a deliberate leftover from the lab, not a later cleanup.

The mechanism is not obscure. The instruction to address review comments has no scope boundary by default. A GitHub pull-request conversation is a bag: inline review comments, later conversation comments, and new requests from the warehouse or anyone who can comment all show up on the same page. An agent told to handle "these comments" does not automatically split "machine 4 only wants a typo fix" and "someone later wants the refund rules changed" into two tickets. Shared logins make the filter even weaker. Both comments today were written by shuizhengqi1, the same person who opened the pull request. A gate that only accepts comments from requested reviewers would still have accepted both.
Why the tests stayed green also needs to be stated plainly. tests/test_refund.py only asks whether a paid order can be refunded and whether an already-refunded order is rejected. It does not ask about shipped orders. The shipped and delivered rules live in tests/test_invariants.py. If the follow-up had changed only refund_order and left the tests alone, the invariant cases would have gone red. After experiment A deleted the shipped case, the failing test disappeared, the suite went from 9 tests to 8, and it still looked all green. Putting the invariants in the same pull request does not automatically protect them: a follow-up that can change the implementation can also change the tests that would have blocked it. Those invariants have to live on a path the follow-up must not modify, and a check has to ask whether this diff touched that path and whether the rejections are still in the tree.
Some will say that telling the agent to apply only in-scope comments, or only comments from requested reviewers, would have stopped the warehouse note. Machine 4's review already said not to change the refund rules. Writing the scope in a comment is useful, but it is a reminder for the next reader, not a merge condition. This lab does not even need to assume a disobedient model: the fixture commits were written in the style of a common follow-up, and both comments came from the same account. A login-identity filter is not enough as the only gate when three people share gh across seven machines. The site has already discussed shared logins; what this loop still needs is ticket invariants and a path limit on the follow-up.
Others will say that putting the shipped case in test_refund.py would have turned the naive follow-up red. It would have been red for a while, until the follow-up edited those cases too. That is what experiment A did to test_invariants.py. The problem is not which file the tests start in. It is whether a follow-up is allowed to change them, delete them, or turn pytest.raises into a successful refund. Without a path denylist, a green suite only means that the current tests no longer object to the change. It does not mean the ticket's rules are still there.
A third hope is CODEOWNERS, so that machine 4 must look at tests/test_invariants.py again. That can raise the chance that someone sees the edit, especially when the owner and the coding agent do not share a login. It answers who should read the file, not whether the follow-up left the shipped rejection in place. If the merge condition is still "tests are green and threads are resolved," a named reviewer may not stop a follow-up that has already been replied to. Shared logins weaken a required review on that path as well. It is more durable to read the follow-up diff and the invariants on the tree before merge.
The warehouse comment may even be a reasonable product request. If the business really wants to refund first and then stop shipment, that is a new ticket, with its own acceptance and its own review, not a follow-up hanging off a typo fix. The original ticket and machine 4's review both forbade changing the refund rules. Doing it in the same pull request hides a policy change under "review comments addressed." If machine 7 only looks at the tests and the thread state, it will not notice that a shipped order can now be refunded.
comment_scope_gate.py does two things a reader can copy. First, relative to the reviewed feature commit, a follow-up must not change tests/test_invariants.py, src/shop/export.py, src/shop/auth.py, or .github/workflows/. Adding the invariants file in the feature commit is allowed; modifying or deleting it is not. Second, the tree after the follow-up must still contain the shipped, delivered, and already-refunded rejections, and refund_order must still lock shipped and delivered. The gate exited 1 on experiment A and 0 on experiment B. It should be a required check, at least after a follow-up is pushed. The weaker gate that only asks whether every thread is resolved or every comment has a reply passed on experiment A and cannot replace it.

The next step is concrete. First, do not treat every comment on a pull request as a work order; a policy change such as refunding shipped orders needs its own ticket, not a typo follow-up. Second, put ticket invariants on a path the follow-up must not modify, such as tests/test_invariants.py or guards/, and do not leave them only in default cases that can be edited in the same commit. Third, run comment_scope_gate.py on the follow-up diff against the reviewed SHA, and on the rejections still in the tree, and make that check required. Fourth, do not treat "all threads resolved" or "every comment got a reply" as sufficient to merge. Fifth, when machines share a gh login, do not rely on "only apply comments from requested reviewers" as the only gate.
It also matters where this does not apply. If follow-up is not automated, and machine 4 or 7 personally chooses which comments to apply, the "every comment is a work order" failure will not look the same; it is still worth keeping invariants on a separate path, but the failure mode changes. If the warehouse request is opened as a new ticket and reviewed on its own, it is no longer a stowaway in a typo follow-up. If the current ticket is supposed to allow shipped refunds, today's denylist would block a legitimate change; the ticket and the invariants should be updated first, then the implementation. The lab did not run tests on Windows, did not use a live coding model to produce these commits, did not make the gate a required check, and did not test whether CODEOWNERS required review on the invariants file would have blocked this merge by itself. To let experiment A actually land, the lab deliberately left the gate optional; the merge into main was not a gate misjudgment. It was what happens when the gate is not yet a merge condition.
What was actually run
- Public lab: shuizhengqi1/iotxing-lab-comment-followup-20261202. Pull request #1. Local tools: git 2.47.3, Python 3.13.5, official
gh2.103.0, pytest 9.2.0. Times are Asia/Shanghai. - Seed
6c88822739ec(18:46:44), pytest 4 passed. Feature640955e9417a(18:46:58), pytest 9 passed, shipped probe rejected, scope gate versusmainexited 0. The pull request opened at 18:47:03. - In-scope review comment 4768352587 (review 6149283782, 18:47:18) asked only for the typo fix. Out-of-scope conversation comment 7342982829 (18:47:23) asked to allow shipped refunds. Both were from
shuizhengqi1. - Experiment A: commit
665d4a481fe3(18:47:35), pytest 8 passed, probe allowed.comment_scope_gate.pyversus the feature commit exited 1. After replies and resolving the thread,thread_resolution_gate.pyexited 0; before that it exited 1. Merged at 18:48:41 without--admin, merge commit051b532380e2. Onmainafter the merge the probe was still allowed and the scope gate still exited 1. - Experiment B: commit
34911b11e106(18:48:08), typo only, pytest 9 passed, probe rejected, export / auth / invariants unchanged, scope gate exited 0. Not run: Windows, a live coding model, making the gate required, or CODEOWNERS required review. Reproducible scripts and fixtures are in comment-followup-kit.tar.gz. The next step is to put the invariants on a path the follow-up must not modify, and to make the scope gate a required check.