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
- RecoveredSimulated failure, real watchdog code
The watch loop died
Restarted the watch loop
- RecoveredSimulated failure, real watchdog code
A vapi connection that failed 9 reads in a row was paused and marked needs attention
Paused the connection and marked it
- RecoveredSimulated failure, real watchdog code
A retell read waiting out a long back-off was retried early: the platform reads fine for other connections
Retried the read early
- RecoveredSimulated failure, real watchdog code
A connection lease no read held was cleared
Cleared the stuck lease
- Undone by itselfRecorded (sample data, real product code; failure rise simulated)
A fix Rokan applied by itself made more conversations go wrong
went wrong
2 of 6→ 6 of 6the post-ship guard rolled fix 0c4f266aaebe073a back; the fix is not blocked, next time it waits for your yesThe guard is off unless a team turns it on; it was on for this recording, and it acts only when at least 5 different conversations went wrong.
Audit trail · 5 rows
- fix approvedperson1 applied
- auto appliedrokanapplied by Rokan (team on auto, rule approved before); 2 of 6 went wrong before; watching the next 5
- guard checkrokanpost-ship check: 6 of 6 went wrong since it shipped
- rules undonerokan
- auto revertedrokanundone by Rokan's post-ship guard: 6 of 6 went wrong after vs 2 of 6 before; 1 rule(s) removed
Sent to a person · the safety net
- Needs a personSimulated failure, real watchdog code
An exception in Rokan's own code (watch)
Opened an incident and alerted the team · incident 8ac94526ceb7
The watchdog: the recording, line by line
- [00:00] Rokan watchdog demo: real watchdog code, failures injected by this script (labelled)simulated failure, real watchdog code
- [00:00] SIMULATED: the 24/7 watch loop thread died 15 minutes agosimulated failure, real watchdog code
- [00:00] SIMULATED: a Vapi connection failed its last 9 reads; no good read for 2 dayssimulated failure, real watchdog code
- [00:00] SIMULATED: a Retell read waits out a 5 h back-off after one timeout; Retell reads fine elsewheresimulated failure, real watchdog code
- [00:00] SIMULATED: a connection lease left behind by a read that died an hour agosimulated failure, real watchdog code
- [00:00] SIMULATED: the watch pass raised KeyError in Rokan's own codesimulated failure, real watchdog code
- [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
- [00:00] INCIDENT opened: an exception in Rokan's own code (watch) (class KeyError)simulated failure, real watchdog code
- [00:00] HEALED automatically: the watch loop died; Rokan started a new onesimulated failure, real watchdog code
- [00:00] HEALED automatically: a vapi connection that failed 9 reads in a row was paused and marked needs attentionsimulated failure, real watchdog code
- [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
- [00:00] HEALED automatically: a connection lease no read held was clearedsimulated failure, real watchdog code
- [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
- [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
- [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
- [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
- [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
- [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
- [00:00] watchdog look #2 (stamped 200 s later): watch_loop=ok, open incidents: code:4e6934e7f294simulated failure, real watchdog code
- [00:00] closed recovered:clear_lease (recovered=True)simulated failure, real watchdog code
- [00:00] closed recovered:pause_connection (recovered=True)simulated failure, real watchdog code
- [00:00] closed recovered:restart_watch (recovered=True)simulated failure, real watchdog code
- [00:00] closed recovered:retry_read (recovered=True)simulated failure, real watchdog code
The post-ship guard: the recording, line by line
- [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
- [00:00] Rokan's sample support data; the product's real check, fix, apply, guard and undo code; alerts captured instead of sentrecorded
- [00:00] Check 1: 2 of 6 went wrong; tested fix proposed (breaks 0 past conversations); a person on the team approves itrecorded
- [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
- [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
- [00:01] Check 3 (SIMULATED rise in failures): 6 of 6 went wrong after the fix shippedsimulated failure rise
- [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
- [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
- [00:01] audit: fix approved | 1f280d7bc6ed1c29 | by person | 1 appliedrecorded
- [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
- [00:01] audit: guard check | 0c4f266aaebe073a | by rokan | post-ship check: 6 of 6 went wrong since it shippedrecorded
- [00:01] audit: rules undone | 0c4f266aaebe073a | by rokan |recorded
- [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