% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/outcomes.R
\name{fetch_report}
\alias{fetch_report}
\title{Summarise the outcome of a fetch or classification run}
\usage{
fetch_report(x)
}
\arguments{
\item{x}{A tibble from [collect_content()] or [pie_cat()].}
}
\value{
A one-row tibble: `n`, `ok`, `failed`, `retryable`, and list-columns
  `by_stage`, `by_reason` and `missing` (the domains that produced nothing).
}
\description{
A pure function over the returned tibble, deliberately **not** a stored summary. A
snapshot goes stale the moment you filter the rows; recomputing means
`fetch_report(subset(x, retryable))` is always correct.
}
\examples{
rows <- data.frame(
  domain_name = c("a.com", "b.com", "c.com"),
  status = c("ok", "failed", "failed"),
  stage = c("infer", "fetch", "process"),
  error_code = c(NA, "timeout", "thin_content"),
  retryable = c(FALSE, TRUE, FALSE)
)
fetch_report(rows)
}
