|
| 1 | +# Operations |
| 2 | + |
| 3 | +## Run the demo |
| 4 | + |
| 5 | +```bash |
| 6 | +gh workflow run demo-ci.yml -R Coding-Autopilot-System/autopilot-demo |
| 7 | +gh issue list -R Coding-Autopilot-System/autopilot-demo --label autofix --label queued |
| 8 | +gh pr list -R Coding-Autopilot-System/autopilot-demo |
| 9 | +``` |
| 10 | + |
| 11 | +## Demo runbook |
| 12 | + |
| 13 | +1. Trigger `.github/workflows/demo-ci.yml` with `simulate_failure=true` to produce a known |
| 14 | + failure signal. Regular pushes and default dispatches stay green. |
| 15 | +2. Confirm `.github/workflows/autopilot-create-issue.yml` creates an `autofix + queued` issue. |
| 16 | +3. Watch `autopilot-core` pick up the issue and open a PR back into this repo. |
| 17 | +4. Use this repo's issue, branch, and PR history as the audit trail for the demo. |
| 18 | + |
| 19 | +## CI workflows |
| 20 | + |
| 21 | +| Workflow | Purpose | |
| 22 | +|---|---| |
| 23 | +| `ci.yml` | Portfolio CI — YAML validation (always passes) | |
| 24 | +| `demo-ci.yml` | Demo trigger — simulates CI activity to test the intake flow | |
| 25 | +| `autopilot-create-issue.yml` | Intake — creates the `autofix + queued` issue on workflow failure | |
| 26 | +| `codeql.yml` | CodeQL static analysis | |
| 27 | +| `pr-lint.yml` | PR metadata/title linting | |
| 28 | +| `stale.yml` | Stale issue/PR sweep | |
| 29 | +| `pages.yml` | Publishes docs to GitHub Pages | |
| 30 | + |
| 31 | +There is no coverage-percentage gate in this repo — `ci.yml` validates workflow YAML only, by |
| 32 | +design (this repo has no application code to test). |
| 33 | + |
| 34 | +## Local verification |
| 35 | + |
| 36 | +```bash |
| 37 | +python -m unittest discover -s tests -v |
| 38 | +``` |
| 39 | + |
| 40 | +Run this before triggering the demo if CI fails at the validation step, per the README's |
| 41 | +troubleshooting guidance. |
| 42 | + |
| 43 | +## Reset and troubleshooting |
| 44 | + |
| 45 | +1. Close the completed intake issue and merge or close its repair pull request before the next |
| 46 | + demonstration. |
| 47 | +2. Re-run with `simulate_failure=true`; intake reopens the matching issue when the same commit |
| 48 | + is demonstrated again. |
| 49 | +3. If no issue appears, inspect |
| 50 | + `gh run list -R Coding-Autopilot-System/autopilot-demo --workflow autopilot-create-issue.yml` |
| 51 | + and confirm the failed run was named `Demo CI`. |
| 52 | +4. If the issue remains queued, verify the `autopilot-core` operator is running and can read |
| 53 | + issues and create branches and pull requests in this repository. |
| 54 | + |
| 55 | +<!-- docs-verified: ec62179aa2c20bc731542de4ac3fec9cc94a831d 2026-07-08 --> |
0 commit comments