Repository navigation
bench.docparse score refuses two parses that share a name - #363
Merged
Merged
Conversation
`score a=old.jsonl a=new.jsonl` ran: the scores are keyed by name, so the second parse overwrote the first, the table printed one column twice and the paired difference a - a read 0.000, "no change" for any two parses. The score command now stops with "two parses share a name: a" before scoring, as downstream already does for two systems that share a namespace. A test in bench/test_docparse.py calls main with a repeated name and checks the message. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
Why
python -m bench.docparse score a=old.jsonl a=new.jsonlaccepted two parses under one name.scorekeys its results by name, so the second parse overwrote the first: the table printed the same column twice and the paired differencea - aread 0.000 [+0.000, +0.000], "no change" for any two parses.downstreamalready refuses the matching case ("two systems share a namespace").The
scorebranch ofbench/docparse/__main__.pynow stops withmore than one parse is named: <names>before reading any parse.Scope and risk
The docparse bench CLI only. No server, wire or docs change; the one documented
scoreexample uses distinct names.Compatibility, rollout and rollback
Tests
bench/test_docparse.py::test_score_refuses_two_parses_that_share_a_name:main(["score", "b=x.jsonl", "a=y.jsonl", "b=z.jsonl", "a=w.jsonl", "c=v.jsonl"])exits withmore than one parse is named: a, b. Onmainit went on to score and failed on the missing file; it passes here.bench/test_docparse.py: 44 passed.ruff formatandruff check: clean.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.main; no merged migration is edited.frontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code