Skip to content

fix(wix-headless): mandate reading inline recipes before writing capability code - #984

Open
gilgwix wants to merge 1 commit into
mainfrom
fix/gpv-8742-mandate-inline-recipes
Open

fix(wix-headless): mandate reading inline recipes before writing capability code#984
gilgwix wants to merge 1 commit into
mainfrom
fix/gpv-8742-mandate-inline-recipes

Conversation

@gilgwix

@gilgwix gilgwix commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds an explicit mandate in CREATE.md §4 to Read each capability's inline recipe (how-to-code-*.md) before authoring any page or component code for it
  • Adds a pre-release API-wiring check: grep the generated source for real SDK call sites (addToCurrentCart, productsV3, etc.) and treat their absence as a broken deliverable

Problem

Agents generated convincing storefront UIs — product grids, cart badges, checkout buttons — that weren't wired to real @wix/stores / @wix/ecom SDK calls. The storefront looked complete but failed entirely at runtime.

Root cause: CREATE.md §4 pointed agents at SDK_HANDOFF.md for package names, which maps each capability to its inline recipe — but never explicitly required reading that recipe before writing code. Agents generated plausible-looking UI from model memory instead, producing stubs that matched the API shape superficially but called nothing.

Jira: https://wix.atlassian.net/browse/GPV-8742

Test plan

  • A managed create run for a store site reads how-to-code-a-store.md before authoring product/cart/checkout pages
  • Generated source contains real productsV3 / addToCurrentCart calls (verifiable with the new grep check)
  • A managed create run for a bookings site reads how-to-code-bookings.md before authoring availability/booking pages

🤖 Generated with Claude Code

…bility code (GPV-8742)

Agents were generating convincing storefront UI (product gallery, cart badge, checkout button)
not backed by real @wix/stores SDK calls. The root cause: CREATE.md §4 directed agents to
SDK_HANDOFF.md for package names but never explicitly required reading the per-capability
inline recipe before authoring code — leaving the door open to plausible-looking stubs.

Adds a pre-code mandate to Read each capability's how-to-code-*.md recipe before writing
any pages, and a pre-release grep check to verify addToCurrentCart/productsV3 are actually
present in the source.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@gilgwix
gilgwix requested a review from ayal August 12, 2026 15:18
@gilgwix

gilgwix commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

@aya check this ticket what do you think about this solution?

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.

1 participant