---
title: "Our AI Agent’s Design Looked Complete. 3 Runtime Checks Proved It Wrong"
description: "An AI agent's retrospective on designing cross-component-boundary binding (DL#193) for Wix's Jay web framework shows a recurring failure: first drafts added unneeded machinery and made claims about runtime behavior that tracing disproved."
url: "https://swe.quest/articles/our-ai-agent-s-design-looked-complete-3-runtime-checks-proved-it-wrong-03ef1aeeef9b9f6c"
canonical: "https://www.wix.engineering/post/our-ai-agent-s-design-looked-complete-3-runtime-checks-proved-it-wrong"
source: "Wix Engineering"
published: "2026-10-12"
difficulty: "medium"
kind: "Opinion"
reading_minutes: 8
tags: ["ai-coding","system-design","frontend","engineering-management"]
---

# Our AI Agent’s Design Looked Complete. 3 Runtime Checks Proved It Wrong

A post on [Wix Engineering](https://swe.quest/sources/wix.md), published 2026-10-12, 8 min read, Opinion. Original: [https://www.wix.engineering/post/our-ai-agent-s-design-looked-complete-3-runtime-checks-proved-it-wrong](https://www.wix.engineering/post/our-ai-agent-s-design-looked-complete-3-runtime-checks-proved-it-wrong)

## Summary

An AI agent's retrospective on designing cross-component-boundary binding (DL#193) for Wix's Jay web framework shows a recurring failure: first drafts added unneeded machinery and made claims about runtime behavior that tracing disproved. Two additions, a parentViewState event field and re-basing forwarded refs to the outer scope, turned out unnecessary. A claim that updating parent context would refresh leaves broke on three reference-check gates in forEach rendering, causing stale bindings that were fixed with an opt-in compile-time dependsOnParent flag. The team added four design-log checklist steps: state why existing primitives don't suffice before adding new surface, trace changes through real runtime code with file:line citations, enumerate prior art and adjacent mechanisms, and lead with a TL;DR of decisions for the implementer.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)
- [Engineering management](https://swe.quest/tags/engineering-management.md) (Engineering organization)

## Prerequisites

- reactive UI rendering
- design docs / design review ([easy posts on Documentation](https://swe.quest/tags/documentation.md?difficulty=easy))

## Keywords

Jay, Wix, design logs, AI agents, dependsOnParent

## Related posts

- [Components Are Dead; And Now for Something Completely Different](https://swe.quest/articles/components-are-dead-and-now-for-something-completely-different-bd11a9a2924d548a.md): Wix Engineering · 2026-10-19 · Medium · 4 min read · Frontend, AI for coding, Design systems, Language design
  Wix's Jay framework replaces UI components with "regions": design-system templates are flattened into page-local HTML at coding time, while logic stays in shared headless components bound via fine-grained signals.
- [Turn one giant AI-generated pull request to a reviewable stack](https://swe.quest/articles/turn-one-giant-ai-generated-pull-request-to-a-reviewable-stack-e48d2499a5268109.md): GitHub Engineering · 2026-08-04 · Medium · 9 min read · Code review, Version control, AI for coding, Developer tools
  Stacked pull requests split a large, agent-generated feature diff into a chain of small, dependency-ordered PRs that are each scoped to one concern.
- [Six Principles for Production AI Agents](https://swe.quest/articles/six-principles-for-production-ai-agents-3f39ebc37965ed2f.md): Neon · 2025-07-28 · Medium · 8 min read · AI agents, LLMs, System design
  Production AI agents succeed through system design and conventional software engineering rather than clever prompts or frameworks.
- [How AI Assistants Can Decode GitHub Repos for UI Writers](https://swe.quest/articles/how-ai-assistants-can-decode-github-repos-for-ui-writers-bed232efc1e6b9e6.md): Docker · 2024-12-16 · Medium · 9 min read · AI agents, LLMs, Code review, Frontend
  An LLM agent can reliably flag user-facing copy changes in a branch when it is given narrow tools and expert hints about what "user-facing" means.
- [Effective harnesses for long-running agents](https://swe.quest/articles/effective-harnesses-for-long-running-agents-987ba1b5b74b4050.md): Anthropic Engineering · 2025-11-26 · Medium · 9 min read · AI agents, AI for coding, LLMs, Testing
  Long-running coding agents lose all memory between context windows, and compaction alone doesn't stop them from trying to one-shot an app, leaving half-finished work, or declaring the project done early.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
