A real engine run that executed checks in a Docker sandbox. Full provenance below.
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'.
- Contract check chk-cap failed for C1.
Requirements in contract checkout-pricing v1
| Condition | Requirement | Status |
|---|---|---|
| C1 | Discount is capped at 20% | failed |
| C2 | Discount results are correct for valid inputs | proven |
| C3 | Invalid inputs raise ValueError | proven |
| C4 | Public signature of apply_discount is unchanged | 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)
Execution evidence (5)
Open a row to see the command and its raw output.
failchk-capContract check for C1 Discount is capped at 20%exit 1, 1.84 s
$ pytest test_contract_checkout.py::test_chk_cap (candidate isolated in a child process; JUnit report required)
F [100%]
=================================== FAILURES ===================================
_________________________________ test_chk_cap _________________________________
def test_chk_cap():
# C1: the discount never exceeds the cap, across a sweep of requested discounts.
for pct in range(0, 101, 5):
d = pct / 100
price = apply_discount(100, d)
> assert price >= round(100 * (1 - CAP), 2), f"discount {d} gave {price}"
E AssertionError: discount 0.25 gave 75.0
E assert 75.0 >= 80.0
E + where 80.0 = round((100 * (1 - 0.2)), 2)
test_contract_checkout.py:21: AssertionError
------------------- generated xml file: /work/results/E1.xml -------------------
=========================== short test summary info ============================
FAILED test_contract_checkout.py::test_chk_cap - AssertionError: discount 0.2...
1 failed in 0.23sfull output sha256 a03c39131f845991c7335419c7879a7700306d7df472136e76a0a319549b5d30
passchk-valuesContract check for C2 Discount results are correct for valid inputsexit 0, 1.33 s
$ pytest test_contract_checkout.py::test_chk_values (candidate isolated in a child process; JUnit report required)
. [100%] ------------------- generated xml file: /work/results/E2.xml ------------------- 1 passed in 0.15s
full output sha256 41feba5434e280b2e41faece2bf093b707db7e707e2aa9a90313c32460318b65
passchk-invalidContract check for C3 Invalid inputs raise ValueErrorexit 0, 1.47 s
$ pytest test_contract_checkout.py::test_chk_invalid (candidate isolated in a child process; JUnit report required)
. [100%] ------------------- generated xml file: /work/results/E3.xml ------------------- 1 passed in 0.25s
full output sha256 a9e30d7bcdf45156397977edc0b93deb820f82a67f702e4485a298f7797bb672
passchk-signatureContract check for C4 Public signature of apply_discount is unchangedexit 0, 1.3 s
$ pytest test_contract_checkout.py::test_chk_signature (candidate isolated in a child process; JUnit report required)
. [100%] ------------------- generated xml file: /work/results/E4.xml ------------------- 1 passed in 0.25s
full output sha256 bfb8d6848ec5a3d5e04b30c41bdb5e3a4cb44b6efb19b1b0c4bf9f56292832db
passrepo-testsThe repository's own tests (supporting evidence, never sufficient alone)exit 0, 1.3 s
$ pytest (the repository's own suite)
... [100%] ------------------- generated xml file: /work/results/E5.xml ------------------- 3 passed in 0.15s
full output sha256 9c0d6aaba4922498b90989f24763c3ef7eef5632bc272ac3f026774f108fbc24
Provenance
- Contract hash
- sha256:a993720462a9ccc6f2f801094bba64f53629c0a65582b877c611c487bf3f3d72
- Approved by
- Shriram28Baskar on 2026-11-20T09:00:00Z
- base sha
- 8653281964fe5be36ee96cdd788b2b4f29e274dd
- head sha
- b1ae7fe6ff3a3cb0e7c9fac9249ded5b8b1ab9c0
- image id
- sha256:6d95e12900d2d17e6a524156d922b828618e30892cf491e66a7ebf56fbf0f047
- base image
- python:3.11-slim@sha256:07d4824036af339fa1b6ef769cc99d9c10a141769538b52b3b597c84f7a7b535
- engine version
- 0.2.1
- python
- 3.11.3
- generated at
- 2026-11-22T16:01:39+00:00