Skip to content

Beliefs & Graduation PRs

B2B SaaSE-commerce

Turn A/B test wins into Beliefs and GitHub graduation PRs

Stop losing winning experiment lessons in Slack and leaving dead flags in JSX forever. Mint permanent company Beliefs and open GitHub Graduation PRs in one click.

Free monthly allowances included. No credit card to start.

6 min read~20 min active setupUpdated
Two software engineers sketching a clean experiment graduation workflow on a glass wall in a sunlit loft
Promote winning code experiments into permanent company Beliefs and delete stale control branches with one-click GitHub Graduation PRs.

Interactive preview · Belief Graph + GitHub Graduation Pipeline

Never lose a winning experiment to tribal memory or stale feature flags.

Step through what happens the moment an A/B test reaches significance: Apex promotes the winner into your company Belief Graph and opens a clean GitHub Graduation PR to delete the losing code path.

Illustrative fixture · BeaconFlow
ApexGraduation Pipeline · beaconflow/web-app · annual_pricing_default_v2

Verified lift

+3.5 pp

12.6% vs 9.1%

Incremental ARR

+$65,520

+91 annual plans/cycle

Dead code cleaned

3 flags

~6.5 eng hrs saved

Saved Workspace Belief99.9% confidence (p = 0.0001)

“Defaulting our pricing toggle to Annual with clear monthly-equivalent math lifts paid Stripe checkout conversion by +3.5 pp without increasing 30-day refunds.”

+3.5 pp (+91 annual plans)

Apex Graduation PR #418PR opened · CI green

Graduate annual_pricing_default_v2 winner & remove dead control branch

  • src/app/pricing/page.tsx
  • src/components/pricing/BillingToggle.tsx
  • src/lib/experiments/annual_pricing_default_v2.ts

Removes dead experiment flags cleanly once the winner ships.

Annual Default Winner (50%)

12.6%

328 paid upgrades out of 2,600 pricing views

Monthly Default Control (50%)

9.1%

237 paid upgrades out of 2,600 pricing views

Causal lift & 95% confidence interval+3.5 pp (95% CI +1.8 to +5.2 pp)
+91 annual plans → +$65,520 Year-1 ARRp < 0.001
Instead of leaving winning flags tangled in JSX forever, Apex links every experiment to its GitHub PR, records the Belief with calibrated confidence, and opens the cleanup PR in one click.
Compounding organizational science

Engineering graduation owner

Active · PR Ready To Merge

Owen Park

owen.park@example.com

#418

Staff Frontend Engineer · 4 graduated Q4

  1. Graduation PR mergedDec 1, 2026, 11:20 AM
  2. Belief minted high confidenceNov 30, 2026, 6:05 PM

The complete playbook

Step-by-step setup, worked math, and real limits.

Follow the steps below, check how this interacts with tools you already run, and inspect live Apex pricing before turning anything on.

How it works without Apex

Most experimentation programs leak value right after a test wins: the lesson gets buried in an old Slack thread, a new hire accidentally reverts the change six months later, and stale feature-flag branches pile up across the codebase slowing down every engineering sprint.

How Apex does it for you

Apex links each experiment to your GitHub repository, promotes statistically verified wins into your searchable Belief Graph (readable by humans and AI coding agents via MCP), and opens a clean GitHub Graduation PR removing the losing branch and runtime hook automatically.

How to set this up in 4 steps

  1. Install the Apex GitHub App on your repository

    Connect GitHub in Apex Integrations with scoped pull-request permissions so Apex can link experiment PRs.

  2. Link your code experiment to its introducing PR

    Attach the PR when shipping the test and optionally gate experiment activation until the PR merges.

  3. Mint a calibrated Belief when the winner clears significance

    Apex records the proven hypothesis, lift, confidence, and cash evidence in your searchable Belief Graph.

  4. Open and merge the one-click GitHub Graduation PR

    Let Apex author the cleanup PR removing the losing variant and runtime experiment hook, then review and merge through your normal CI.

Why winning A/B tests rot as stale flags and forgotten Slack threads

Most engineering and growth teams treat an experiment as "done" the moment someone posts a screenshot in Slack saying Variant B won. Six months later, nobody remembers why the pricing page defaults to annual, a new designer proposes reverting it, and three dead feature-flag branches are still sitting in production JSX slowing down every refactor.

Apex closes the loop with two connected primitives: the Belief Graph and the GitHub Graduation Pipeline. Every concluded experiment automatically mints or updates a calibrated company Belief backed by real cash evidence, and opens a clean GitHub Graduation PR that promotes the winning branch and deletes the dead control code.

