Abstract Agent Process Repository
Abstract base class for AgentProcessRepository implementations that enforces ephemeral process handling.
Ephemeral processes (marked with processOptions.ephemeral = true) are not persisted and cannot spawn child processes. This class uses the template method pattern to prevent persistence of ephemeral processes while allowing implementations to customize actual persistence logic.
Implementations should:
Extend this class instead of implementing AgentProcessRepository directly
The final save and update methods will handle ephemeral checks automatically
Inheritors
Functions
Find all child processes for the given parent process ID.
Save a new agent process. This method checks if the process is ephemeral and logs an error if persistence is attempted. Non-ephemeral processes are delegated to doSave.
Update an existing agent process. This method checks if the process is ephemeral and logs an error if persistence is attempted. Non-ephemeral processes are delegated to doUpdate.