 jesse-uxandGrok (agent loop)
|
494c85e001
|
feat(rect): purpose-use decision contract, ported from the astrologer's reference (#186, BUG-1833)
只交付合同与测试,不接入任何流程:
- scripts/rectification_purpose_gate.py:assess_use(assessment, expected_binding)
与参考代码逐行等价(七项绑定、必填层覆盖三态、scan/branch 枚举、两个布尔、
两个 claim 列表;刻意没有区间宽度与分数差门槛)
can_use_interval 只在 scope_ready 为真;can_modify_birth_record 与
representative_is_birth_truth 恒为假
- tests/test_rectification_purpose_gate.py:13 条参考测试 + 2 条新增
- 没有任何现有代码 import 新模块
Tests: 15 过 / 0 败;与参考模块对 12 个合成场景比较返回值 0 处不一致。
Co-Authored-By: Grok (agent loop)
|
2026-11-09 15:34:55 +08:00 |
|