Skip to content
O

ORION

Autonomous AI-Powered CI/CD Pipeline

Created on 22nd March 2026

•

O

ORION

Autonomous AI-Powered CI/CD Pipeline

Challenges we ran into

GitHub Integration Challenges

GITHUB_TOKEN not configured — the Auto-PR system blocked the entire pipeline because the token was either empty in .env or the wrong format, shutting down the most impressive feature of the project.

Wrong OAuth callback URL — GitHub OAuth app had localhost:8000/auth/github registered but the actual route was localhost:8001/api/v1/auth/github/callback — three mismatches in one URL causing redirect_uri_mismatch error from GitHub on every login attempt.

PAT token scope confusion — generated a classic Personal Access Token but the OAuth App needs different credentials entirely — Client ID and Client Secret — two completely separate concepts that look similar but work differently.

AI/LLM Challenges

LLM call failed after retries — Anthropic API key was either wrong, expired, or had zero credits. The error message was vague, making it unclear whether it was an auth issue, a rate limit, a credit issue, or a network issue.

Claude returning invalid JSON — agents using _call_claude_json occasionally got responses with markdown fences, explanations before the JSON, or truncated output that broke json.loads(), requiring retry logic and fence stripping.

Mock data masking real failures — agents were returning hardcoded fallback dicts when tools failed instead of surfacing the real error, making it look like everything passed when the underlying subprocess had actually crashed.

Pipeline Architecture Challenges

Circular imports — importing orchestrator at module level in pipeline_tasks.py caused circular import crashes on startup because Celery imports tasks, tasks import orchestrator, orchestrator imports agents, agents import database, database imports config — the entire chain needed lazy imports inside function bodies.

Celery has no HTTP session — the OAuth token lives in the FastAPI session but Celery workers are completely separate processes with no access to HTTP context, requiring the token to be serialized into the Celery task arguments explicitly and forwarded through the entire chain: webhook route → task args → orchestrator → AutoPRService.

Async/sync boundary in Celery — the orchestrator is fully async but Celery workers are synchronous, requiring a manual asyncio.new_event_loop() wrapper inside every task to bridge the two worlds.

Pipeline stopping on first failure — the full scan was originally designed to stop at the first agent error, meaning if code analysis crashed, security and QA never ran, and the Auto-PR system had incomplete data. Required asyncio.gather(return_exceptions=True) to run all three concurrently regardless of individual failures.

Frontend Challenges

Relative fetch URLs breaking cross-origin — all frontend fetch calls used relative paths like /api/v1/auth/me which work when frontend and backend share an origin but silently fail when they are on different ports, requiring every call to be updated to the full http://localhost:8001/api/v1/... URL.

WebSocket showing idle permanently — WS status pill never updated because the WebSocket connection was never properly established, making the live log system non-functional while everything looked connected visually.

UI looking flat and unpolished — the original design had no visual hierarchy, no depth, no animations, no terminal aesthetic for logs, and no stage timeline — all functional but not demo-worthy, requiring a complete CSS rebuild without touching any JavaScript logic.

Multimodal Agent Challenges

Payment agent showing mock data — when no CSV was uploaded the agent was returning fabricated transaction records instead of honestly saying no payment data was found, making the feature misleading.

Git log agent classifying nothing — without real log content the zero-shot classifier had nothing to work with, requiring explicit emp

Tracks Applied (2)

AI/ML

ORION sits at the intersection of AI/ML and autonomous systems engineering. Every stage of the pipeline is powered by a ...Read More

Requestly

During development and testing of ORION, we used Requestly to intercept and mock GitHub webhook POST requests to our /ap...Read More

Requestly

Discussion

Builders also viewed

See more projects on Devfolio