Add an AI slop verdict that downrates the author's future articles

A fourth explicit verdict, "AI slop" (Vote::Slop, label `slop`), joins the
rating widget on the web, the EPUB footer links, the /r/ confirmation page,
the CLI, imports and the dashboard filters. It counts as a full negative
(curation.feedback.slop_value, -1.0) in the neighbour and affinity signals.

Beyond that, each run loads the authors whose current verdict is slop, with
no lookback, and multiplies the preliminary blend and the utility of every
candidate by that author by 1 - curation.ranking.slop_author_penalty (0.75),
so they sink before triage. The flag is recorded in signals_json, shown by
`explain` and the dashboard signals table, and the confirmation names the
author (or says no author is known, in which case only the rating applies).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VXYGBPoHZSDSfE5WcJ9bvj
This commit is contained in:
thalladaandClaude Fable 5.1 committed 2026-09-09 03:36:50 +00:00
1 parent c6a9a98a0d
commit b02e1c7b8c
30 files changed
+485 -84

No files matched your search

+14 -6
View File
@@ -1,5 +1,18 @@
//! Shared construction of explicit rating events.
/// The confirmation shown after an *AI slop* verdict: whether the author
/// penalty can apply depends on the article having an author at all (§9.3).
pub fn slop_message(author: Option<&str>) -> String {
match author.map(str::trim).filter(|author| !author.is_empty()) {
Some(author) => {
format!("Recorded: AI slop — thanks. Future articles by {author} will rank much lower.")
}
None => "Recorded: AI slop — thanks. This article has no known author, so only the \
usual negative rating applies."
.to_string(),
}
}
use crate::config::Config;
use crate::db::{Db, DbError};
use crate::types::{ArticleId, RatingEvent, Vote};
@@ -15,12 +28,7 @@ pub async fn record_explicit(
note: Option<String>,
) -> Result<i64, DbError> {
let (label, value) = match vote {
Some(Vote::Loved) => ("loved", Vote::Loved.value(&config.curation.feedback)),
Some(Vote::Good) => ("good", Vote::Good.value(&config.curation.feedback)),
Some(Vote::NotForMe) => (
"not_for_me",
Vote::NotForMe.value(&config.curation.feedback),
),
Some(vote) => (vote.event_label(), vote.value(&config.curation.feedback)),
None => ("cleared", 0.0),
};
db.append_rating_event(&RatingEvent {