Skip to content

Grow the detection benchmark corpus with more benign sessions #25

Done
im02-crypto/agentmetry
#1

Description

@blitzcrieg1

Add one synthetic benign session to the detection benchmark. This is a corpus-only starter task for the first-PR pilot.

Suggested case

Record a fictional developer previewing which untracked files Git would remove with git clean -nd, then checking git status --short. The cleanup command is a dry run and removes no files. This case checks whether a destructive-looking command stays quiet when it only previews changes.

Comment claim here before starting so I can confirm scope and avoid duplicate work.

What to submit

  • Add one synthetic JSONL session under the packaged detection corpus. Use this benign fixture as a format example. Write the events by hand using invented paths and identifiers. Keep real recorder exports out of the PR.
  • Add an entry to corpus.yaml with benign: true, expect: [] and a note explaining why the sequence might look destructive and why it should stay quiet.
  • Run agentmetry benchmark and pytest -q. Report the benchmark results and update any README count that changed to the measured value. If you cannot run a check locally, say so in the PR.
  • Link this issue in the PR. First-time contributors may need maintainer approval before GitHub Actions starts.

If the preview triggers a finding, share the synthetic sequence and rule name here. A confirmed false positive can get its own issue and regression fix.

Accepted work earns contributor credit and priority review. Bounty program and review terms

Activity

  1. added
    good first issue
    detection-rule
    on Jul 28, 2026
  2. added
    bounty
    on Nov 24, 2026
  3. bewfordq commented on Nov 25, 2026

    @bewfordq
    Contributor

    claim

    Plan: one synthetic benign JSONL session - developer runs git clean -nd (dry run, removes nothing) then git status --short, modelled on the linked benign fixture, plus the matching expectation in corpus.yaml. Will comment again if the fixture schema differs from what the issue describes.

  4. im02-crypto commented on Nov 26, 2026

    @im02-crypto
    Contributor

    Submitted im02-crypto#1 (linked as #1).

    I see bewardq claimed this an hour ago and opened #490 for the same case — mine covers the same ground: git clean -nd, then git status --short, with the matching corpus.yaml entry and the README count updated to 105 (53/52).

    Happy to let theirs land. If a second variant is not useful, feel free to close #1 and I will take the next unclaimed corpus task instead.

    Local run: agentmetry benchmark → 105 cases, 0 missed, 0 false positives; pytest -q → 2976 passed, 7 skipped.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bountydetection-rulegood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions