Skip to content

feat: add full event log export for all scan events#277

Merged
msoedov merged 1 commit intomsoedov:mainfrom
niveshdandyan:add-full-event-log
Feb 3, 2026
Merged

feat: add full event log export for all scan events#277
msoedov merged 1 commit intomsoedov:mainfrom
niveshdandyan:add-full-event-log

Conversation

@niveshdandyan
Copy link
Contributor

Summary

  • Adds export_full_log() method to FuzzerState class that exports a comprehensive log of all events
  • Creates full_scan_log.csv with columns: event_type, module, prompt, status_code, content, refused
  • Includes errors, refusals, and successful outputs (not just failures)

This addresses issue #100 by providing a complete audit trail of all fuzzer events for debugging and analysis purposes.

Changes

  • agentic_security/probe_actor/state.py: Added export_full_log() method
  • agentic_security/probe_actor/fuzzer.py: Call export_full_log() after scan completes in both single-shot and many-shot scan functions

Test plan

  • Run a scan and verify full_scan_log.csv is created alongside failures.csv
  • Verify CSV contains all event types (error, refusal, success)
  • Verify columns are properly populated

Closes #100

Add export_full_log() method to FuzzerState that exports a comprehensive
log of all events including errors, refusals, and successful outputs.

Previously only failures were exported. This change addresses issue #100
by creating a complete audit trail in full_scan_log.csv with event type,
module, prompt, status code, content, and refused flag columns.

Co-Authored-By: Nivesh Dandyan <niveshdandyan@gmail.com>
@msoedov
Copy link
Owner

msoedov commented Feb 3, 2026

@niveshdandyan Thank you for the patch!

@msoedov msoedov merged commit 5b90eb0 into msoedov:main Feb 3, 2026
0 of 4 checks passed
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.

Add full log file of all events in fuzzer.py

2 participants