Architecture
- CI failure → webhook fires
- Webhook starts Kition headless agent (CLI)
- Agent reads logs, localizes file, writes patch
- Branches, pushes, opens a PR
- Saves a fix trace to Reports/ci-fixes/
Guardrails
- Require human approval to merge
- Hooks restrict which paths the agent can touch
- Stop after 3 failed fix attempts and ping you