Skip to content
PROVECODE

Recorded run: cap raised to 25% under contract v2

The business approved contract v2 first. The candidate raised the cap and updated the test to match.

Compare with: cap removed, test weakened

Recorded run

A real engine run that executed checks in a Docker sandbox. Full provenance below.

Why this verdict

  • C1: all contract-owned checks passed; no blocking findings.
  • C2: all contract-owned checks passed; no blocking findings.
  • C3: all contract-owned checks passed; no blocking findings.
  • C4: all contract-owned checks passed; no blocking findings.

Requirements in contract checkout-pricing v2

ConditionRequirementStatus
C1Discount is capped at 25% (raised from 20%, approved by the business)proven
C2Discount results are correct for valid inputsproven
C3Invalid inputs raise ValueErrorproven
C4Public signature of apply_discount is unchangedproven

What changed in the tests (1)

  • Info

    V0: Expected value changed (strength unchanged)

    test_discount_is_capped

    The expected value changed; comparison strength is unchanged.

    tests/test_pricing.py
    7-assert apply_discount(100, 0.50) == 80.00
    7+assert apply_discount(100, 0.50) == 75.00

    Guards C1 “Discount is capped at 25% (raised from 20%, approved by the business)” (mandatory). Covered by the approved contract change to C1, so it does not block.

Execution evidence (5)

Open a row to see the command and its raw output.

passchk-capContract check for C1 Discount is capped at 25% (raised from 20%, approved by the business)exit 0, 1.42 s

$ pytest test_contract_checkout.py::test_chk_cap (candidate isolated in a child process; JUnit report required)

.                                                                        [100%]
------------------- generated xml file: /work/results/E1.xml -------------------
1 passed in 0.26s

full output sha256 022110f5990ad56d2b32785d72acd64235cb32f270a6f82e98211d9bb386ce6f

passchk-valuesContract check for C2 Discount results are correct for valid inputsexit 0, 1.28 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.16s

full output sha256 29fedad6fca0a39b87bfabc8af67a8cb3ec83f63452f5def4287641583b907af

passchk-invalidContract check for C3 Invalid inputs raise ValueErrorexit 0, 1.42 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.18s

full output sha256 aeb643e9966842a4ec79586f91fed64d3e806b9e783e8a1c7a15e07a56111df9

passchk-signatureContract check for C4 Public signature of apply_discount is unchangedexit 0, 1.47 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.19s

full output sha256 7ddc6e3b1e75b1965d163bc81c0c36a42999d1cddbbad1d04bb2214be9b9a9e1

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:8b78a4dbab8fd55f00006e14b9dcc557b69ff0a8871669c47b3e0ad058cd19a2
Approved by
Shriram28Baskar on 2026-11-20T09:00:00Z
base sha
8653281964fe5be36ee96cdd788b2b4f29e274dd
head sha
08ca7f23363ccbccd81ef64522de61367057d5fb
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:48+00:00