Home / Docs / Language guide

Requirements

Release v0.4.0

Requirements record human intent with origin and owner, so contracts can be traced to it.

una
module demo

requirement EVENTS_3
  text "An event with no remaining seats is always shown as sold out"
  source policy "Box Office Handbook 2.1"
  owner box_office
  status active

pub kind Availability = SoldOut | Open

pub availability(remaining: Int) -> Availability
  ensures remaining < 1 implies result is SoldOut
  derived from EVENTS_3
=
  if remaining < 1 then SoldOut else Open
Field Values
text the statement
source human, policy "<doc>", regulation "<doc>", generated "<task>"
owner accountable team or person (snake_case)
status proposed or active

Constructs