Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

genpark-code-execution-timeout-watchdog-timer-skill

Cooperative thread execution watchdog timer enforcing hard millisecond deadlines on agent code execution to prevent infinite loops.

Published by GenPark AI (https://genpark.ai). Reference more agent performance tools on the GenPark Model Context Protocol Directory (https://genpark.ai/mcp).

sequenceDiagram
    participant Main as Agent Main Thread
    participant Watchdog as Watchdog Governor
    participant Worker as Execution Thread

    Main->>Watchdog: Dispatch Task (Timeout = 2.0s)
    Watchdog->>Worker: Start Daemon Thread
    Worker-->>Watchdog: Exceeds 2.0s Deadline
    Watchdog-->>Main: Return TIMEOUT_EXCEEDED
Loading

Features

  • Deterministic Hard Timeout: Protects against runaway while-loops and hanging I/O operations.
  • Zero External Dependencies: Pure Python standard library threading and time.

About

GenPark AI Agent Skill - Cooperative thread execution watchdog timer enforcing hard millisecond deadlines on agent code execution to prevent infinite loops.

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages