Add welcomebot-reputation CLI and a --reputation log filter
docker-build-push / build-push (push) Successful in 4s
docker-build-push / build-push (push) Successful in 4s
The pre-signup path had no inspection tool. Its activity landed in docker logs and two sqlite tables with nothing to read them, while the reactive path has had welcomebot-signups and welcomebot-suspicious all along. welcomebot-reputation reads reputation_query and reputation_block directly so it survives log rotation: recent answers, --stats for volume and flag/block rate by source, --blocks for what is actually in force, and --deferred to see whether the hourly provider-lookup ceiling is biting. --blocks marks rows GONE once the reconcile pass finds the block no longer on the Mastodon side, so "we installed this" and "this is in force" stay distinguishable. welcomebot-logs --reputation covers the raw lines (pre-blocks, budget refusals, width-cap narrowings).
This commit is contained in:
1 parent
47e92ca10f
commit
1bfbcfdac3
4 files changed
+256
-3
No files matched your search
@@ -25,6 +25,7 @@ Options:
|
||||
--abuse Only abuse-handler lines (reports, silences, dry-run, tiers).
|
||||
--welcome Only welcome lines.
|
||||
--ip Only IP-scrutiny lines (classifications, ip_block writes, ipapi.is errors).
|
||||
--reputation Only pre-signup reputation-API lines (pre-blocks, budget refusals).
|
||||
-g, --grep PATTERN Only lines matching PATTERN (extended regex).
|
||||
-h, --help Show this help.
|
||||
|
||||
@@ -34,6 +35,7 @@ Examples:
|
||||
welcomebot-logs -n 1000 --since 24h
|
||||
welcomebot-logs -g 'acct=spammer'
|
||||
welcomebot-logs --ip --since 24h # recent signup-IP classification decisions
|
||||
welcomebot-logs --reputation -f # follow pre-signup blocking as it happens
|
||||
EOF
|
||||
}
|
||||
|
||||
@@ -45,6 +47,7 @@ while [ $# -gt 0 ]; do
|
||||
--abuse) pattern='welcomebot (report |auto-|\[DRY-RUN\]|tier=|silenc|holds a staff|allowlisted)' ;;
|
||||
--welcome) pattern='welcomebot (welcomed|already welcomed|skipping non-local|queued)' ;;
|
||||
--ip) pattern='welcomebot (flagged signup|ipapi\.is lookup failed|ip_block|unparseable ip)' ;;
|
||||
--reputation) pattern='welcomebot (reputation query|block for ip=.*narrowed)' ;;
|
||||
-g|--grep) shift; pattern="${1:?--grep needs a value}" ;;
|
||||
-h|--help) usage; exit 0 ;;
|
||||
*) echo "welcomebot-logs: unknown option: $1" >&2; usage >&2; exit 2 ;;
|
||||
|
||||
Reference in new issue
Block a user