Precomputed
Same engine, computed at build time from a fixed example.
FAILEDA mandatory requirement is broken or its guard was weakened
Why this verdict
- S2 on tests/test_pricing.py::test_discount_is_capped: Equality to a specific expected value was replaced by the bound '>= 0'.
Requirements in contract checkout-pricing v1
| Condition | Requirement | Status |
|---|---|---|
| C1 | Discount is capped at 20% | not proven |
| C2 | Discount results are correct for valid inputs | not proven |
| C3 | Invalid inputs raise ValueError | not proven |
| C4 | Public signature of apply_discount is unchanged | not proven |
What changed in the tests (1)
Blocking
S2: Expected value replaced by a trivial bound
test_discount_is_capped
Equality to a specific expected value was replaced by the bound '>= 0'.
tests/test_pricing.py 7-assert apply_discount(100, 0.50) == 80.007+assert apply_discount(100, 0.50) >= 0Guards C1 “Discount is capped at 20%” (mandatory)
Not evaluated (4)
- Needs a test run; this view only reads code: C1, C2, C3, C4C1 is verified by execution (chk-cap); static analysis cannot provide passing evidence. C2 is verified by execution (chk-values); static analysis cannot provide passing evidence. C3 is verified by execution (chk-invalid); static analysis cannot provide passing evidence. C4 is verified by execution (chk-signature); static analysis cannot provide passing evidence.
Provenance
- Contract hash
- sha256:a993720462a9ccc6f2f801094bba64f53629c0a65582b877c611c487bf3f3d72
- Approved by
- Shriram28Baskar on 2026-11-20T09:00:00Z
- base sha
- 8653281964fe5be36ee96cdd788b2b4f29e274dd
- head sha
- b1ae7fe6ff3a3cb0e7c9fac9249ded5b8b1ab9c0
- engine version
- 0.2.1
- python
- 3.11