Skip to content
docs
Arxo ↗

Arxo query 0.1

For LLMs14 sections

A question to the evaluator — the evaluate input; the answer is an evaluation document. A literal without kind is never evaluated: a query outside this schema is rejected before evaluation with code QUERY_INVALID instead of being answered. The literals, terms, and formulas of a query are the same shapes as in the compiled model.

No accepted version marker is declared.

nametype-or-$refrequireddescription
queryId#/$defs/QueryIdyes—
kindenum (12)yes—
locationvalues
properties/kind"truth", "focused_truth", "why_not", "argumentation", "precedent", "formula", "collect", "term", "positions", "weak_permission", "interpretation_analysis", "calendar_op"
$defs/LiteralQuery/properties/kind"truth", "focused_truth", "why_not", "argumentation", "precedent"
$defs/FormulaQuery/properties/kind"formula"
$defs/CollectQuery/properties/kind"collect"
$defs/TermQuery/properties/kind"term"
$defs/PositionsQuery/properties/kind"positions"
$defs/WeakPermissionQuery/properties/kind"weak_permission"
$defs/InterpretationAnalysisQuery/properties/kind"interpretation_analysis"
$defs/InterpretationAnalysisQuery/properties/query/properties/kind"truth", "why_not", "argumentation", "precedent", "formula", "collect", "term", "positions", "weak_permission", "calendar_op"
$defs/CalendarOpQuery/properties/kind"calendar_op"
$defs/CalendarOpQuery/properties/op"is_working_day", "previous_working_day", "add_business_days", "deadline"
$defs/CalendarOpQuery/properties/unit"business_day", "calendar_day"
$defs/QueryComprehension/properties/kind"comprehension"

https://law.arxo.io/schema/query.schema.json

Query identifier; the tail after the last colon gives the result id and the query’s proof node.

Type: string.

Questions over a ground literal: truth, focused truth, why-not, argumentation, and precedent. The literal is a model Literal with kind literal: for a ground goal without kind, matching against a rule head is undefined, which is exactly how the judgment channel used to be lost.

Type: object. Required: queryId, kind, literal.

nametype-or-$refdescription
queryId#/$defs/QueryId—
kindenum (5)—
literallegal-ir.schema.json#/$defs/Literal—

A status formula as a query.

Type: object. Required: queryId, kind, formula.

nametype-or-$refdescription
queryId#/$defs/QueryId—
kind"formula"—
formulalegal-ir.schema.json#/$defs/Formula—

A collection through a comprehension.

Type: object. Required: queryId, kind, comprehension.

nametype-or-$refdescription
queryId#/$defs/QueryId—
kind"collect"—
comprehension#/$defs/QueryComprehension—

The value of a term over a ready store. The term is a model Term or a comparison (for a term query a comparison counts as a boolean-valued term, which is how pinned reference outputs supply it); a comprehension inside follows QueryComprehension, where a variable may lack a type. The term query schema looks no deeper than kind — term grammar is fixed by the model schema.

Type: object. Required: queryId, kind, term.

nametype-or-$refdescription
queryId#/$defs/QueryId—
kind"term"—
termobject—

The normative positions of the whole case; no arguments.

Type: object. Required: queryId, kind.

nametype-or-$refdescription
queryId#/$defs/QueryId—
kind"positions"—

Weak permission: the action is not forbidden under the closure policy. policy is the closure policy as an object, not a surface call argument.

Type: object. Required: queryId, kind, actor, action.

nametype-or-$refdescription
queryId#/$defs/QueryId—
kind"weak_permission"—
actorlegal-ir.schema.json#/$defs/Term—
actionlegal-ir.schema.json#/$defs/Term—
policyobject—

One query per reading of the group. The only place where a query takes a query — one level deep.

Type: object. Required: queryId, kind, group, query.

nametype-or-$refdescription
queryId#/$defs/QueryId—
kind"interpretation_analysis"—
grouplegal-ir.schema.json#/$defs/StableId—
queryobjectNested query without its own queryId (the id is inherited from the outer one) and not of kind interpretation_analysis.

A calendar operation over a pinned snapshot. days is required for add_business_days and deadline; policy for deadline is the deadline policy, taken from the case context when absent; suspensions come from the case data.

Type: object. Required: queryId, kind, op, date.

nametype-or-$refdescription
queryId#/$defs/QueryId—
kind"calendar_op"—
openum (4)—
datelegal-ir.schema.json#/$defs/DateString—
daysinteger—
afterTimestring—
unitenum (2)—
policyobject—
suspensionsarray—

A comprehension in a query. Same shape as a comprehension term in the model, except that a query variable may lack type — the type is known from the generator predicate’s declaration, which is how pinned reference outputs supply it. The query schema looks no deeper than generator and element: formula and term grammar belongs to the model schema, and a query outside it fails at evaluation with an ordinary diagnostic.

Type: object. Required: kind, variable, element, generator, distinct.

nametype-or-$refdescription
kind"comprehension"—
variableobject—
bindersarray—
elementobject—
generatorobject—
distinctboolean—

Documentation for Arxo. Writings — blog.arxo.io.

Anonymous visit counts on stats.arxo.io, no cookies.