• 新增 graph-engine-billing-gate.test.js(7 条):
    - 未注入 billingGateFn 时零影响
    - advanceOne / advanceBatch 欠费时都正确挂起(reason=billing-arrears,
      block_reason 落库,节点停在 ready 没被 claim)
    - startRunSync「启动」清空 block_reason
    - resumeBillingClearedRuns 正确恢复已清零的 run、放过仍欠费的 run,
      且支持按 companyId 限定扫描范围
    - advanceBatch 排序回归用例:已收敛(零 ready 节点)只是恰好预算/欠费也耗尽的
      run,正确收敛到 completed,不会被误判成挂起
    
    隔离验证:临时 worktree 里单独跑(graph-engine.js/work-graph-db.js 当前正被
    另一个会话同时编辑 fail-fallback-edge 规则,工作区里混着两份改动,跑全量套件
    会被那边未完成的改动带崩;这条测试只依赖已提交的 T3-T5 代码,临时 worktree
    里跑通即可确认与那份改动无关)。
    
    Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
    yibo authored
     
    Browse File »