Skip to content

feat: implement CI monitoring and agentic repair loop (monitor_ci.py)#18

Open
adamsithr wants to merge 1 commit into
codegraphtheory:mainfrom
adamsithr:bounty/ci-repair-loop
Open

feat: implement CI monitoring and agentic repair loop (monitor_ci.py)#18
adamsithr wants to merge 1 commit into
codegraphtheory:mainfrom
adamsithr:bounty/ci-repair-loop

Conversation

@adamsithr

Copy link
Copy Markdown

Bounty Payout Address:

  • Network: Solana (SOL)
  • Address: 7jXAK7dDBwkAJT67WjPeu8cg577y3x1oMp7ZCSMV18mR

Summary

This PR implements the CI monitoring and agentic repair loop driver in monitor_ci.py to satisfy Issue #12.

Acceptance Criteria Met

  • CI Monitoring & Repair (monitor_ci.py): Implemented a state machine transition driver checking GitHub Actions check run statuses.
  • Isolated Context & Log Excerpts: Fetches job log details using gh api and isolates the last 20 lines as a brief excerpt for the repair delegate's prompt.
  • State Transitions: Drives transition logic from CI_WAIT to REPAIR (triggering label hermes:repairing and posting log details) or BLOCKED (triggering label hermes:blocked when max attempts cap is exceeded).
  • Transition Gates: Validates transition logic table in parameterized unit tests inside tests/test_monitor_ci.py.
  • Local CI Passing: Clean pass for all unit tests, type checks (mypy), and ruff checks.

Closes #12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI repair loop with capped repair delegate

1 participant