Add ChanFix: recover opless channels from op-time scores

The engine samples live op state on a short cadence, scoring op-time per
identity (account, else host) on the network view — a net +1 per pass
while opped, -1 while idle, so trusted regulars rise and stale ops fade.
ChanFix (operator-only) reads those scores: SCORES <#chan> shows the
standings, CHANFIX <#chan> reops the present regulars scoring above a
share of the top score, once the channel is opless enough and has real
history. It defers to ChanServ — a registered channel is refused. Opt-in.

C++ note: the original persists scores to the services DB and runs its own
timers; here scoring rides the existing periodic loop and lives on the
ephemeral network view, so it's node-local and rebuilds itself.
This commit is contained in:
Jean Chevronnet 2026-07-14 04:33:48 +00:00
parent 09be99785e
commit 06227e73da
No known key found for this signature in database
8 changed files with 260 additions and 1 deletions

8
Cargo.lock generated
View file

@ -327,6 +327,7 @@ dependencies = [
"base64",
"fedserv-api",
"fedserv-botserv",
"fedserv-chanfix",
"fedserv-chanserv",
"fedserv-diceserv",
"fedserv-example",
@ -369,6 +370,13 @@ dependencies = [
"fedserv-api",
]
[[package]]
name = "fedserv-chanfix"
version = "0.0.1"
dependencies = [
"fedserv-api",
]
[[package]]
name = "fedserv-chanserv"
version = "0.0.1"