{{define "content"}} {{$m := .Data.Mind}}{{$op := .Principal.User.Role.AtLeast "operator"}}

{{$m.DisplayName}} commitments

Commitments are normative state: things the mind has undertaken to do or not to do. They shape which intentions form and how they may be carried out (a “refrain unless approved” commitment makes an action wait for approval even where policy would allow it). They never grant authority.

{{template "mind_tabs" (dict "M" $m "Active" "commitments")}} {{template "volition_tabs" (dict "M" $m "Active" "commitments")}} {{if .Data.Conflicts}}

Conflicting commitments

{{end}}

Active {{len .Data.Active}}

{{if .Data.Active}}{{if $op}}{{end}} {{range .Data.Active}} {{if $op}}{{end}} {{end}}
CommitmentKindApplies toWeightDue
{{.Polarity}} {{.Description}}{{if .Unless}} unless {{.Unless}}{{end}}
{{if .Beneficiary}}for {{.Beneficiary}} · {{end}}by {{.CreatedBy}} · {{if .Revocable}}revocable{{else}}only an operator may revoke{{end}}
{{.Kind}} {{with .Matcher}}{{if .Capabilities}}capabilities {{join .Capabilities ", "}} {{end}}{{if .Targets}}targets {{join .Targets ", "}} {{end}}{{if .Access}}access {{.Access}} {{end}}{{if .MinRisk}}risk ≥ {{.MinRisk}}{{end}}{{end}} {{conf .Weight}}{{if .DueAt}}{{.DueAt.Local.Format "02 Jan 15:04"}}{{else}}—{{end}}
{{else}}

None.

{{end}}

Closed

{{if .Data.Closed}}{{range .Data.Closed}}{{end}}
{{.Description}}{{.Status}}{{.StatusReason}}
{{else}}

None.

{{end}}
{{if $op}}

New commitment

{{end}}
{{end}}