{"ok":true,"name":"race_two_users","description":"Runs bounded checks in offline PostgreSQL. For a migration repair, pass corrected_sql as sql and its race_spec as spec. A completed passing repair check saves a shareable summary-only Proof Record. Portable v1 and legacy actor specs are also accepted.","inputSchema":{"type":"object","oneOf":[{"not":{"required":["github"]},"required":["sql"]},{"not":{"required":["sql"]},"required":["github"]}],"required":["spec"],"properties":{"sql":{"type":"string","maxLength":200000,"minLength":1,"description":"Complete migration SQL, not a database connection string."},"spec":{"anyOf":[{"type":"object","required":["format","family","table","source_sha256"],"properties":{"table":{"type":"string","maxLength":70},"family":{"enum":["counter","credits","booking","invite","unique_owner"],"type":"string"},"format":{"type":"string","const":"migration-fix-v1"},"operation":{"type":"string","maxLength":70},"source_sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"additionalProperties":false},{"type":"object","required":["format","rule","setup","requests","invariant","evidence"],"properties":{"rule":{"type":"string","maxLength":300,"minLength":1},"notes":{"type":"string","maxLength":4000},"setup":{"type":"string","maxLength":20000},"format":{"type":"integer","const":1},"evidence":{"type":"string","maxLength":8000,"minLength":1,"description":"Read-only SELECT of the relevant rows."},"requests":{"type":"array","items":{"type":"object","required":["statements"],"properties":{"id":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,15}$"},"role":{"enum":["anon","authenticated","service_role","postgres"],"type":"string"},"claims":{"type":"object","description":"Synthetic claims only; never credentials or signed JWTs."},"statements":{"type":"array","items":{"type":"string","maxLength":8000,"minLength":1},"maxItems":3,"minItems":1}},"additionalProperties":false},"maxItems":2,"minItems":2},"invariant":{"type":"string","maxLength":8000,"minLength":1,"description":"One SELECT returning the boolean rule that must hold."},"isolation":{"type":"array","items":{"enum":["read committed","repeatable read","serializable"],"type":"string"},"contains":{"const":"read committed"},"maxItems":3,"minItems":1,"uniqueItems":true},"uncertain":{"type":"boolean"}},"additionalProperties":false},{"type":"object","required":["rule","actors","assertion","evidence"],"properties":{"rule":{"type":"string","maxLength":300,"minLength":1},"setup":{"type":"string","maxLength":20000},"actors":{"type":"array","items":{"type":"object","required":["id","role","steps"],"properties":{"id":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_]{0,15}$"},"role":{"enum":["anon","authenticated","service_role","postgres"],"type":"string"},"steps":{"type":"array","items":{"anyOf":[{"type":"string","maxLength":8000,"minLength":1},{"type":"object","required":["rpc"],"properties":{"rpc":{"type":"object","required":["function"],"properties":{"args":{"type":"array","items":{},"maxItems":8},"function":{"type":"string","pattern":"^[a-z_][a-z_0-9]*\\.[a-z_][a-z_0-9]*$"}},"additionalProperties":false}},"additionalProperties":false}]},"maxItems":3,"minItems":1},"claims":{"type":"object","description":"Synthetic JWT claims only, never a signed JWT or real credentials"},"userId":{"type":"string","description":"Optional synthetic UUID; used as claims.sub"}},"additionalProperties":false},"maxItems":3,"minItems":2},"evidence":{"type":"string","maxLength":8000,"minLength":1,"description":"Read-only SELECT of the relevant rows, preferably with ORDER BY; max 25 returned"},"assertion":{"type":"string","maxLength":8000,"minLength":1,"description":"SELECT returning exactly one non-null boolean that must stay true"},"isolation":{"type":"array","items":{"enum":["read committed","repeatable read","serializable"],"type":"string"},"maxItems":3,"minItems":1,"uniqueItems":true}},"additionalProperties":false}]},"github":{"type":"object","required":["url","commit"],"properties":{"url":{"type":"string","description":"https://github.com/owner/repo, public repositories only"},"commit":{"type":"string","pattern":"^[0-9a-f]{40}$","description":"Resolved immutable commit SHA; a branch name is refused."}},"additionalProperties":false},"maxOrders":{"type":"integer","default":120,"maximum":240,"minimum":1},"replayToken":{"type":"string","maxLength":2048,"description":"From a previous result. Send the same input including maxOrders."}},"additionalProperties":false},"serverUrl":"https://viberaven.dev/mcp","transport":"http","handshake":"ok","host":"viberaven.dev","score":41,"grade":"C","auth":"none","lastScannedAt":"2026-11-24T03:29:21.722Z","stale":false,"permalink":"https://agentboardai.app/mcp/viberaven.dev/race_two_users","page":"https://agentboardai.app/site/viberaven.dev"}