% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scan_prompt.R
\name{.resolve_action}
\alias{.resolve_action}
\title{Resolve final action from risk and findings}
\usage{
.resolve_action(risk_score, findings, policy)
}
\arguments{
\item{risk_score}{Numeric risk score.}

\item{findings}{Finding list.}

\item{policy}{A \code{shieldr_policy}.}
}
\value{
A string action.
}
\description{
Converts a report score and findings into \code{allow}, \code{redact}, or \code{block}.
}
\details{
Resolution is conservative. A critical finding, explicit block action, or
score above \code{policy$thresholds$block_at} returns \code{block}. Otherwise, a
redaction finding or score at or above \code{policy$thresholds$redact_at} returns
\code{redact}. All other cases return \code{allow}.
}
\keyword{internal}
