feat: expand datasets to 55 samples and add CI regression command - #13
Merged
Merged
Conversation
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
5 new benchmark datasets with 52 additional samples (55 total across all datasets):
encoding-attacks(10 samples): base64 encoded instructions, unicode tricks, HTML entity/comment abuse, URL encoding, zero-width chars, markdown image exfiltrationfalse-positives(10 samples): benign content that superficially resembles attacks — security training docs, legitimate CEO emails, webhook configs, audit reports, i18n contenttool-abuse(10 samples): targeted exploitation of each forbidden tool (send_external_webhook,delete_memory_note,mark_safe_to_ignore) plus multi-tool chainsauthority-escalation(10 samples): CEO impersonation, fake system admin overrides, legal counsel demands, stacked multi-authority claimsdata-exfiltration(12 samples): direct/disguised webhook sends, memory poisoning, markdown beacons, social engineering chains, cover-up sequencesCI regression command (
dual-llm-bench ci):dual-llm-bench baseline <traces.jsonl>saves current scores as a baseline JSON filedual-llm-bench ci <traces.jsonl> --baseline .dlb-baseline.jsoncompares against baseline and exits non-zero if any metric regresses beyond a configurable threshold (default 5%)Generalized dataset loader to support multiple datasets via a registry dict instead of hardcoded
ifcheckWidened
BenchmarkSuite.from_builtin()to acceptstrinstead ofLiteral["pycon-core"]Closes #1, closes #9
Test plan
test_dataset_loads_successfullyparametrized)baselinecommand creates valid JSON filecicommand passes when scores match baselinecicommand fails with exit code 1 on regressioncihandles missing baseline fileruff checkclean,mypy --strictclean