Synopsis
Behavior
- Create a directory
actors/<name>/. - Write
actors/<name>/main.pywith the actor template (see below). - Print the created file path and next steps.
Actor Template
- Defines a class named
Actor(the entry point the VM looks for). - Has simple state (
self.counter) to demonstrate persistence. - Has two handlers:
increment(write) andget_count(read). - Follows the determinism constraints of the Cowboy VM (no imports, no I/O, no randomness).
Example
Edge Cases
- Name collision — If
actors/<name>/already exists, print an error and exit. Do not overwrite. - No actors/ directory — Create
actors/if it doesn’t exist. - Invalid name — Actor names must be valid directory names. Reject names containing
/,.., or whitespace.

