Skip to content

test(corpus): add benign git clean preview session (#25) - #490

Merged
blitzcrieg1 merged 1 commit into
blitzcrieg1:masterfrom
bewfordq:fix/corpus-git-clean-preview
Nov 26, 2026
Merged

blitzcrieg1 merged 1 commit into
blitzcrieg1:masterfrom
bewfordq:fix/corpus-git-clean-preview

Conversation

@bewfordq

Copy link
Copy Markdown
Contributor

Closes #25.

Adds one benign session to the detection corpus: a developer previews untracked files with
git clean -nd (dry run, removes nothing) and then checks git status --short.

Files

  • corpus/benign_git_clean_preview.jsonl - two events, schema_version 1.1.0, modelled on the linked benign fixture.
  • corpus/corpus.yaml - case previewing a git clean, expect: [], benign: true, with a note explaining
    why a destructive-looking command that only previews must stay quiet.

Verification

JSONL parses line by line and the corpus entry parses at cases[35]. The benchmark itself could not be run
here: this machine has no pydantic/pytest installed, so run_benchmark() stops at the config import. By
inspection the session should stay quiet: clean is not in _DELETE_METHODS, the delete-burst rule needs
five deletions inside its window, and there is no single-delete rule.

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.

Grow the detection benchmark corpus with more benign sessions

3 participants