Home / Docs / Specification / 13. Diagnostics, Agent ABI and project files

13.2 Obligation listing

Release v0.4.0

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).