Skip to content

Add public benchmark of SQL guards for LLM agents (#174) - #177

Merged
jmmana merged 1 commit into
mainfrom
feat/174-guard-benchmark
Nov 30, 2026
Merged

jmmana merged 1 commit into
mainfrom
feat/174-guard-benchmark

Conversation

@jmmana

@jmmana jmmana commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Closes part of #174 (FEAT-005).

  • benchmarks/guards/run.py: harness with adapters, bypass rate, false-positive rate and ms/check per validator and dialect, JSON output.
  • benchmarks/guards/legitimate.yaml: 34 legitimate queries (columns named open/close/version/user/set, keywords in strings and comments).
  • Attack corpus reuses the 69 read-only-class cases of tests/corpus.
  • docs/BENCHMARK.md: first table (sqlguardllm vs two keyword baselines), publication rule and checklist for third-party adapters.
  • Tests in tests/test_guard_benchmark.py.

Third-party adapters are intentionally not included; they follow the publication rule in the docs. The existing benchmarks/ directory is reused (benchmarks/guards/) instead of adding a second bench/ directory.

Leaves out #155, #156, package versions and release.yml.

🤖 Generated with Claude Code

Harness, legitimate-query corpus, sqlguardllm and keyword baselines,
publication rule and checklist in docs/BENCHMARK.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 30, 2026 13:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@jmmana
jmmana merged commit f4144e6 into main Nov 30, 2026
18 checks passed
@jmmana
jmmana deleted the feat/174-guard-benchmark branch November 30, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants