Repository navigation
fix(report): Windows-safe result filenames and UTF-8 score cards - #351
Merged
Merged
Conversation
- Replace path separators and Windows-invalid filename characters in the provider slug. A ':' (e.g. althing/claude-code:haiku) made NTFS write the score card into an alternate data stream of a truncated file. - Write the JSON/markdown score cards as UTF-8; the markdown bar glyphs crashed under the cp1252 default codepage. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Newer unpinned ruff releases flag ~225 pre-existing findings, failing lint on every PR regardless of the change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Filename slug:
report.provider_slug()now replaces\ / : * ? " < > |in provider names, and is used byreport.save()plus the three CLI save sites (replicate, contamination, contamination-deident). Provider names containing:, such asalthing/claude-code:haikufrom the new Althing subscription CLI providers (feat(llm): subscription CLI providers (claude-code:*, codex:*) + sampling doc correction Althing#592), made NTFS write the score card into an alternate data stream of a truncated file. The file looked missing even though the run succeeded.UTF-8 score cards:
save()now writes withencoding="utf-8". The markdown bar glyphs (█░) raisedUnicodeEncodeErrorunder Windows' cp1252 default.CI: pin ruff to 0.15.22, the last version
mainpassed with on 2026-07-20. Unpinned installs now fetch a newer ruff that flags about 225 findings in existing code, which fails lint on every PR. The pin keeps CI green; bump it deliberately alongside the fixes.Spaces in provider names are left as they are, so existing filename conventions don't change on Linux and macOS.
Testing
tests/test_report.py: slug cases, plus asave()round-trip with a:provider name that checks the filename, the JSON provider value and the UTF-8 markdown.pytest tests: 1163 passed. The 2 failures (test_findings_drift,test_runner_fails_when_adapter_not_registered) also fail onmain.synthbench run -p althing -m claude-code:haiku ...on Windows now writesglobalopinionqa_althing_claude-code_haiku_<ts>.json/.md.🤖 Generated with Claude Code