Skip to content

feat(incidents): bulk ignore and resolve internal incidents (SI-5062) - #264

Draft
Snaylaker wants to merge 1 commit into
mainfrom
mehdihimmid/si-5062-bulk-ignore-and-resolve-for-internal
Draft

Snaylaker wants to merge 1 commit into
mainfrom
mehdihimmid/si-5062-bulk-ignore-and-resolve-for-internal

Conversation

@Snaylaker

Copy link
Copy Markdown
Contributor

Summary

  • Extend the existing internal ignore/resolve tools with incident_ids (1–50 distinct IDs), keeping incident_id calls and their response shape compatible.
  • Process each ID sequentially through the existing API endpoints, with the same user-provided ignore reason or revocation answer for the whole batch.
  • Return ordered per-ID outcomes: changed, already in the requested state, refused, uncertain, or skipped after rate limiting. Individual failures preserve other results; rejected tokens retain the existing reauthentication challenge.
  • Stop on 429 without waiting or retrying, including during conflict read-back. Preserve Retry-After guidance and existing non-retried write behavior.
  • Document the cap, shared answer, per-ID API requests, and failure handling in tool descriptions and README.

Examples

{"incident_ids": [101, 102, 103], "ignore_reason": "low_risk"}

Arguments for ignore_internal_incident; the reason must come from the user.

{"incident_ids": [101, 102, 103], "secret_revoked": true}

Arguments for resolve_internal_incident; the revocation answer must come from the user.

Validation

  • Full local suite: 758 passed, 1 xfailed (env -u VIRTUAL_ENV ENABLE_LOCAL_OAUTH=false .venv/bin/python -m pytest -vv --tb=short).
  • Ruff lint and formatting checks.
  • Pyrefly: 0 errors (4 existing warnings).
  • Unit and MCP e2e coverage for legacy single calls, multiple IDs, confirmed conflicts, partial failures, timeouts/503 uncertainty, validation, scopes, authentication, and 429 stops.
  • Commit/push secret scans: no secrets found.
  • Preprod: validate an agent ignoring a batch of approved test incidents. Live incident writes have not been performed; this PR stays draft pending that check.

Issue

https://linear.app/gitguardian/issue/SI-5062/bulk-ignore-and-resolve-for-internal-incidents-in-the-mcp-server

@linear

linear Bot commented Nov 30, 2026

Copy link
Copy Markdown

SI-5062

This branch has not been deployed

No deployments
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.

2 participants