DSAIL Quickstarts Guides Compare REST MCP tools Errors

COMPILE_FAILED

The DSAIL source did not compile. HTTP 422. The response carries line-numbered diagnostics and the grammar guide; fix the source and compile again.

The ruleset source you submitted does not compile. The envelope carries every diagnostic with its line number, and hint — the full grammar guide — so the next call can succeed without a human.

The envelope

{"ok": false,
 "error": {"code": "COMPILE_FAILED",
           "message": "assertion `cap` compares the united claim `amount` (USD) against the unsigned literal 25000; write the unit on the literal (25000 \"USD\")",
           "docs": "https://docs.agents.jaxon.ai/errors/compile-failed.md",
           "diagnostics": [{"severity": "error", "line": 5, "message": "..."}],
           "hint": "DSAIL ruleset grammar (v1.3) ..."},
 "versions": {"...": "..."}}

The mistakes models actually make

Then

Fix the source and call compile again. Compile renders nothing and may be iterated freely; present the ruleset to a person (dsail_review) only once it compiles clean. The grammar is also on this site, verbatim, in the MCP server instructions.

See also: Turn a policy document into rules a program can check.