feat: AI Bounty Description Enhancer (solfoundry#848) [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] - #1436
Open
waterWang wants to merge 1 commit into
Conversation
Implement AI-powered bounty description enhancement with multi-LLM support:
- Add POST /api/bounties/{id}/enhance — trigger AI enhancement
- Add GET /api/bounties/{id}/enhancements — list all enhancements
- Add GET /api/bounties/{id}/enhancements/{eid} — get specific enhancement
- Add POST /api/bounties/{id}/enhancements/{eid}/approve — approve & apply
- Add POST /api/bounties/{id}/enhancements/{eid}/reject — reject enhancement
- Support Claude, Codex, and Gemini providers
- Maintainer approval workflow before publishing
- Configurable via ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_API_KEY
- 20 comprehensive tests (all passing)
- Fix pre-existing missing List import in bounties.py
[fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the AI Bounty Description Enhancer (Issue #848, 450K $FNDRY bounty).
Description
This feature adds an AI-powered system that analyzes vague bounty descriptions and generates improved versions with clearer requirements, acceptance criteria, and examples using multiple LLM providers.
Architecture
New API endpoints under
/api/bounties/{id}/enhance*:POST /api/bounties/{id}/enhance— Trigger AI enhancement (Claude, Codex, Gemini)GET /api/bounties/{id}/enhancements— List all enhancement recordsGET /api/bounties/{id}/enhancements/{eid}— Get a specific enhancementPOST /api/bounties/{id}/enhancements/{eid}/approve— Approve & apply enhancementPOST /api/bounties/{id}/enhancements/{eid}/reject— Reject enhancementNew service:
app/services/bounty_enhancer_service.py— Core AI logic with:New models:
app/models/bounty_enhance.py— Pydantic models for requests/responsesConfiguration:
ANTHROPIC_API_KEY,OPENAI_API_KEY,GOOGLE_API_KEYenv varsAcceptance Criteria Met
Additional Fix
Fixed a pre-existing
NameError: name List is not definedinapp/api/bounties.py(missingListimport fromtyping).Testing