Home / Docs / Una for agents / Schemas
una.obligations/1
Release v0.4.0
una.obligations/1 is a JSON document of the Agent ABI, defined in spec/13 §2. This page gathers what the specification says about it at v0.4.0: each section whole where it opens with the document, and otherwise the parts that name it.
Obligation listing
From spec/13 §2, in full.
una obligations --json returns every obligation, proven or not:
json
{
"schema": "una.obligations/1",
"obligations": [
{
"id": "ob-3f09a1c2e7b4",
"kind": "postcondition",
"domain": "semantic",
"status": "proven",
"source": { "file": "src/events/seating.una", "start": { "line": 23, "col": 11 }, "end": { "line": 23, "col": 52 } },
"declaration": "events.seating.availability",
"goal": "e.remaining < 1 implies result is SoldOut",
"hypotheses": ["0 <= e.remaining", "e.remaining <= 5000"],
"cached": true
}
]
}source is the declaring clause for a return obligation, and the site otherwise. hypotheses are the refinements of record fields that the query assumes, then the path context at the site, or at the function's entry for a return obligation, printed in the surface syntax. domain is semantic for every obligation of v0.1 (ADR 0033).