+2
-2
scripts/moderation_loop.py
+2
-2
scripts/moderation_loop.py
···
295
result = await analyzer.run(f"analyze {len(pending)} flags:\n\n{desc}")
296
analyses = result.output
297
298
-
# auto-resolve false positives
299
auto = [a for a in analyses if a.category == "FALSE_POSITIVE"]
300
-
human = [a for a in analyses if a.category == "NEEDS_HUMAN"]
301
console.print(f"analysis: {len(auto)} auto-resolve, {len(human)} need human")
302
303
for a in auto:
···
295
result = await analyzer.run(f"analyze {len(pending)} flags:\n\n{desc}")
296
analyses = result.output
297
298
+
# auto-resolve false positives, everything else goes to human review
299
auto = [a for a in analyses if a.category == "FALSE_POSITIVE"]
300
+
human = [a for a in analyses if a.category != "FALSE_POSITIVE"]
301
console.print(f"analysis: {len(auto)} auto-resolve, {len(human)} need human")
302
303
for a in auto: