Skip to content

fix(report): Windows-safe result filenames and UTF-8 score cards - #351

Merged
the-data-viking merged 2 commits into
mainfrom
fix/windows-safe-result-filenames
Oct 9, 2026
Merged

the-data-viking merged 2 commits into
mainfrom
fix/windows-safe-result-filenames

Conversation

@the-data-viking

@the-data-viking the-data-viking commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Filename slug: report.provider_slug() now replaces \ / : * ? " < > | in provider names, and is used by report.save() plus the three CLI save sites (replicate, contamination, contamination-deident). Provider names containing :, such as althing/claude-code:haiku from 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 with encoding="utf-8". The markdown bar glyphs (█░) raised UnicodeEncodeError under Windows' cp1252 default.

  • CI: pin ruff to 0.15.22, the last version main passed 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

  • New tests in tests/test_report.py: slug cases, plus a save() 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 on main.
  • Ruff: no new findings in the touched files.
  • Live check: synthbench run -p althing -m claude-code:haiku ... on Windows now writes globalopinionqa_althing_claude-code_haiku_<ts>.json/.md.

🤖 Generated with Claude Code

- 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>
@the-data-viking the-data-viking added the semver:patch Triggers patch version bump on merge label Oct 9, 2026
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>
@the-data-viking
the-data-viking merged commit 2a1e194 into main Oct 9, 2026
13 checks passed
@the-data-viking
the-data-viking deleted the fix/windows-safe-result-filenames branch October 9, 2026 21:26

This branch was successfully deployed

1 active deployment
pypi — ecbf8acc Deployed Oct 9, 2026 by the-data-viking via Publish synthbench-eval to PyPI #251
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:patch Triggers patch version bump on merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants