Repository navigation
feat(push): send score explanations and trace-rule violations - #38
Merged
Merged
Conversation
Each uploaded score row now carries the record's one-line explanation and, for trace_invariants rows that measured, the rules each side broke (rule id, type, tool, round, detail, sample). rules_checked, owner and failure_categories stay local; they already ship in evaluator_config and decision. The traces the verdicts were computed from upload already, so this adds no new exposure. Re-vendors the server schema that accepts the fields. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…d schema Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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
explanationand, fortrace_invariantsrows that measured,violations({source, target}of{rule_id, rule_type, tool, round_index, detail, sample}), filtered to the server's contract keys; errored rows sendnullrules_checked,ownerandfailure_categoriesare not repeated on the row (they already ship inevaluator_config/decision)bundle_manifest.schema.jsonfrom the server's export (byte-identical)argumentsrules, the quoted offending value, even though the timelines stay localDepends on
evalshift/evalshift-serverPR "feat: carry score explanations and trace-rule violations" being deployed, not just merged: the server's bundle models areextra="forbid", so pushes from this branch to the current server 422 at finalize. Do not release the CLI before that deploy is live.Until the server PR merges,
tests/unit/test_bundle_shape.py::test_the_vendored_schema_matches_the_server_exportfails locally when../evalshift-serveris onmain(it compares against the sibling checkout); it skips in CI. Re-run it un-deselected after the server merge.Verification
ruff check,ruff format --check,mypy --strict,pytest -m "not integration": 2565 passed (the one environmental deselect above)violationsrow validates against the vendored schema (new drift-guard test)testApp's planner run to a local server running the server branch: the example-detail route returned the rule verdicts and the web panel rendered them🤖 Generated with Claude Code