[Testing 10] test: offline eval harness — citation accuracy, injection resistance, privilege leakage - #231
Closed
amal66 wants to merge 1 commit into
Closed
[Testing 10] test: offline eval harness — citation accuracy, injection resistance, privilege leakage#231amal66 wants to merge 1 commit into
amal66 wants to merge 1 commit into
Conversation
Ported from #45 (fork PR against the upstream-main mirror) onto current main. 8 fixture-driven checks: citation accuracy, prompt-injection resistance, privilege/PII leakage. No network, no LLM calls, no secrets — node evals/run.mjs --threshold 1.0 verified passing 8/8 locally. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
QA Runner seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Collaborator
|
Thanks for this. Going to reject this for now due to limited usefulness of the evals and format. A fuller real evals suite can be implemented in the future which aligns with the format of actual assistant responses and involves real documents. |
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
The offline eval harness from the reference index (#205, row amal66#45): deterministic prompt-safety and behavior gates that run against committed fixtures — no network, no LLM calls, no secrets. Fully standalone (no dependency on any other PR in the testing series; doesn't even need the vitest harness).
Changes
evals/— runner (run.mjs), engine, scorers, fixture runner, golden dataset (8 cases + JSON schema), fixture model outputs, and a README covering how to add cases and how to plug in a live-model runner later.Why
An LLM legal product can regress in ways unit tests can't see — a prompt tweak that starts leaking privileged content or following injected instructions. This gives a cheap, deterministic scorecard for exactly those behaviors, gated at
--threshold 1.0, cheap enough to run on every PR (wired up by the CI workflow PR in this series, but runnable on its own today).Testing
node evals/run.mjs --threshold 1.0— 8/8 cases passing locally on this branch.Based directly on
main; no shared commits with the other testing PRs.🤖 Generated with Claude Code