Monitor debounce explorer — M128 Bundle X

Simulate the uncommitted-work-reminder behavior before vs. after the I12 debounce fix. Drag the sliders to model an editing session and see how often the monitor would fire under each implementation.

Simulation controls

180
15
2
60

Timeline — before debounce

Total reminders fired
0
After commit (false)
0
Same-count nags
0

The fix (src/monitors/monitors.json)

# Before
sleep 600; while true; do
  changed=$(git diff --stat | tail -1 | grep -o '[0-9]* file' | grep -o '[0-9]*')
  if [ "$changed" -gt 10 ]; then
    echo "$changed files with uncommitted changes — consider /ork:commit"
  fi
  sleep 900
done

# After (I12)
sleep 600; prev_count=0; while true; do
  changed=$(git diff --stat | tail -1 | grep -o '[0-9]* file' | grep -o '[0-9]*')
  last_commit=$(git log -1 --format=%ct)
  now=$(date +%s)
  since_commit=$((now - last_commit))
  if [ "$changed" -gt 10 ] && [ "$since_commit" -gt 300 ] && [ "$changed" != "$prev_count" ]; then
    echo "$changed files with uncommitted changes — consider /ork:commit"
  fi
  prev_count=$changed
  sleep 900
done