|
1 | | -# Autopilot Demo Repo |
| 1 | +# autopilot-demo |
2 | 2 |
|
3 | | -Trigger the `Demo CI` workflow to produce a failure. The intake workflow will open an issue with `autofix` and `queued` labels. |
| 3 | +[](https://github.com/Coding-Autopilot-System/autopilot-demo/actions/workflows/ci.yml) |
| 4 | +[](https://github.com/Coding-Autopilot-System/autopilot-demo/actions/workflows/demo-ci.yml) |
| 5 | +[](LICENSE) |
| 6 | + |
| 7 | +**Demo target for the Coding-Autopilot-System AI repair pipeline** — triggers intake workflows when CI fails, demonstrating end-to-end agentic fix from failure detection to pull request. |
| 8 | + |
| 9 | +Part of the [Coding-Autopilot-System](https://github.com/Coding-Autopilot-System) autonomous CI repair platform. The control plane lives in [autopilot-core](https://github.com/Coding-Autopilot-System/autopilot-core). |
| 10 | + |
| 11 | +## How the demo works |
| 12 | + |
| 13 | +```mermaid |
| 14 | +flowchart LR |
| 15 | + A[Trigger Demo CI\nworkflow_dispatch] --> B[demo-ci.yml runs\nubuntu-latest] |
| 16 | + B --> C{CI result} |
| 17 | + C -->|failure| D[autopilot-create-issue.yml\ncreates intake issue] |
| 18 | + D --> E[Issue: autofix + queued] |
| 19 | + E --> F[autopilot-core operator\npicks up issue] |
| 20 | + F --> G[Codex generates fix] |
| 21 | + G --> H[Pull Request opened] |
| 22 | +``` |
| 23 | + |
| 24 | +1. Trigger `Demo CI` via `workflow_dispatch` to simulate a CI failure. |
| 25 | +2. `autopilot-create-issue.yml` detects the failure and creates an issue labeled `autofix + queued`. |
| 26 | +3. The [autopilot-core](https://github.com/Coding-Autopilot-System/autopilot-core) operator scans for the issue and invokes Codex. |
| 27 | +4. Codex generates a targeted fix and opens a pull request in this repo. |
| 28 | + |
| 29 | +## Running the demo |
| 30 | + |
| 31 | +```bash |
| 32 | +# Trigger the Demo CI workflow (simulates a failure) |
| 33 | +gh workflow run demo-ci.yml -R Coding-Autopilot-System/autopilot-demo |
| 34 | + |
| 35 | +# Watch for the intake issue to be created |
| 36 | +gh issue list -R Coding-Autopilot-System/autopilot-demo --label autofix --label queued |
| 37 | + |
| 38 | +# Monitor autopilot-core for the fix PR |
| 39 | +gh pr list -R Coding-Autopilot-System/autopilot-demo |
| 40 | +``` |
| 41 | + |
| 42 | +## Workflows |
| 43 | + |
| 44 | +| Workflow | Purpose | |
| 45 | +|----------|---------| |
| 46 | +| `ci.yml` | Portfolio CI — YAML validation (always passes) | |
| 47 | +| `demo-ci.yml` | Demo trigger — simulates CI activity to test intake flow | |
| 48 | +| `autopilot-create-issue.yml` | Intake — creates autofix+queued issue on workflow failure | |
| 49 | + |
| 50 | +## Documentation |
| 51 | + |
| 52 | +- [Wiki](https://github.com/Coding-Autopilot-System/autopilot-demo/wiki) — setup guide, architecture, configuration reference |
| 53 | +- [autopilot-core](https://github.com/Coding-Autopilot-System/autopilot-core) — operator control plane |
| 54 | +- [Coding-Autopilot-System org](https://github.com/Coding-Autopilot-System) |
0 commit comments