When a website changes, a method built on it can stop working. Fous checks every method version in use and repairs it in place, keeping its contract: your input and the shape of data stay the same.
status | Runs |
|---|---|
ready | Run normally. Any successful run makes the version ready at once. |
degraded | Its saved examples and runs stopped working. Runs are still attempted. |
repairing | Refused until the repair ends, no later than repair.expected_at. |
While a repair runs
Runs of a repairing version are refused at no charge with method_repairing. The error gives the latest time it will be back and any alternatives:
When the repair completes, runs work on the same version and revision increases. Repairs are free. If a repair cannot fix the version, the version stays degraded, last_repair gives the reason, it ranks lower in search, and Fous tries again later. A repair that stops because of a Fous error, or does not finish within 30 minutes, has no effect on the status.
A workflow step waits for a running repair instead of failing.
Health checks
Only the method's own breakage counts against it: the site's response no longer fits the method, or its saved examples stop working. Invalid input, blocks, timeouts, a site's intermittent failures and Fous errors do not count, and no single run changes the status.
A degraded version is checked hourly, on every plan. A version run in the last 7 days is checked at least daily. A method's current version, and any version run in the last 30 days, is checked at your plan's pace even when nobody runs it: weekly on Starter, daily on Pro, every 6 hours on Business and hourly on Enterprise; on Business and Enterprise that pace applies to versions in use too. On Free, a method is checked while it is in use. limits.health_check_hours in GET /v1/account is your plan's pace. A check re-runs saved examples that returned data. Write methods are never sent. Checks are free.
Follow a method
GET /v1/methods/{ref}?wait=60 holds the response while the version is repairing. With seen set to status:revision from your last read, it returns on any change. Over MCP, methods with get and wait does the same.
When the repair completes, the response is the method with status: "ready" and a higher revision.