price_below_cost
A delivered job could lose money: payout, nested Services and the AI cap add up to more than the price.
| Fix | Fails in | Exit |
|---|---|---|
| Raise price.usd, or lower payout. | services/translation.ts | 1 |
Owned by Service(): the page that explains what this gate holds.
✗ A delivered job could lose money: payout, nested Services and the AI cap add up to more than the price. Raise price.usd, or lower payout.
https://services.dev/docs/reference/check/price_below_cost
✗ 1 to fiximport { Service } from 'services.dev'
export default Service({
name: 'Translation',
input: { document: 'file', to: 'language: a BCP 47 tag, such as fr-CA' },
output: { document: 'file' },
human: { sign: 'sworn-translator' },
price: { usd: 49, payout: 60 },
})diff --git a/services/translation.ts b/services/translation.ts
index 773b4ad..337cbfd 100644
--- a/services/translation.ts
+++ b/services/translation.ts
@@ -5,5 +5,5 @@ export default Service({
input: { document: 'file', to: 'language: a BCP 47 tag, such as fr-CA' },
output: { document: 'file' },
human: { sign: 'sworn-translator' },
- price: { usd: 49, payout: 60 },
+ price: { usd: 89, payout: 60 },
})✓ ready to sell · 1 Service · it keeps at least 13% of every job{
"code": "price_below_cost",
"reason": "A delivered job could lose money: payout, nested Services and the AI cap add up to more than the price.",
"next": "Raise price.usd, or lower payout.",
"doc_url": "https://services.dev/docs/reference/check/price_below_cost"
}The whole document check --json prints
{
"ai": {
"cents_per_call": 42,
"simulated": true
},
"mcp": {
"tools": 13,
"tokens": 4491,
"sandbox": 9,
"budget": 8000
},
"services": [
{
"path": "services/translation.ts",
"lines": 5,
"steps": "draft · ai → review · ai · adversarial · then a person signs",
"ok": false,
"price": "$49 per job, within 48 hours, charged on delivery.",
"who": "A sworn translator signs before delivery.",
"agent": {