Skip to content

Term

AgentInstance

A running process or remote endpoint capable of executing RunAttempts. An AgentInstance is not an assignment and is not a Principal.

Identity
agent_instance_id
Kind
name
Authority role
agent-runtime
Mutability
ephemeral
Status
accepted

Purpose

Name the live executor that performs attempts so that replacing or restarting it does not rewrite the AgentRun identity.

Relationships

NameTargetKindCardinalityInverse
profileAgentProfilereferences0..1instances 0..*
run_attemptsRunAttemptexecutes0..*agent_instance 0..1
principalPrincipalauthenticates0..1agent_instances 0..*

Lifecycle

Initial starting. Terminal: stopped, failed.

startingreadybusystoppingstoppedfailed
  • startingready
  • startingfailed
  • readybusy
  • busyready
  • readystopping
  • busystopping
  • stoppingstopped
  • readyfailed
  • busyfailed
  • startingstopping

Invariants

  • MUST many-attempts: An AgentInstance MAY execute many RunAttempts, including for different AgentRuns.
  • MUST NOT restart-does-not-change-run: Replacing or restarting an AgentInstance MUST NOT change an AgentRun identity.
  • MUST NOT not-an-assignment: An AgentInstance MUST NOT be treated as an AgentRun.
  • MUST NOT not-a-principal: An AgentInstance MUST NOT be treated as the authenticated Principal.

Aliases

  • running-agent

Deprecated aliases

None.

Not synonyms

  • AgentRun: The run is the assignment; the instance is the executor.
  • AgentProfile: The profile is the kind; the instance is a live process or endpoint.
  • Principal: Identity for auth is Principal; the instance is infrastructure.

Examples

  • A local agent process that executes several RunAttempts and is then replaced.
  • A remote agent endpoint that picks up attempts for more than one AgentRun.

Anti-examples

  • The logical assignment "review PR 42" (that is an AgentRun or Task).

Fields

The identity field is the index of the handle. fields is the exchange shape.

NameKindTypePortableNotes
agent_instance_ididentitynameFalseInstance identity is not required in portable project snapshots.
agent_profile_idreferencenameTrue
endpointdescriptiveuriFalse

Native mapping hooks

SystemNative termFidelityNotes
project-interop_none_tbd