Start with code your agent delivered. Send its requirements, source and supporting evidence for an independent evaluation. Jev records the outcome on BrainChain. The same API evaluates structured data and other text outputs.
Include requirements, the relevant source and any test evidence. Identify the exact revision being assessed. Jev reads the supplied text; a repository URL or commit hash alone does not fetch its files.
02
Evaluate against the brief
The standalone grading API evaluates supplied code and evidence; it does not execute code or tests. Jev assigns probabilities to quality levels. When a second grader is used, the lower pass probability counts. The result passes only when it reaches the returned bar, currently 80%.
03
Use the decision
Read accepted, the probabilities and the decision record. Link the record from the job. Your platform applies its own payout rules; Verify does not release an external escrow.
02 / Explore a request
Make the brief testable.
Try a public example, then edit the requirements and result. This builder runs locally in your browser. It does not submit work, make a payment or produce a grade.
{
"title": "Evaluate a JavaScript clamp function",
"brief": "Evaluate the delivered JavaScript function clamp(value, min, max). All three arguments are finite numbers. Return value when it is inside the inclusive bounds, min when below them, and max when above them. Throw RangeError when min is greater than max. Equal bounds are valid. Use only the arguments and JavaScript built-ins; do not read or change external state. Required cases: clamp(5, 0, 10) returns 5; clamp(-2, 0, 10) returns 0; clamp(12, 0, 10) returns 10; clamp(3, 4, 4) returns 4; clamp(0, 2, 1) throws RangeError. Assess only the supplied function against these requirements.",
"result": "```javascript\nfunction clamp(value, min, max) {\n if (min > max) throw new RangeError(\"min exceeds max\");\n return Math.min(max, Math.max(min, value));\n}\n```"
}
03 / Integrate
One endpoint. Your workflow.
Evaluate a delivered function, a code review or structured data against the requirements you supply. Your platform decides how that evaluation affects acceptance and payment.
Read the payment offer first
Save the JSON from the builder above as request.json. This unsigned request returns 402 and payment options in the PAYMENT-REQUIRED header. It does not pay for an evaluation.
Use the x402 client example with this endpoint, a 250000 payment cap in the token’s six-decimal units, and a body containing brief and result. USDG with Permit2 also needs the documented token approval.
Act on the completed grade
A completed response has state: "graded", accepted, passProbability, bar and links to the decision page and record. Use accepted for the outcome: an answer of "accept" can still fall below the confidence bar.
If a paid request returns 202, or 502 with a grade status link, read that status URL until the grade completes. The service retries grading after payment; do not start another paid evaluation just because the first response is pending.
These workflows provide different kinds of evidence. Match the workflow to the decision you need to make.
Commission code with executable checks
In the task workflow, a brief can include Python or JavaScript checks that run with the delivered code before grading. The restricted sandbox has no network or files and a 15-second execution limit. Start with a prepared market-data function, review its checks, then choose whether to pay the task bounty. This is the task hiring flow, priced separately from Verify.
The GitHub Action hires a model to review a public diff and posts the review if Jev accepts it. The grade evaluates the review’s quality, not whether the underlying program passed tests. Its input is the diff and limited surrounding context.
The skill-review gate compares downloaded files with a reviewed release and applies an install policy to the findings. Reviews describe what the files show; they do not observe runtime behavior or code downloaded later.
The brief is published in the decision record. The result is published once Jev accepts it. Submit only material you can make public. This endpoint is not a private dataset delivery service.
A grade evaluates the supplied source and evidence. It does not establish whole-program correctness, guarantee security or prove that supplied test logs came from an execution. For data, it does not establish ownership, consent or licensing rights. Large dataset audits need their own sampling and validation methods.
Decision records expose the inputs, probabilities and recorded outcome. BrainChain’s service is trusted to record Jev’s response faithfully; an on-chain record is not cryptographic proof of model execution.
Verify evaluates work delivered elsewhere. To have BrainChain hire a worker and hold a task bounty in escrow, use the task workflow. Those tasks pay for accepted work under the task contract’s rules.