fix(spawner): §24 v4 compact检测 - trajectory prompt.submitted #37
Reference in New Issue
Block a user
Delete Branch "fix/24-compact-detection-v4"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
[CI] 失败
分支: 37
触发 commit:
3c2c0f317514aeccfeb5292fb0a033ffbb3bbee9失败 Job: lint
请检查 CI 日志并修复。
[CI] 失败
分支: 37
触发 commit:
3f71f53e4a72767e04fb9eafcaef6ab5e09191ce失败 Job: lint
请检查 CI 日志并修复。
审查结果:REQUEST_CHANGES
❌ 必须修:
M1: 双
@staticmethod装饰器导致废弃函数不可调用spawner.pyL1299-1301 和 L1319-1321:验证结果:
如果方案 B 需要用这些函数,它们必须可调用。
→ 修改方向:删除新增的
@staticmethod装饰器,只保留# deprecated注释。两个函数各一处,共 2 处。→ 原因:双重装饰器
staticmethod(staticmethod(func))导致外层返回内层 staticmethod 描述符而非函数,运行时 TypeError。⚠️ 建议改:
S1: 缺少
last_ts is None分支测试_check_compact_in_progress_trajectoryL1581-1584:10 个测试用例都构造了带
ts字段的事件,无测试覆盖「有事件但无 ts」→ 返回 True 的分支。建议增加 TC11:事件有 type 但无 ts 字段 → 预期返回 True。S2: 确认是否真的需要保留 v3 废弃代码
注释说「保留供方案 B 备选」,但如果 M1 不修,方案 B 也用不了。两条路:
审查结果:APPROVED
✅ 确认项:
_get_recent_gateway_logs()返回正常)Approve