% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils-pediagfeatures-tiebreaker.R
\name{.apply_nasis_tiebreaker}
\alias{.apply_nasis_tiebreaker}
\title{Apply the NASIS surveyor tie-breaker to a DiagnosticResult}
\usage{
.apply_nasis_tiebreaker(result, pedon, pattern, feature_label)
}
\arguments{
\item{result}{A \code{\link{DiagnosticResult}} (from a canonical
gate like \code{mollic_epipedon_usda()}).}

\item{pedon}{A \code{\link{PedonRecord}}.}

\item{pattern}{Regex pattern matched against
\code{pediagfeatures.featkind}.}

\item{feature_label}{Short label for the provenance note.}
}
\value{
The (possibly modified) DiagnosticResult.
}
\description{
When \code{result$passed} is \code{NA} (insufficient data) AND the
surveyor identified the matching diagnostic in NASIS, flips the
result to \code{TRUE} with a provenance note. \code{TRUE} or
\code{FALSE} canonical results are NOT overridden -- the function
returns the input unchanged in those cases.
}
\keyword{internal}
