feat: implement CodeGeneratorJob, ScaffoldPipeline, ListenCommand and supporting services#7
Open
jordanpartridge wants to merge 4 commits into
Open
Conversation
added 4 commits
June 8, 2026 19:34
…issue #2) Adds queued job that creates a GitHub repo, opens starter issues (one Setup issue + one per model with attributes and relationships), and registers a Bifrost webhook source. Uses raw Http facade since conduit-ui/connector is not yet available. Config wired through services.php. Tests cover all success and failure paths at 100% coverage using Http::fake() and Mockery.
- Add ScaffoldStatus enum (Queued, Running, Complete, Failed)
- Add ScaffoldRun Eloquent model with UUID primary key, manifest JSON cast, status enum cast
- Add scaffold_runs migration
- Add ScaffoldController with store (validates manifest, creates run, dispatches jobs) and show
- Add CodeGeneratorJob stub implementing ShouldQueue
- Wire POST /api/scaffold and GET /api/scaffold/{id} routes
- Add 100% coverage tests: feature tests for controller routes, model, and job
… graceful Ollama/Bifrost failures, push validation - Run blueprint:build from foundry's own artisan (installed here) and copy generated files to target repo — removes need for blueprint in agent-skeleton - Make Ollama and Bifrost registration failures non-fatal (best-effort) - Validate git push exit code and throw on failure - Remove auto_init from GitHub repo creation so initial push succeeds - Add failed_jobs migration, public/index.php entry point, .gitignore - Add laravel-shift/blueprint as dev dependency
There was a problem hiding this comment.
Blocking correctness and safety issues.
- CodeGeneratorJob serializes a full Eloquent model onto the queue.
- BlueprintService runs blueprint against the wrong artisan and copies files from the wrong base_path.
- tmpPath and deploy commands accept unsanitized manifest.name; direct shell injection vectors.
- Gate now auto-merges on coverage only.
Fix the execution model and input handling before merge.
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.
Closes #3, closes #5
What's in this PR
CodeGeneratorJob — the intelligent scaffold half:
the-shit/agent-skeletonviaSkeletonServiceblueprint:buildviaBlueprintServiceOllamaServiceQuadletServiceScaffoldRunstatus throughout (running → complete/failed)ScaffoldPipeline — shared entry point all interfaces converge on. Creates the
ScaffoldRun, dispatchesRepoGeneratorJobandCodeGeneratorJob.ListenCommand (
foundry:listen) — subscribes tobifrost.foundryRedis pub/sub channel, routesfoundry.scaffold.requestedevents throughScaffoldPipeline.ScaffoldController — updated to use
ScaffoldPipeline::dispatch()instead of inline job dispatch.Gate