feat(ui-mcp): pipeline SDD UI sin MCP, pantallas heurísticas y cascade W2 - #540
Merged
Conversation
Introduce detectWebSurfaces, stack presets with fillSemanticTokens, and resolveDeliverableWaves so MEDIUM cascades include ui_screens_sync when the constitution declares a web/SPA surface.
Add buildHeuristicScreensFromPlan fallback, Layout/Responsive columns in pantallas markdown, and remove cascade early-return so W2b always persists uiScreensContent when the plan has routes.
Detect web surfaces for preflight, heuristic plans, upstream repair, and cross-artifact trace gaps; update doc consumption guide for adapter/responsive.
Ignore negated API-only lines when detecting web surfaces so CLI-only §2 text does not emit false positives. Prefer Tailwind + Radix UI when MDD declares Radix instead of defaulting to shadcn.
Match API path segments for entity routes (/admin/keys), gate /chat on MDD product signals, fix login/inicio de sesión routing, and use detectWebSurfaces from MDD §2 for governance instead of CLI-only labels when React is declared. Emit design-system-ui skill for web projects.
Resolve nested {primitives.*} refs in preview/playground, fix ??/|| in
DesignMdPreview color defaults, and show the Pantallas workshop tab when
detectWebSurfaces finds React/web in MDD or Blueprint.
Apply the same proc-cap/gestion route filter to v1 in-scope pantalla paths so Frontend task heuristics skip infrastructure placeholders.
Score API path matches by final segment so keys maps to KeysPage, login uses auth endpoints with Form components, /chat stays gated on MDD, and the catalog appendix lists only v1 table routes without ghost paths.
Heuristic planner now attaches surface, responsive, DS refs and apps/web target paths from pantallas rows, and the Frontend layer prompt enforces design-system plus pantallas context when web surfaces are declared.
Prefer backend stack from MDD §2 over task markdown noise, filter NestJS/ Prisma task excerpts for Spring projects, and resolve Radix/Tailwind labels in blueprint §9 instead of hardcoding shadcn/ui.
The API table separator check only matched document start and missed aligned rows like | :----- | :--- |, triggering a ~7min LLM retry that blocked W2 cascade progress on Blueprint. Auto-repair separators before the quality gate, cap retries with fallback persist, and emit parallel wave progress when steps start and complete.
fetchGenerationStatus now attaches to active cascade/repair jobs and polls deliverables-jobs so agentProgress stays in sync after refresh. Also show the checklist in the top banner and derive cascadeRunning from generation-status, not only local loadingReason.
Remove WorkshopAgentProgressPanel from the top generation banner so the step checklist appears only in the chat sidebar. The banner keeps a short status line and the cancel button; attachToActiveDeliverablesJob is unchanged.
After the first API LLM response, 12 extra §4 endpoints triggered a second ~7min generation with no logs while the UI showed logic_flows. Run programmatic reconcile before the quality gate, cap retries with fallback persist, add deliverable LLM hard timeout, and log step completion.
Resuelve conflicto en generateLogicFlows combinando reintentos con línea base determinista y fallback LLM de master.
Rename semanticFromPrimitives first argument to _p so noUnusedLocals passes; the parameter documents the preset primitives at call sites but is not read when building semantic token references.
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
masterreciente (hidratación Ariadne tasks v1) resolviendo conflicto engenerateLogicFlows(reintentos + baseline determinista + fallback LLM).Test plan
npm test/ suites tocadas en api (ui-mcp, conformance, tasks-heuristic) y web (deliverablesCascadeUi, design-system-utils).