-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
I tried this earlier today, but any idea why the pipeline hangs?
OPENAI_API_KEY=sk-xxx-xxx-xxx-xxx uv run python -m attractor_pipeline.cli run scala_dev.dot --no-tools --provider openai --model gpt-4.1-mini
Pipeline: POIMicroservicePipeline
Goal: Implement Scala POI Microservice
Nodes: 16, Edges: 20
Provider: openai (gpt-4.1-mini)
Environment: Local
Backend: DirectLLM (no tools)
Executing pipeline...
----------------------------------------
Here is the dot file that I tried:
digraph POIMicroservicePipeline {
graph [goal="Implement Scala POI Microservice", project_root="./services/poi-service"]
// Start and exit
start [shape=Mdiamond, label="Start"]
exit [shape=Msquare, label="Exit"]
// Stage 1: Scaffold
scaffold_service [label="Scaffold Scala Microservice", prompt="Generate a Scala microservice project using Akka HTTP (or Play). Include build.sbt, main class, project structure, and a placeholder POIController."]
review_scaffold [shape=hexagon, label="Human Check: Scaffold"]
// Stage 2: Endpoints
implement_create [label="POST /poi", prompt="Generate Scala code for POST /poi endpoint: accept JSON id, name, latitude, longitude. Return created POI."]
implement_read [label="GET /poi/{id}", prompt="Generate Scala code for GET /poi/{id} endpoint: return POI or 404."]
implement_update [label="PUT /poi/{id}", prompt="Generate Scala code for PUT /poi/{id} endpoint: update POI or 404."]
implement_delete [label="DELETE /poi/{id}", prompt="Generate Scala code for DELETE /poi/{id} endpoint: remove POI, return 204 or 404."]
review_endpoints [shape=hexagon, label="Human Check: Endpoints"]
// Stage 2b: OpenAPI
openapi_spec [label="Generate OpenAPI/Swagger Spec", prompt="Generate a Swagger/OpenAPI specification (YAML or JSON) for all POI endpoints. Include request/response models, field types, and examples."]
review_openapi [shape=hexagon, label="Human Check: OpenAPI Spec"]
// Stage 3: Persistence
persistence [label="Add Persistence Layer", prompt="Implement PostgreSQL integration using Slick. Include POI table schema and DAO for CRUD operations. Ensure endpoints persist and retrieve data correctly."]
review_persistence [shape=hexagon, label="Human Check: Persistence"]
// Stage 4: Testing
test_unit [label="Unit Tests", prompt="Generate Scala unit tests for each endpoint and DAO method using ScalaTest. Include validation of edge cases and errors."]
test_integration [label="Integration Tests", prompt="Generate Scala integration tests: run the microservice, exercise endpoints, and assert correct database behavior."]
review_testing [shape=hexagon, label="Human Check: Testing"]
// Stage 5: Commit & Push
// merge [label="Commit & Push Initial Project", prompt="Commit all scaffold, endpoint, OpenAPI spec, persistence, and test code to the main branch and push to GitHub."]
// Workflow edges
start -> scaffold_service -> review_scaffold
review_scaffold -> implement_create -> implement_read -> implement_update -> implement_delete -> review_endpoints
review_endpoints -> openapi_spec -> review_openapi -> persistence -> review_persistence
review_persistence -> test_unit -> test_integration -> review_testing -> exit
//review_persistence -> test_unit -> test_integration -> review_testing -> merge -> exit
// Retry paths if human requests changes
review_scaffold -> scaffold_service [label="Revise", condition="Human requests changes"]
review_endpoints -> implement_create [label="Revise", condition="Human requests changes"]
review_openapi -> openapi_spec [label="Revise", condition="Human requests changes"]
review_persistence -> persistence [label="Revise", condition="Human requests changes"]
review_testing -> test_unit [label="Revise", condition="Human requests changes"]
}
Any clue as to what is happening?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels