Deterministic CSV batch upsert fix with 3-lane verification & anti-tamper gate
Real local execution of a deterministic repository bug fix demonstrating multi-round F2P/P2P verification, frozen test hashing, and a live anti-cheat counterexample where green pytest output is still rejected.
Baseline lane fails deterministically on `test_duplicate_id_uses_latest_row` across 2 rounds while both P2P regression tests pass.
{
"command": "pytest -q --tb=short tests/test_importer.py::test_duplicate_id_uses_latest_row"
}Confirm clean assertion failure (not an environment/import error) before editing source code.
F [100%]
=================================== FAILURES ===================================
______________________ test_duplicate_id_uses_latest_row _______________________
tests/test_importer.py:32: in test_duplicate_id_uses_latest_row
assert res.records["R-201"]["status"] == "settled"
E AssertionError: assert 'pending' == 'settled'
E
E - settled
E + pending
=========================== short test summary info ============================
FAILED tests/test_importer.py::test_duplicate_id_uses_latest_row - AssertionE...
1 failed in 0.02s