The resource model
Checked against Orca Agent Engine v0.5.1
Declare once, run many times
You declare resources in the Registry and reuse them. A session is the one that runs: it ties a version of an agent to an environment and to whatever it mounts. Pick a resource.
An agent is a definition
An agent is a record, not a process: a named, versioned definition in the Registry that sessions run. Pick a change to see what it does to the record.
A session is a run
Sessions are what run. Each one pins the agent version it started with, so editing an agent leaves every run already under way as it was. Step through it.
Start a session
Name an agent and an environment. The session pins the agent’s current version and starts idle, with a log of its own. Nothing is provisioned yet.
Start another
A second session of the same agent is a separate run, with its own log and, once it has work, its own sandbox. One definition, many sessions.
Edit the agent
The update creates version 2. Both sessions keep version 1 for as long as they live.
Start a third
A new session takes the newest version unless you name one. Three runs, two versions, one agent.
What a session references
A session is mostly references: ids of resources that already exist. Pick one to see how it attaches and what the agent can do with it.
Every session writes a log
Everything that happens in a session is an event in its log, in order. Four families of event share that log. Pick one.
Triggers start sessions for you
A session can begin with a call from your application, or with a schedule. A trigger creates sessions on a cron schedule. Pick a part of it.