AI software factory Lab 2 of 7

Turn a bug report into a verified fix

Give a developer a failing step they can replay.

GrowthBook issue 6663 reports that removing a shared targeting rule from one environment can remove it from another. Checking only the environment where Delete was clicked would miss the customer’s complaint. The second read, from the untouched environment, is the important assertion.

Episode 2Watch on YouTube
You leave with

A ticket with linked before and after observations.

Before you start

A resettable GrowthBook fixture, two synthetic environments and a source based preview showing the candidate commit. Install the ContextQA skills and run /cqa-init in your coding agent to confirm the workspace.

Setup prompt, paste once per machine
Set up ContextQA using https://raw.githubusercontent.com/indivatools/contextqa-skills/main/llms-install.md. You have my OK to install or update the ContextQA skills and MCP server and sign me in.
Paste into Claude Code /cqa-bug-repro
/cqa-bug-repro Use this ticket and an isolated flag shared by environments A and B. Save the original rule in B. Delete it only from A and publish. Reload both. Report whether it disappeared from A and remained intact in B. Attach the first differing step, environment, build and run link.

Use the saved failing run in the coding agent’s handoff. Open a PR, deploy it, then replay the same reproduction with fresh data. The recording triggers revalidation by moving the ticket to its configured QA status. If the current upstream build already passes, record the outcome and identify a suitable historical baseline rather than inventing a failure.

Once a baseline run reproduces the defect, hand the evidence to the coding agent:

Paste into Claude Code
Use the failing GrowthBook reproduction attached to my ticket. Fix the rule deletion on a branch and open a PR. Leave the approved assertions unchanged. After the preview serves the PR head, replay the case with a fresh flag. Return links to both runs and the state of the rule in each environment.

Try it on your project

Attach the baseline and candidate run links to the ticket, with the observed state in both environments.