JDogo
Open playground

Security and limits

Decoders assume input is hostile. Model output is data, never code.

Default limits

The same in every SDK, and all configurable.

LimitDefaultWhen exceeded
Nesting depth64Normal parse error, on decode and on encode
Items in one collection, rows in one table100,000Normal parse error
Payload size, Java mapper50 MBJDogoDeserializationException
Compute expression2,000 characters, 32 levels, 1,000,000 rowsok: false
Invalid UTF-8 in bytes (Java byte and stream readers, the Spring converter, the Python middleware)Rejected, never replacedNormal parse error

Tool output is data

JDogo text from tools or users is data, not instructions. When passing tool output or compact documents to an agent or model:

Malformed input

A decoder fails with its normal parse error on any bad text. It never overflows the stack, never throws an index or type error, and never invents a value. A fuzzer feeds every decoder thousands of broken and hostile documents to keep it that way.

Model output

ask() parses the model's reply with a small dedicated parser and evaluates it with a tree walker. Nothing reaches eval, exec, a script engine, SQL or a shell. A reply that isn't a valid query falls back to sending rows.

Numbers

Integers of any length are read exactly in all three SDKs (TypeScript returns BigInt past 253). Java reads numbers beyond a 64-bit float as BigDecimal; Python and TypeScript reject them rather than return infinity.

Encoders

Encoders refuse values nested deeper than the decoders accept, and quote any prefix or suffix that holds a marker character (+ $ ^), so every document they write decodes to the same value. Shared vectors, regression tests and cross-language fuzzing check round trips on every build.

Running the playground in public

See Running the playground for rate limits, the dev-only endpoints and the reverse-proxy setup.

Reporting a vulnerability

Follow the security policy. Please don't open a public issue for security problems.