Stitch migration validation gate
Gate a stitch UI slice before merge. Scope from $ARGUMENTS (the routes in the slice;
default to all converted routes).
Read first
TENANT_MANIFEST.md— content leak grep patterns, source-tenant names, route scope.COMPONENT_CHECKLIST.mdandREFERENCE_PAGE_COMPARISON.md.- The slice's gap audit
docs/build/notes/stitch-gap-audit-*.md.
Commands
pnpm typecheck
pnpm lint
pnpm build
rg 'PlaceholderPage' src/app
rg 'dangerouslySetInnerHTML' src
rg '#111111|#666666' src/components --glob '*.tsx' # should be clean
PlaceholderPage is allowed only on routes the checklist explicitly defers; all three
greps should otherwise be clean on routes marked BUILT.
Visual verification
For each converted route:
- Compare
.stitch/designs/{slug}.pngwith apnpm devscreenshot (use theverifyor browser-driver skill if a screenshot harness is available). - Confirm section order vs
COMPONENT_CHECKLIST.md. - Light + dark mode spot check.
Documentation updates
COMPONENT_CHECKLIST.md— set each route's Status (SCAFFOLD|PARTIAL|BUILT|DEFERRED).docs/internal/engineering/REFERENCE_PAGE_COMPARISON.md— create/update rows.- Close resolved gaps in
docs/build/notes/stitch-gap-audit-*.md. - Tick the relevant phase in the repo
README.mdmigration checklist.
Conversion report (per stitch-react Phase 8)
Emit markdown for the slice: screens converted · archived page-old files · new component
paths · token changes · hooks wired vs static stubs · issues flagged for tenant-backend-parity
or tenant-structural-port.
PR checklist
- Branch
slice/Sxx-stitch-* - No hex colors in components
-
tenantConfigfor copy - Feature flags respected
- No source-tenant content leaks (run
tenant-checkif available) - CI green
Slice "done" definition
- All routes in scope are
BUILTorPARTIALwith documented gaps. - No
PlaceholderPageon those routes. pnpm buildpasses.- Checklist + comparison doc updated.
Handoff
If hooks/data are still missing after UI conversion, open a follow-up with
tenant-backend-parity (Prompts 11–16) or, for deep course/route parity,
tenant-structural-port.
Do not merge to main until this gate passes.
Related skills
stitch-page-port · tenant-check · verify · tenant-backend-parity ·
tenant-structural-port · tenant-migration-playbook