Catch
$29, failed checkout on PR #3
Kane stopped on the required price step. Coupon and Pay never ran.
- Red run 43698574333
- Step 3 of 5
- Pull request #3
The loop
Connect the pull request. Receipt waits for Vercel, runs Kane on your README contract, and leaves the card. Learn more →
The action holds until Vercel reports the commit status, then points Kane at that URL.
Kane follows the How-to-test block. A required failure exits 1 and starts the card.
The comment shows Kane's verdict for each step, the attempt count, and a link to the evidence pack.
Built for previews
One pull request, three states of the same card. The numbers are the runs, not a mock.
Catch
Kane stopped on the required price step. Coupon and Pay never ran.
Fix
The fixer edited shop/lib/prices.ts and shop/lib/checkout.ts only.
Prove
The same contract ran again on the new preview and passed.
Preview
The action listens for the Vercel commit status, then remaps the recorded origin onto that preview. Learn more →
Auto-started since PR #2. The workflow waits for the Vercel commit status on the head SHA.
Kane follows the <!-- kane:how-to-test --> block, the same five steps as the committed test file.
LambdaTest, Gemini, and the git token are repository secrets. The workflow never prints them.
Cap
A fixer may edit shop source only. The cap is three receipt-fix commits, then Kane’s last result stands.
Application source under shop. Unit tests under that tree are still refused.
PR #3 used one. The subject is receipt-fix: N, and the count stops at 3.
tests/, the README contract, .github, the action, and src stay untouched.
a different pull request
PR #4 · 0/3 · REFUSED · touched tests/checkout_test.md · run 43700368892
Proof
Five real pull requests ran the loop. Every receipt links its red run, its fix, and its green run. See the proof →
Receipt
Pull request #1
VERIFIED
Receipt
Pull request #2
VERIFIED
Receipt
Pull request #3
VERIFIED
Receipt
Pull request #4
REFUSED
Receipt
Pull request #5
VERIFIED
Record
Counts from this repo’s five proof pull requests, not a ticker. 49 action tests live in tests/action. Commit 186ecdc touched shop/lib/prices.ts and shop/lib/checkout.ts only.
All five still open
9492501, e7542b0, 186ecdc, 55b2815
PR #4, run 43700368892
$29, LAUNCH10, Pay at 390px
Receipt ledger
| PR | Red run | Fix | Green run | Verdict |
|---|---|---|---|---|
| #1 | 43683895636 | 9492501 | 43684482513 | VERIFIED |
| #2 | 43686930592 | e7542b0 | 43687402846 | VERIFIED |
| #3 | 43698574333 | 186ecdc | 43699955024 | VERIFIED |
| #4 | 43700368892 | — | — | REFUSED |
| #5 | 43701888824 | 55b2815 | 43702361655 | VERIFIED |
Seeded shop
Figures come from shop/lib. Production on main still has the bugs. Commit 186ecdc fixed them only on the pull request.
What the shop shows
Total due today$29
BUGS LIVE ON MAIN
Why it exists
Kane drives a real browser against the contract. The card is the record of what that browser saw.
Checkout
$29Expected $19Kane opened the preview and read the checkout total. The plans page still said $19.
Each pull request keeps its red run, its fix commit, and its green run. PR #4 has no fix.
The fixer may edit shop source. Tests, the contract, workflows, and the action are refused.
Install
Public repo, Vercel, Deployment Protection off so Kane sees the app. The secrets stay in GitHub.
Receipt
# .github/workflows/receipt.yml
name: Receipt
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
repository_dispatch:
types: [vercel.deployment.ready]
deployment_status:
workflow_dispatch:
permissions:
contents: read
pull-requests: write
jobs:
receipt:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.RECEIPT_GIT_TOKEN || github.token }}
- uses: ohjay-official/receipt@main
with:
test-file: tests/receipt_checkout_test.md
production-url: ${{ vars.RECEIPT_PRODUCTION_URL }}
allowlist: "<your app path>/**"
max-fixes: "3"
username: ${{ secrets.LT_USERNAME }}
access-key: ${{ secrets.LT_ACCESS_KEY }}
gemini-api-key: ${{ secrets.GEMINI_API_KEY }}
git-token: ${{ secrets.RECEIPT_GIT_TOKEN }}
env:
RECEIPT_VERCEL_PROJECT: <your-vercel-project>
RECEIPT_VERCEL_SCOPE: <your-vercel-team-slug>
RECEIPT_WAIT_FOR_VERCEL_STATUS: ${{ github.event_name == 'pull_request' && 'true' || 'false' }}
Total$0
Public repo, Vercel Hobby, Kane’s free grant, Gemini free Flash. Pin to a commit SHA for stability: ohjay-official/receipt@<sha>. This install has not been verified on a second repo.