Skip to content

feat: AI supervisor pipeline self-heal via reasoning prompt#2277

Merged
marcusquinn merged 1 commit intomainfrom
feature/pipeline-self-heal
Feb 25, 2026
Merged

feat: AI supervisor pipeline self-heal via reasoning prompt#2277
marcusquinn merged 1 commit intomainfrom
feature/pipeline-self-heal

Conversation

@marcusquinn
Copy link
Owner

Summary

  • Adds one line to the AI reasoning prompt telling it to check Phase 3 throughput metrics and create a diagnostic task when the pipeline is broken
  • Replaces the need for deterministic streak counters, cooldown stamps, and threshold constants

Why

Phase 3 was silently broken for days (PR #2275). The fix was a one-line SQL column change that any interactive session could diagnose in minutes. The supervisor already has all the information it needs (Phase 3 metrics added in v2.128.0) — it just wasn't told to act on it.

Instead of writing 150 lines of bash to detect and react to pipeline failures deterministically, we tell the AI what to look for and let it decide. The AI already runs every pulse (Phase 14), already sees the health metrics, and already has create_task as an action type.

Changes

ai-reason.sh: Added item 12 (Pipeline health) to the analysis framework in build_reasoning_prompt().

Add item 12 (Pipeline health) to the AI reasoning prompt. When Phase 3
throughput metrics show zero evaluations while tasks are queued, the AI
creates a diagnostic task to fix ai-lifecycle.sh — the same action a
human would take in an interactive session.

One line of prompt replaces 150 lines of deterministic streak counters,
cooldown stamps, and threshold constants.
@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 25, 2026

Warning

Rate limit exceeded

@marcusquinn has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 19 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 5636467 and 1e30168.

📒 Files selected for processing (1)
  • .agents/scripts/supervisor/ai-reason.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/pipeline-self-heal

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@marcusquinn marcusquinn merged commit ebc8c1b into main Feb 25, 2026
7 of 9 checks passed
@marcusquinn marcusquinn deleted the feature/pipeline-self-heal branch February 25, 2026 03:58
@github-actions
Copy link

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 69 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Wed Feb 25 03:58:36 UTC 2026: Code review monitoring started
Wed Feb 25 03:58:37 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 69

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 69
  • VULNERABILITIES: 0

Generated on: Wed Feb 25 03:58:39 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@sonarqubecloud
Copy link

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.

1 participant