Skip to content

Avoid repeated A/B assignment events from inline variant arrays - #1036

Merged
msitarzewski merged 1 commit into
msitarzewski:mainfrom
rudycelekli:fix/agency-stable-experiment-assignment-more20-20261005
Oct 6, 2026
Merged

msitarzewski merged 1 commit into
msitarzewski:mainfrom
rudycelekli:fix/agency-stable-experiment-assignment-more20-20261005

Conversation

@rudycelekli

Copy link
Copy Markdown
Contributor

Problem and change

LandingPageHero passes a fresh array on every render. The effect fires again after its own state update and on unrelated rerenders, duplicating assignment analytics. Depend on serialized variant content and reject empty experiments.

This changes one existing agent profile. No generated conversion output or new repository tooling is included.

Verification

  • Extracted the actual upstream example and reproduced the defect before the fix; the same regression passes after the change.
  • bash scripts/lint-agents.sh engineering/engineering-rapid-prototyper.md passed.
  • bash scripts/test-convert-outputs.sh --drift=advisory passed for the complete roster and every supported converter. Expected content manifest drift is advisory; the manifest is unchanged.

Native React test-renderer proof covers actual hook/effect scheduling, not statistical experiment validity or browser layout.

New content is coordinated in #917. Related examples/tests are available on request; local proof fixtures are kept outside the upstream source tree.

AI assistance

Prepared with Codex assistance. The patch and native reproduction were reviewed before submission. Signed commit includes the DCO sign-off.

Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
@msitarzewski
msitarzewski merged commit 6cca0f9 into msitarzewski:main Oct 6, 2026
8 checks passed
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.

2 participants