Skip to content

Architecture

Coding-Autopilot-System CI edited this page May 27, 2026 · 1 revision

Architecture

Role in the system

autopilot-demo is a target repository. It exists to demonstrate the Coding-Autopilot-System AI repair pipeline in action. It has no application logic of its own.

Workflows

Workflow Runner Trigger Purpose
ci.yml ubuntu-latest push/PR to main Portfolio CI badge (YAML validation, always passes)
demo-ci.yml ubuntu-latest workflow_dispatch + push to main Demo trigger - simulates a CI event
autopilot-create-issue.yml ubuntu-latest workflow_run completed Creates autofix+queued issue when watched workflow fails

Intake trigger mechanism

autopilot-create-issue.yml listens for workflow_run events. When a watched workflow completes with conclusion: failure, it:

  1. Checks if an open issue with the same title already exists (deduplication)
  2. If not: creates a new issue with labels autofix and queued
  3. If yes: comments on the existing issue

Key design decisions

  • Separation of concerns: ci.yml (portfolio badge) is separate from demo-ci.yml (intake trigger). This ensures the portfolio badge is always green regardless of demo state.
  • No application code: This is a pure demo target.
  • Idempotent intake: The autopilot-create-issue.yml deduplicates by title, preventing issue floods.

Clone this wiki locally