How Beliefs and GitHub Graduation PRs compound growth

  1. Link your experiment to its GitHub repository and PR. Connect the GitHub Graduation Pipeline so Apex knows which feature PR introduced the experiment and can optionally gate experiment start on merge.

  2. Let sequential stats verify cash lift on Stripe or Shopify. Apex evaluates conversions against real settled revenue while checking guardrails such as 30-day refund rate automatically.

  3. Mint a permanent Belief in the Belief Graph. When an experiment concludes, Apex updates your Belief Graph with calibrated confidence. Both human teammates and AI coding agents querying Apex MCP see proven company truths before proposing conflicting changes.

  4. Open a Graduation PR (or Revert PR) in one click. Click Graduate (or call open_graduation_pr via MCP) so Apex opens a focused pull request removing the dead branch and runtime experiment hook, leaving your codebase cleaner than before the test started.

Worked Belief & graduation math (illustrative)

In the BeaconFlow example above, the growth engineering team ships annual_pricing_default_v2 across 5,200 pricing visitors:

  • Winner conversion rate: 328 upgrades / 2,600 visitors = 12.6%.

  • Control conversion rate: 237 upgrades / 2,600 visitors = 9.1%.

  • Proven cash lift & code cleanup: +3.5 pp (p = 0.0001), adding +91 annual plans (+$65,520 Year-1 ARR), minting a permanent Belief, and opening GitHub PR #418 to remove 3 stale flag branches (~6.5 engineering hours saved per quarter).

Pricing & graduation pipeline cost

Live Apex pricing · Pay-as-you-go

Estimated Apex cost for 5,200 pricing views + Belief Graph + GitHub Graduation PR

$0 / month

Fully inside Apex's free monthly allowances (resets every calendar month).

Apex meter / scheduleScenario volumeFree allowance / basisRateApex cost
Events
~21,000 monthly events (pricing views, exposure logs, Stripe checkouts, Belief calibration)
21,000 / mo1M / month$5 per 100K events$0
Orchestrations
5,200 code-experiment variant assignments
5,200 / mo1M / month$5 per 100K assignments$0

Belief Graph, GitHub App Graduation Pipeline, Apex MCP server, Stripe revenue sync, and unlimited seats carry no extra Apex fee. Individual event history stays queryable for 13 months without a card, 3 years with a card on file, and 7 years once you've paid an invoice. See the live pricing page.

Third-party and campaign costs (not paid to Apex)

ExpenseTypical rangeNotes
GitHub repositoryExisting GitHub planApex installs as a standard GitHub App with scoped PR permissions.

Limits and when Apex is the wrong tool

  • Graduation PRs still require your team's code review and CI merge. Apex never force-pushes to your main branch; it opens a standard GitHub PR that runs your existing tests and waits for maintainer approval.

  • GitHub is the live automated PR adapter today. Teams hosted on GitLab or Bitbucket can still record Beliefs, link PR URLs manually, and run graduation cleanup through Apex's MCP server in Grok Build (formerly Cursor) or Claude Code.

  • When Apex is the wrong tool: If you only run occasional copy tweaks through a no-code visual editor with zero engineering repository, snippet winner promotion already keeps serving the winner without needing GitHub PRs.

For your engineering team or AI editor

Graduate winning tests and mint Beliefs straight from your AI editor.

Connect Apex MCP to check live tests before editing code, mint Beliefs automatically, and open GitHub Graduation PRs in one command.

1Add Apex to your editor

Install in Grok Build

Opens Grok Build and adds Apex. Nothing to configure.

2Tell your agent

Paste this prompt into your AI editor (scroll to read full prompt)

Inspect my Apex workspace experiments and GitHub integration before changing anything. Propose a plan to: (1) check which concluded experiments are pending graduation, (2) verify the minted Belief entry and Stripe cash lift, and (3) open a GitHub Graduation PR removing the losing branch cleanly.

The first time your agent calls Apex, it gives you a link to approve in the browser. There is no key to paste. In Grok Build you can also run /setup-apex.

See how editor setup works step by step

beaconflow-web-app · Grok BuildWaiting for approval
Agent
You

Set up Apex in this repo.

Set up Apex · 0 of 4
  • Signed in
  • Workspace named
  • Events arriving
  • Conversion picked
  • Stripe

Your move

Compound what your team learns and keep your codebase clean.

Mint permanent company Beliefs from every concluded test and remove dead experiment branches with one-click GitHub Graduation PRs.