self_unruled

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

price.self prices the client performing reserved acts themselves, and no reserved row the Service performs allows self.

FixFails inExit
Mark the rows the client may perform with self: true, or take price.self out.services/translation.ts1

Owned by When the client does it themselves: the page that explains what this gate holds.

npx services.dev check
  ✗ price.self prices the client performing reserved acts themselves, and no reserved row the Service performs allows self. Mark the rows the client may perform with self: true, or take price.self out. price.self is $29, and no reserved row a step of translation performs allows self under rules 2026-10.
    https://services.dev/docs/reference/check/self_unruled
✗ 1 to fix
rules.ts
import { Rules } from 'services.dev'

export default Rules({
  version: '2026-10',
  services: {
    translation: {
      sign: { reserved: 'sworn translator', where: '*', position: 'A sworn translator signs a translation filed with a registry.' },
    },
  },
})
git add -A && git diff --staged
diff --git a/rules.ts b/rules.ts
index ea708e3..5d55c9a 100644
--- a/rules.ts
+++ b/rules.ts
@@ -4,7 +4,7 @@ export default Rules({
   version: '2026-10',
   services: {
     translation: {
-      sign: { reserved: 'sworn translator', where: '*', position: 'A sworn translator signs a translation filed with a registry.' },
+      sign: { reserved: 'sworn translator', where: '*', self: true, position: 'A sworn translator signs a translation filed with a registry.' },
     },
   },
 })
npx services.dev check
✓ ready to sell · 1 Service · it keeps at least 80% of every job
services/translation.ts
import { Service } from 'services.dev'
import rules from '../rules.ts'

export default Service({
  name: 'Translation',
  input: { document: 'file', to: 'language: a BCP 47 tag, such as fr-CA' },
  output: { document: 'file' },
  rules,
  roles: { translator: { credential: 'sworn translator' } },
  deliver: {
    translate: 'ai',
    harden: { review: 'adversarial', lenses: ['meaning', 'terms'] },
    sign: { by: 'translator', stamp: true },
  },
  price: { usd: 89, self: 29 },
})

How the legal example passes this gate, in lines read from its files.

examples/legal/rules.ts
'provisional-patent': {
// …
  sign: { reserved: practitioner, where: '*', self: true, rail: 'brand', position: 'Signed by a registered practitioner, or by the applicant for themselves.' },
  file: { reserved: practitioner, where: '*', self: true, rail: 'brand', position: 'Filing for another is practice before the office.' },
examples/legal/services/provisional-patent.ts
price: { usd: 199, self: 79, release: 'file', within: '5d' },

Read them in context: The rules table, Provisional patent application.

npx services.dev check --json · the self_unruled failure
{
  "code": "self_unruled",
  "reason": "price.self prices the client performing reserved acts themselves, and no reserved row the Service performs allows self.",
  "next": "Mark the rows the client may perform with self: true, or take price.self out. price.self is $29, and no reserved row a step of translation performs allows self under rules 2026-10.",
  "doc_url": "https://services.dev/docs/reference/check/self_unruled"
}
The whole document check --json prints
npx services.dev check --json
{
  "ai": {
    "cents_per_call": 42,
    "simulated": true
  },
  "mcp": {
    "tools": 13,
    "tokens": 4518,
    "sandbox": 9,
    "budget": 8000
  },
  "files": [
    {
      "path": "rules.ts",
      "lines": 6,
      "kind": "rules",
      "says": "rules 2026-10 · 1 Service · 1 row"
    }
  ],
  "services": [