Autonomous Remediation & PRs API
Generate synthesized patches, verify them in ephemeral micro-sandboxes, and open automated GitHub pull requests.
Three-Stage Remediation Pipeline
1. Propose Diff: Synthesize minimal idiomatic code modification.
2. Sandbox Verify: Run compiler and unit tests inside isolated micro-enclave.
3. Pull Request Creation: Submit digitally signed GitHub PR.
Endpoints Reference (1)
POST/api/v1/remediation/propose
Permission: REMEDIATION_WRITESynthesize code fix for a finding
Request Example (cURL)
curl -X POST "http://localhost:8000/api/v1/remediation/propose" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"finding_id": "fnd_99812"}'Response (200 Patch diff generated)
{
"patch_id": "pch_01a",
"diff": "--- a/auth.py\n+++ b/auth.py\n@@ -42,1 +42,1 @@\n-db.execute(\"SELECT * FROM users WHERE email = '%s'\" % email)\n+db.execute(\"SELECT * FROM users WHERE email = :email\", {\"email\": email})",
"status": "PROPOSED"
}