Skip to content

feat(ai-remediation): add tree-sitter dependencies, patch -p1 fallback, and E2E documentation - #560

Merged
SecH0us3 merged 1 commit into
masterfrom
feat/ai-remediation-local-testing
Aug 5, 2026
Merged

feat(ai-remediation): add tree-sitter dependencies, patch -p1 fallback, and E2E documentation#560
SecH0us3 merged 1 commit into
masterfrom
feat/ai-remediation-local-testing

Conversation

@SecH0us3

@SecH0us3 SecH0us3 commented Aug 5, 2026

Copy link
Copy Markdown
Owner

Summary

This PR implements improvements and E2E documentation for the AI Remediation & Automated Patching workflow:

  1. Docker AI Runner (Dockerfile.ai): Added build dependencies (gcc, g++, musl-dev, python3-dev, libffi-dev) required to compile tree-sitter for Mistral Vibe.
  2. Resilient LLM Patching (GitPatcher): Added --3way, --recount, --ignore-space-change and patch -p1 --ignore-whitespace fallback to gracefully apply AI-generated diff patches regardless of line count offsets.
  3. E2E Documentation & Example Draft PR (docs/ai_remediation.md): Updated documentation with step-by-step 2-Pass AI workflow (Pass 1 Triage + Pass 2 Remediation) and referenced live example Draft PR [DEMO]: fix(security): resolve BOLA vulnerability in /users handler [vibe-remediation-1785955870] #559.

Verification

@SecH0us3
SecH0us3 merged commit 722f513 into master Aug 5, 2026
7 checks passed
@SecH0us3
SecH0us3 deleted the feat/ai-remediation-local-testing branch August 5, 2026 19:10
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