You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
New detection rule: repeated-denials (agent probing a guardrail) #1
Blocked by the detection freeze (2026-10-23). This edits detection/rules.py, which is hashed into the ruleset fingerprint, so a PR now would restart the dogfood clock. It waits until the maintainer ends the freeze; see CLAUDE.md and #317. Paths below updated to the agentmetry/ package layout.
An agent that hits a wall of denied tool calls is often probing a guardrail. A single denial is noise; a burst is a signal.
Task
In apps/orchestrator/agentmetry/core/audit/detection/rules.py, add a pure function rule_repeated_denials(events) and append it to REGISTRY. Fire when a session has >= 4tool_called events with action.outcome == "denied". Aggregate into one Detection (severity high) listing all offending event_ids. Reuse the existing accessors (_action_type, _outcome, _event_id, ...).
Acceptance criteria
Fires on a session with 4 denials; does not fire on 3.
Tests in apps/orchestrator/tests/test_detection_engine.py (one fires, one near-miss), using the _event(...) helper.
Claiming this one under the bounty program in #454. I have a completed implementation ready (rule_repeated_denials: ≥4 tool_called denials → one high Detection with all event_ids, plus attack/benign corpus entries and tests — official benchmark 106 cases, 0 missed, 0 false positives). Opening the PR from my fork as rumangsanya shortly; posting this claim now so the slot is marked. Happy with the current program terms (recognition now, cash when a funding round lands).
Claim noted and you are assigned, @rumangsanya. When your PR opens: CI needs a maintainer approval on the first run (normal for new contributors, I will approve it), the gate is agentmetry benchmark plus the full suite with the refreshed README block, and expectations in corpus.yaml must be written from what the session is, not what the engine prints. Looking forward to the PR.
Friendly nudge, @rumangsanya: the claim is noted and you're assigned, but no PR has opened yet. When it does, CI needs a maintainer approval on the first run (I'll approve it), and the gate is agentmetry benchmark (0 missed / 0 FP) plus the full suite with the refreshed README block. If you've hit a blocker, say so here and we'll scope it down.
Activity
rumangsanya commentedon Nov 25, 2026
Claiming this one under the bounty program in #454. I have a completed implementation ready (rule_repeated_denials: ≥4 tool_called denials → one high Detection with all event_ids, plus attack/benign corpus entries and tests — official benchmark 106 cases, 0 missed, 0 false positives). Opening the PR from my fork as rumangsanya shortly; posting this claim now so the slot is marked. Happy with the current program terms (recognition now, cash when a funding round lands).
blitzcrieg1 commentedon Nov 25, 2026
Claim noted and you are assigned, @rumangsanya. When your PR opens: CI needs a maintainer approval on the first run (normal for new contributors, I will approve it), the gate is agentmetry benchmark plus the full suite with the refreshed README block, and expectations in corpus.yaml must be written from what the session is, not what the engine prints. Looking forward to the PR.
blitzcrieg1 commentedon Nov 25, 2026
Friendly nudge, @rumangsanya: the claim is noted and you're assigned, but no PR has opened yet. When it does, CI needs a maintainer approval on the first run (I'll approve it), and the gate is agentmetry benchmark (0 missed / 0 FP) plus the full suite with the refreshed README block. If you've hit a blocker, say so here and we'll scope it down.
feat(detection): repeated-denials rule — guardrail probing burst (fixes
feat(detection): repeated-denials rule — guardrail probing burst (fixes
feat(detection): repeated-denials rule — guardrail probing burst (fixes
feat(detection): repeated-denials rule — guardrail probing burst (fixes
feat(detection): repeated-denials rule — guardrail probing burst (fixes
feat(detection): repeated-denials rule — guardrail probing burst (fixes
feat(detection): repeated-denials rule — guardrail probing burst (fixes
Detect repeated tool denials at high severity (blitzcrieg1#486)