{{define "content"}}
No action reaches the world except through a capability, and every capability is governed by ALLOW / ASK / DENY rules. The most specific rule wins; on ties the stricter effect wins. Locked capabilities cannot be relaxed.
| Capability | Risk | Default | {{range .Data.Minds}}{{.DisplayName}} | {{end}}
|---|---|---|---|
{{$c.Name}}{{if $c.Locked}} locked{{end}}{{$c.Description}} |
{{$c.Risk}} | {{$c.DefaultEffect}} | {{range $m := $.Data.Minds}}{{$e := index $.Data.Matrix $m.ID $c.Name}}{{$e.Effect}} | {{end}}
| Scope | Capability | Target | Action | Hours | Effect | Reason | By | {{if $admin}}{{end}} |
|---|---|---|---|---|---|---|---|---|
| {{if .MindID}}{{index $.Data.MindNames .MindID}}{{else}}global{{end}} | {{.Capability}} | {{.TargetPattern}} | {{.ActionKind}} | {{if .HoursFrom}}{{deref_int .HoursFrom}}–{{deref_int .HoursTo}}{{else}}always{{end}} | {{.Effect}} | {{.Reason}} | {{.CreatedBy}} | {{if $admin}}{{end}} |
No rules yet: every capability uses its default (ASK for reads and writes, DENY for locked).
{{end}} {{if .Data.Grants}}| {{index $.Data.MindNames .MindID}} | {{.Capability}} | {{.TargetPattern}} | by {{.GrantedBy}} until {{.ExpiresAt.Local.Format "15:04"}} | {{if $.Principal.User.Role.AtLeast "operator"}}{{end}} |
ALLOW rules on high-risk capabilities are shown with a warning in the matrix. sudo_shell and delete_database are locked to DENY.