Skip to content

Add incident reports for guard-triggered traces#265

Merged
bmdhodl merged 3 commits intomainfrom
codex/incident-reports
Mar 26, 2026
Merged

Add incident reports for guard-triggered traces#265
bmdhodl merged 3 commits intomainfrom
codex/incident-reports

Conversation

@bmdhodl
Copy link
Owner

@bmdhodl bmdhodl commented Mar 26, 2026

Summary

  • add a dependency-free incident reporting module for guard-triggered traces
  • extend the CLI with agentguard incident and agentguard report --format markdown|html|json
  • document the incident-report flow in the README, getting-started guide, and cost guardrail example

Why

This turns guard trips into a product-led proof-of-value moment: local traces can now become shareable incident summaries with conservative savings estimates and a clear upgrade path to the hosted dashboard.

Testing

  • python -m ruff check sdk/agentguard/
  • python -m pytest sdk/tests/test_architecture.py -v
  • python -m bandit -r sdk/agentguard/ -s B101,B110,B112,B311 -q
  • python -m pytest tests/test_reporting.py tests/test_cli_report.py -v (from sdk/)

Full suite note

python -m pytest sdk/tests/ -v --cov=agentguard --cov-report=term-missing --cov-fail-under=80 reached 508 passes with 2 unrelated failures on this Windows environment:

  • sdk/tests/test_init.py::TestInit::test_init_custom_trace_file
  • sdk/tests/test_tracing.py::test_trace_emits_events

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6e5789bf45

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@bmdhodl bmdhodl merged commit d6744ac into main Mar 26, 2026
10 checks passed
@bmdhodl bmdhodl deleted the codex/incident-reports branch March 26, 2026 20:57
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.

1 participant