Skip to content

HomeHow it works

The loop

From a lying preview
to a receipt.

Receipt is a composite GitHub Action. It does not replace Kane. It starts Kane, pins what Kane saw, and, when the contract fails, offers one tightly fenced patch.

Previewvercel: ready
Kaneexit 1 · checkout showed $29
Fixreceipt-fix: 1 · 186ecdc
Re-verifygreen run 43699955024
ReceiptVERIFIED · 1 / 3

Preview

Wait for Vercel.
Then remap the origin.

On a pull request, Receipt waits for the Vercel commit status and rewrites the recorded start URL onto that preview.

# pull request #3
on: pull_request
wait: Vercel commit status
context: Vercel
state: success
remap: recorded origin → preview url
contract: <!-- kane:how-to-test -->
next: start Kane on that preview

Kane

Kane reads the contract.
A miss exits 1.

The How-to-test block is five required steps. On PR #3, step 3 failed because checkout showed $29.

Kane run 43698574333
exit 1
1  passed   Open /pricing. Pro is $19
2  passed   Choose Pro, open /checkout
3  failed   Checkout must show $19
           saw $29
4  skipped  LAUNCH10 must total $17.10
5  skipped  Phone layout (390px), then Pay

Fix

One fenced patch.
Shop source only.

Gemini may edit shop/** application source. Commit 186ecdc changed shop/lib/prices.ts and shop/lib/checkout.ts only.

receipt-fix: 1  186ecdc
shop/lib/prices.ts
- export const CHECKOUT_PRO_USD = 29;
+ export const CHECKOUT_PRO_USD = 19;
shop/lib/checkout.ts
- return proPrice - handlingFeeUsd * 0.10;
+ return proPrice - proPrice * 0.10;
- export const SEED_BLOCK_PAY_ON_MOBILE = true;
+ export const SEED_BLOCK_PAY_ON_MOBILE = false;

Re-verify

Same contract.
New preview.

A receipt-fix commit is pushed with the git token. Vercel builds again. Kane runs the same five steps, cap 3.

new preview after 186ecdc
Kane run 43699955024
exit 0
1  passed  Pro is $19
2  passed  Choose Pro
3  passed  Checkout shows $19
4  passed  LAUNCH10 is $17.10
5  passed  Pay in Phone layout (390px)
attempt 1 of 3

Receipt

The card stays
on the pull request.

The comment lists what Kane saw, the fix or the refusal, the attempt count, and the evidence pack.

comment on pull/3
VERIFIED
red    43698574333
fix    186ecdc
green  43699955024
files  shop/lib/prices.ts
       shop/lib/checkout.ts
cap    1 / 3

Guardrails

Allowed, and refused.
The fence is the product.

Allowed

shop/** application source. PR #3 changed prices.ts and checkout.ts only.

Refused

tests/, the README contract, .github, action.yml, and src. PR #4 touched tests/checkout_test.md and was refused.

REFUSED

Pull request #4

REFUSED · 0 / 3

  1. passed · Open the pricing page and confirm Pro is $19
  2. passed · Choose Pro and continue to checkout
  3. failed · Checkout must show $19 for Pro
  4. skipped · LAUNCH10 takes 10% off Pro
  5. skipped · Pay works in the phone layout

Receipt refused fix: touched tests/checkout_test.md. Run 43700368892.

Open the pull request

  • No test edits

    A patch that touches the Kane test or shop unit tests is refused before any push.

  • No price weakening

    Deleting a step or moving PRO_PLAN_USD off 19 is treated as weakening.

Read the guardrails · Limitations

Runs still open.
Nothing here is merged.

Production on main keeps the seeded bugs.