Skip to content

Conversation

@PVeazie951
Copy link
Contributor

This PR stabilizes the wizard agent + pipeline generation flow by resolving merge conflicts, restoring clean tool boundaries, and fixing frontend ↔ backend routing for the AI wizard. It also prepares the backend for upcoming pipeline recommendation mode by simplifying and hardening the generator layer.

✅ What Was Done

🧠 Agent & Tooling Cleanup
• Resolved merge conflicts in wizardAgent and related tools
• Restored clear separation of concerns:
• wizardAgent = intent + orchestration
• pipeline_generator = pure, stateless YAML generation
• Removed session/JWT/DB logic from pipeline_generator (does not belong in a tool context)

🧱 Safety & Guardrails
• Reinstated guard in repo_reader to prevent accidental file reads
• File/content access is now correctly enforced via github_adapter

🔁 Frontend ↔ Backend Routing Fix
• Fixed AI wizard 404 caused by missing dev proxy
• Added /agent proxy to Vite config so:
• /agent/wizard/ai correctly routes to backend (localhost:3000)
• Frontend API layer remains unchanged and clean

🔌 Validation
• Verified MCP tools (/mcp/v1/pipeline_generator) still function correctly
• Confirmed AI wizard requests now reach backend routes as expected

🧩 Why This Matters
• Fixes broken AI wizard after merge (no more 404s)
• Ensures tools are stateless, reusable, and testable
• Prevents future architectural drift between agent logic and generators
• Unblocks next phase:
• Pipeline analysis & recommendations
• Session-based wizard flow using pipeline_sessions

🛠️ Follow-Ups (Next PRs)
• Add explicit recommendation mode to wizard agent (analyze → recommend → confirm → generate)
• Persist repo analysis + recommendations to pipeline_sessions.step_metadata
• Frontend wiring for recommendation preview + confirmation

 - Enforce path-overrides-intent semantics in wizardAgent
 - Correctly route .github/workflows(still needs work)
 - Normalize check_file / check_dir intents to 404
 - Improve GitHub adapter handing for repo filesystem introspection
 - Prevent false routing to GitHub Actions workflow endpoint
@williams21v
Copy link
Collaborator

Looks good!

Copy link
Collaborator

@williams21v williams21v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@williams21v williams21v merged commit a8ebc17 into main Dec 17, 2025
11 of 13 checks passed
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.

3 participants