Repository navigation
T4 注入:期望值改写不改实现(预期 test-integrity 红 TI-R4) - #47
randypanding wants to merge 4 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
PR Summary by QodoBroaden likelihood test offsets for TI-R4 integrity injection
AI Description
High-Level Assessment
Files changed (1)
|
Code Review by Qodo
1. Unapproved test fixture rewrite
|
| l := QuantizedLogProb(44, 50, 1, 0.5) | ||
| r := QuantizedLogProb(56, 50, 1, 0.5) |
There was a problem hiding this comment.
1. Unapproved test fixture rewrite 🐞 Bug ⚙ Maintainability
Replacing the established 45/55 likelihood samples with 44/56 silently removes regression coverage for the original observation points. Repository policy classifies expectation rewrites as TI-R4 failures unless backed by an ADR, so this change makes both test-integrity and the required aggregate gate fail.
Agent Prompt
## Issue description
The likelihood test rewrites its established observation samples without an ADR, triggering the repository's TI-R4 test-integrity rule and failing the required CI gate.
## Issue Context
Restore the original 45/55 samples. If the changed samples represent an intentional requirement change, preserve appropriate coverage and add the ADR reference required by the test-integrity policy.
## Fix Focus Areas
- internal/estimate/estimate_test.go[111-118]
- .github/workflows/ci.yml[49-56]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
P2-1 注入测试完成(证据已在 job log 采集,ADR-0035 / CI-Workflows#20 已合并)。清理载体。 |
#86 P2-1 T4 负向注入(轮次 2):观测点 45/55 → 44/56——只改测试期望值,实现不动,测试仍绿。policy 严格度 require_adr:无 ADR 引用即红。
预期:test-integrity 红 TI-R4(期望值改写嫌疑);gate 红;go test 绿。
注入测试 PR——验证后关闭,不合并。