Preserve deep + flat eval runs and add a comparison toggle - #35
Merged
Conversation
Previously the output filename was {article_id}_{version}_{model_sig}.json with
no mode component, so a deep run and a flat run of the same article+models wrote
to the same path — the second silently overwrote the first, making side-by-side
comparison impossible.
- bias_eval: encode mode in the output filename
({article_id}_{version}_{model_sig}_{mode}.json) so deep and flat results
coexist on disk. Non-destructive: _already_evaluated's glob and build_index's
content-based reads are unaffected; legacy files keep their names.
- article_eval page:
- Add a deep / flat / both mode selector. "both" evaluates each mode in
sequence in the background thread, writing one file per mode, and only
runs modes not already cached.
- Replace the single-result loader with _load_results_by_mode(), which
discovers every stored run for the article and keys them by mode (legacy
untagged files treated as deep).
- Completion polling now waits for all requested modes, with an
"N/M modes complete" progress hint.
- Results view gains a mode toggle (shown only when >1 mode exists), a caption
showing the displayed run's mode + models, and mode-suffixed download names.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01669jmknuhhZY3vBqwpDWvF
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.
Previously the output filename was {article_id}{version}{model_sig}.json with no mode component, so a deep run and a flat run of the same article+models wrote to the same path — the second silently overwrote the first, making side-by-side comparison impossible.
bias_eval: encode mode in the output filename ({article_id}{version}{model_sig}_{mode}.json) so deep and flat results coexist on disk. Non-destructive: _already_evaluated's glob and build_index's content-based reads are unaffected; legacy files keep their names.
article_eval page:
Claude-Session: https://claude.ai/code/session_01669jmknuhhZY3vBqwpDWvF