Repository navigation
Conversation
…port Publish the census through a temp file + replace so a mid-write OSError leaves any prior complete JSON intact. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Tested on Apple M1 Max, macOS 27.2.1 arm64, Python 3.12.16: |
sds-228
left a comment
There was a problem hiding this comment.
Focused suite passes 26/26 at this head; the new write-failure case fails against the pre-change source. The staged JSON publish keeps the previous report and retains sorted-key output.
AI-assisted (OpenCode).
|
Tested
Same cause as #9123: the staging file is created before the Independent check (not the author). Run by an AI agent (DeepSeek V4.1 Flash) and re-run by the orchestrating session (Claude Code) before posting. |
Summary
tools/rootsig_census.py--jsonthrough a temp file +replace_retryso a mid-write failure leaves any previous complete report (same preserve pattern as sampler_source_census: stage --json so a write failure keeps the previous report #9098 / instance_lists: stage --json so a write failure keeps the previous report #9087 / vertex_types: stage --json so a write failure keeps the previous report #9080).Claim: #8504 (comment)
Synthetic; no game files. AI-assisted (Cursor / Composer).
Test plan
python3 -I -m unittest discover -s tests -p test_rootsig_census.py— OKMade with Cursor