aboutsummaryrefslogtreecommitdiff
path: root/scripts/newos4-steer.py
diff options
context:
space:
mode:
authorAgando <roduccomm@gmail.com>2026-10-26 14:45:36 +0100
committerAgando <roduccomm@gmail.com>2026-10-26 14:45:36 +0100
commit02ffef703a1b8d85915f344e182a1a4e67dac9df (patch)
treea0a5326b183015584a9f596ebfc2cf39ec32706f /scripts/newos4-steer.py
parent9a770fcad562ce7f22a2738e17a69a10128abc2d (diff)
feat(newos4): filter network-class auto reports at ingest — count, don't file
The debug supervisor files an auto report for any failed fetch, so a flaky phone connection or a retired endpoint became a review card. One cluster held 14 407 + 1 031 occurrences and produced 3 of the 19 cards in the queue; 10 of 21 items reviewed on 2026-10-26 were noise for this reason. api/debug/report.php: an auto report whose *every* error is network-class (fetch failed / failed to fetch / network error / load failed / aborted / signal is aborted / ERR_INTERNET_*) now increments data/debug/network_failures.json (per day, per source path, top 40 kept) and returns 202 {filtered:"network"}. No RPT file, no card. Never filtered: any report with auto=false (user content), and any auto report carrying a stack/TypeError, i.e. a real defect. Verified on a throwaway tree and live through nginx: auto network poll.php -> 202 filtered, no file auto network /ollama/ -> 202 filtered, no file auto TypeError + stack -> 201 filed (RPT-20261026-134455-95f10612) user report w/ "fetch" -> 201 filed (RPT-20261026-134455-ab0f2cd4) Live: counter total=1 by_source {'/spaces/newos4/api/chat/poll.php': 1}, reports stayed at 19. The dashboard now shows the counter instead of silence: "🌐 1 network failure counted at ingest today, not filed as cards — /spaces/newos4/api/chat/poll.php ×1"
Diffstat (limited to 'scripts/newos4-steer.py')
0 files changed, 0 insertions, 0 deletions