upgrade_below_payout

The running jobjob_7Hq2 · delivered · document.fr-CA.pdf · $49.00 charged

The approved price adds less than the person's payout.

FixFails inExit
Raise price.approved past the payout.services/translation.ts1

Owned by Service(): the page that explains what this gate holds.

npx services.dev check
  ✗ The approved price adds less than the person's payout. Raise price.approved past the payout.
    https://services.dev/docs/reference/check/upgrade_below_payout
✗ 1 to fix
services/translation.ts
import { Service } from 'services.dev'

export default Service({
  name: 'Translation',
  description: 'A document, translated.',
  input: { document: 'file', to: 'language: a BCP 47 tag, such as fr-CA' },
  output: { document: 'file' },
  price: { usd: 49, approved: 59, payout: 30 },
})
git add -A && git diff --staged
diff --git a/services/translation.ts b/services/translation.ts
index 6de3e19..470e0d1 100644
--- a/services/translation.ts
+++ b/services/translation.ts
@@ -5,5 +5,5 @@ export default Service({
   description: 'A document, translated.',
   input: { document: 'file', to: 'language: a BCP 47 tag, such as fr-CA' },
   output: { document: 'file' },
-  price: { usd: 49, approved: 59, payout: 30 },
+  price: { usd: 49, approved: 89, payout: 30 },
 })
npx services.dev check
✓ ready to sell · 1 Service · it keeps at least 46% of every job
npx services.dev check --json · the upgrade_below_payout failure
{
  "code": "upgrade_below_payout",
  "reason": "The approved price adds less than the person's payout.",
  "next": "Raise price.approved past the payout.",
  "doc_url": "https://services.dev/docs/reference/check/upgrade_below_payout"
}
The whole document check --json prints
npx services.dev check --json
{
  "ai": {
    "cents_per_call": 42,
    "simulated": true
  },
  "mcp": {
    "tools": 13,
    "tokens": 4516,
    "sandbox": 9,
    "budget": 8000
  },
  "services": [
    {
      "path": "services/translation.ts",
      "lines": 5,
      "steps": "draft · ai → review · ai · adversarial · then a person approves",
      "ok": false,
      "price": "$49 per job, or $59 with a person's approval, within 48 hours, charged on delivery.",
      "who": "AI delivers unless the buyer pays for a person's approval.",
      "agent": {