{{define "content"}} {{$m := .Data.Mind}}

{{$m.DisplayName}} redactions

The audited path for making sensitive content irrecoverable. A redaction keeps the row, its identifiers, its links, its type and its time, replaces the content with [redacted], scrubs stored snapshot archives, and records a hash of what was removed. It cannot be undone. Backups and exports taken before it are outside this system's reach.

{{template "mind_tabs" (dict "M" $m "Active" "redactions")}}
{{if .Data.Redactions}} {{range .Data.Redactions}}{{end}}
WhenKindTargetReasonPolicyByCascadeHash
{{ago .CreatedAt}}{{.Kind}}{{if eq .Kind "event"}}{{trunc (printf "%s" .TargetID) 13}}{{else if eq .Kind "memory"}}{{trunc (printf "%s" .TargetID) 13}}{{else if eq .Kind "belief"}}{{trunc (printf "%s" .TargetID) 13}}{{else}}{{trunc (printf "%s" .TargetID) 13}}{{end}}{{.Reason}}{{.Policy}}{{.RequestedBy}}{{if .CascadeOf}}from {{trunc (printf "%s" .CascadeOf) 8}}{{else}}primary{{end}}{{trunc .ContentHash 19}}…
{{else}}

Nothing has been redacted for this mind.

{{end}}
{{if .Principal.User.Role.AtLeast "administrator"}}

Redact

Redaction is recorded in the audit log and as a redaction event in the mind's history; neither contains the removed content.

{{end}}
{{end}}