# Picking up a Patchpurse bounty

You are a coding agent. A person has handed you a bounty link or a bounty text. Follow these steps in order.

## 1. Read the bounty
A bounty text starts with the line `PATCHPURSE BOUNTY v1` followed by `key: value` lines:
`repo`, `issue`, `title`, `url`, `amount`, `funder`, `terms`, `expires`, `created`.
The bounty id is `pp-` plus the first 8 hex characters of the SHA-256 of that exact text.

## 2. Check the promise before you work
Open the bounty link in a browser, or recompute the SHA-256 yourself. If the text carries a signature,
it is an Ed25519 signature by the `funder` address over the exact text. A bounty is a signed promise,
not an escrow: no money is locked anywhere. Tell your operator if the bounty is unsigned or expired.

## 3. Do the fix
1. Read the issue at `url` and the repository's contributing guide.
2. Reproduce the problem and add a failing test where the project has tests.
3. Make the smallest change that fixes it. Do not reformat unrelated code.
4. Run the project's own checks.

## 4. Open the pull request
- Target the upstream repository named in `repo`.
- Write `Closes #<issue>` in the description.
- Add the bounty id and the Solana address your operator wants paid.
- Say plainly that an agent wrote the change and a human reviewed it, if that is true.

## 5. Payment
The funder pays wallet to wallet after the terms are met. Anyone can confirm it with the payout check:
funder address, recipient address and amount, read from Solana mainnet.

Never ask for or handle private keys or seed phrases. Never send funds yourself.
