rokan
Back

What Rokan healed

Rokan watches itself and the fixes it ships. When something breaks or a fix makes things worse, it acts, writes it down, and tells you.

Every row says what it is, exactly as recorded: real, recorded or simulated.

Caught and handled

Sent to a person · the safety net

The watchdog: the recording, line by line
  1. [00:00] Rokan watchdog demo: real watchdog code, failures injected by this script (labelled)simulated failure, real watchdog code
  2. [00:00] SIMULATED: the 24/7 watch loop thread died 15 minutes agosimulated failure, real watchdog code
  3. [00:00] SIMULATED: a Vapi connection failed its last 9 reads; no good read for 2 dayssimulated failure, real watchdog code
  4. [00:00] SIMULATED: a Retell read waits out a 5 h back-off after one timeout; Retell reads fine elsewheresimulated failure, real watchdog code
  5. [00:00] SIMULATED: a connection lease left behind by a read that died an hour agosimulated failure, real watchdog code
  6. [00:00] SIMULATED: the watch pass raised KeyError in Rokan's own codesimulated failure, real watchdog code
  7. [00:00] watchdog look #1 (checks as they stand after its own recoveries): checks=ok, disk=ok, http=ok, importers=ok, memory=ok, pulls=ok, reads=ok, spend=ok, stuck_checks=ok, watch_loop=oksimulated failure, real watchdog code
  8. [00:00] INCIDENT opened: an exception in Rokan's own code (watch) (class KeyError)simulated failure, real watchdog code
  9. [00:00] HEALED automatically: the watch loop died; Rokan started a new onesimulated failure, real watchdog code
  10. [00:00] HEALED automatically: a vapi connection that failed 9 reads in a row was paused and marked needs attentionsimulated failure, real watchdog code
  11. [00:00] HEALED automatically: a retell read waiting out a long back-off was retried early: the platform reads fine for other connectionssimulated failure, real watchdog code
  12. [00:00] HEALED automatically: a connection lease no read held was clearedsimulated failure, real watchdog code
  13. [00:00] proposed-fix ticket 4e6934e7f294a2f8: KeyError at scripts/demo_watchdog.py:keep_batch:91 (status proposed; nothing is merged or deployed)simulated failure, real watchdog code
  14. [00:00] alert to demo-a's own saved channel (captured, not sent): Rokan paused your Vapi connection: the last 9 reads failed and none worked for a day. Check the key and the project, then press Resume:simulated failure, real watchdog code
  15. [00:00] alert to founder-1's own saved channel (captured, not sent): Rokan watchdog: an exception in Rokan's own code (watch) (class: KeyError). A proposed fix ticket was written (4e6934e7f294a2f8). Detail:simulated failure, real watchdog code
  16. [00:00] alert to founder-2's own saved channel (captured, not sent): Rokan watchdog: an exception in Rokan's own code (watch) (class: KeyError). A proposed fix ticket was written (4e6934e7f294a2f8). Detail:simulated failure, real watchdog code
  17. [00:00] alert to founder-1's own saved channel (captured, not sent): Rokan watchdog: a vapi connection that failed 9 reads in a row was paused and marked needs attention. Detail:simulated failure, real watchdog code
  18. [00:00] alert to founder-2's own saved channel (captured, not sent): Rokan watchdog: a vapi connection that failed 9 reads in a row was paused and marked needs attention. Detail:simulated failure, real watchdog code
  19. [00:00] watchdog look #2 (stamped 200 s later): watch_loop=ok, open incidents: code:4e6934e7f294simulated failure, real watchdog code
  20. [00:00] closed recovered:clear_lease (recovered=True)simulated failure, real watchdog code
  21. [00:00] closed recovered:pause_connection (recovered=True)simulated failure, real watchdog code
  22. [00:00] closed recovered:restart_watch (recovered=True)simulated failure, real watchdog code
  23. [00:00] closed recovered:retry_read (recovered=True)simulated failure, real watchdog code
The post-ship guard: the recording, line by line
  1. [00:00] Customer self-healing: a team on 'apply safe fixes, tell me after' (auto); post-ship guard on (ROKAN_AUTOGUARD=1; watches the next 5 conversations here, 20 by default; a revert needs failures in at least 5 distinct conversations)recorded
  2. [00:00] Rokan's sample support data; the product's real check, fix, apply, guard and undo code; alerts captured instead of sentrecorded
  3. [00:00] Check 1: 2 of 6 went wrong; tested fix proposed (breaks 0 past conversations); a person on the team approves itrecorded
  4. [00:01] Check 2: the same failure at another customer; the team already approved this exact rule, so Rokan APPLIED the fix by itself (2 of 6 went wrong before)recorded
  5. [00:01] Alert to the team: Rokan checked your agent's latest 6 runs (6 new): 2 went wrong; a fix tested on your past conversations fixed 2. Your team approved this exact rule before, so Rokan applied it: 1 rule change. Undo with one click: https:/recorded
  6. [00:01] Check 3 (SIMULATED rise in failures): 6 of 6 went wrong after the fix shippedsimulated failure rise
  7. [00:01] Post-ship guard: failures rose (6/6 after vs 2/6 before) -> Rokan UNDID its own fix; its rule left the agent: Truerecorded
  8. [00:01] Alert to the team: Rokan undid the fix it applied by itself: after it shipped, 6 of the next 6 conversations went wrong, against 2 of 6 before. It is not blocked: the next time it is proposed it waits for your yes. Report: (Aurecorded
  9. [00:01] audit: fix approved | 1f280d7bc6ed1c29 | by person | 1 appliedrecorded
  10. [00:01] audit: auto applied | 0c4f266aaebe073a | by rokan | applied by Rokan (team on auto, rule approved before); 2 of 6 went wrong before; watching the next 5recorded
  11. [00:01] audit: guard check | 0c4f266aaebe073a | by rokan | post-ship check: 6 of 6 went wrong since it shippedrecorded
  12. [00:01] audit: rules undone | 0c4f266aaebe073a | by rokan |recorded
  13. [00:01] audit: auto reverted | 0c4f266aaebe073a | by rokan | undone by Rokan's post-ship guard: 6 of 6 went wrong after vs 2 of 6 before; 1 rule(s) removedrecorded