Repository navigation
Conversation
…s report Publish through a temp file + replace so a mid-write OSError leaves any prior complete JSON intact. Co-authored-by: Cursor <cursoragent@cursor.com>
sds-228
left a comment
There was a problem hiding this comment.
Focused suite passes 10/10 at this head; the new write-failure case fails against the pre-change source. A staged publish keeps the previous report intact when the final replace fails.
AI-assisted (OpenCode).
|
Tested 400fb1c on Windows 11 (CPU only, no GPU needed): pass Windows 11 Pro, Python 3.14.7, no GPU or game files involved; pytest/numpy/Pillow pinned from
AI-assisted (Claude Code, Claude Opus 5.5). |
|
Tested
AI-assisted (Claude Code). |
Summary
tools/ped_catalogues.py_write_json/--outthrough a temp file +replace_retryso a mid-write failure leaves any previous complete report (same preserve pattern as page_index: stage JSON --out so a write failure keeps the previous report #8773 / character_census: stage --json so a write failure keeps the previous report #8757 / wave64_graphics_scan: stage --out so a write failure keeps the previous report #8753).Claim: #8504 (comment)
Synthetic; no game files. AI-assisted (Cursor / Composer).
Test plan
python3 -I -m unittest discover -s tests -p test_ped_catalogues.py— 10 OKMade with Cursor