Skip to content

fix(v1): harden blueprint validation and step-level failure reporting - #17

Merged
7vignesh merged 1 commit into
mainfrom
fix/stackforge-v1-hardening
Nov 28, 2026
Merged

7vignesh merged 1 commit into
mainfrom
fix/stackforge-v1-hardening

Conversation

@7vignesh

Copy link
Copy Markdown
Owner

Closes #13
Part of #11

  • runOrchestrator validates the assembled blueprint with BlueprintSchema and fails with the first issues if invalid.
  • BlueprintSchema: identifiers (projectName, paths, entity/field/page names, relationship ends) must be non-empty. GenerateRequestSchema trims prompt/projectName before length checks.
  • WorkflowEngine wraps any stage error in StepExecutionError (stage, stepId, original message).
  • StoredJob gains currentStage (set on agent_started, cleared on completion) and failure ({ stage, stepId, message }). Both are exposed on GET /api/jobs and /api/jobs/:id; job_failed includes optional payload.failure.
  • Unchanged: job statuses, routes, TTL eviction, error string text, existing SSE events.

Local: typecheck, test (api 10, agents 31), build pass.

- Validate the assembled blueprint with BlueprintSchema before completing
- Reject empty identifiers in blueprint schema; trim generate inputs
- WorkflowEngine wraps stage errors in StepExecutionError (stage, stepId)
- Job store tracks currentStage and a structured failure; job_failed
  carries the optional failure payload
@vercel

vercel Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
stackforge-web Ready Ready Preview Nov 28, 2026 10:49pm UTC

@7vignesh
7vignesh merged commit f4855ce into main Nov 28, 2026
3 checks passed
@7vignesh
7vignesh deleted the fix/stackforge-v1-hardening branch November 28, 2026 22:50

This branch was successfully deployed

1 active deployment
Preview — 6d080a33 Deployed Nov 28, 2026 by vercel[bot]
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.

fix(v1): harden blueprint validation and step-level failure reporting

1 participant