pub fn rerun_report(
corpus: &str,
service: &str,
severity: Option<&str>,
category: Option<&str>,
what: Option<&str>,
description: Option<&str>,
actor: Actor,
database_url: &State<DatabaseUrl>,
_pool: &State<DbPool>,
) -> Result<(Status, Json<RerunAckDto>), Status>Expand description
Marks the selected (corpus, service[, severity, category, what]) scope for reprocessing — the
agent twin of the report screen’s rerun action, and a new historical run. Token-gated via
the Actor guard (X-Cortex-Token header or ?token=); 401 without a valid token, so
results can’t be wiped by an unauthenticated caller. 400 on an unknown severity, 404 on an
unknown corpus/service. Returns 202 Accepted.