Skip to main content

Agent Runtime Terminology

This page defines the core terminology Aileron uses in a multi-agent runtime and aligns it with Terragon's naming model. For complete definitions of Thread, Turn, and Turn Execution, see AI Chat Frontend and Backend Architecture — Core Terminology.

Core Principle​

Aileron uses three independent identifiers:

  • Thread ID: Aileron's platform task or conversation id.
  • Agent Resume ID: The continuation id used by the agent runtime to resume a provider conversation. It belongs to an individual execution (turn execution).
  • Active Turn Execution ID: The identifier of the current individual agent execution, used for stopping and liveness checks. It belongs to a thread.

Claude, Codex, and OpenCode may keep their formal session/thread fields at the external protocol boundary. Aileron immediately normalizes those values to agentResumeId. threads.active_turn_execution_id only identifies the current execution and is cleared when it completes or errors.

Terminology Map​

TermAileron MappingTerragon MappingMeaning
Platform Thread ID / Thread IDthreads.id, API path /{thread_id}, selected frontend threadthread.id, threadIdThe platform-owned task or conversation id. Used for URLs, lists, lookups, and thread operations.
Threadthreads rowthread rowThe task or conversation container visible to the user.
Agent Resume IDthread_turn_executions.agent_resume_id (per-execution, exposed through ThreadExecutionMetadataResponse.agentResumeId), system_init.content.agentResumeIdthreadChat.sessionId, DB session_idThe id used by the agent CLI to continue a conversation. It belongs to an individual execution (turn execution), not the whole thread. Claude calls it session_id; Codex calls it thread_id, but the first-party domain uses resume semantics.
Runtime Thread IDRaw Codex thread_id; not a public Aileron term after normalizationRaw Codex thread_idCodex CLI's raw field. The platform normalizes it to agentResumeId to avoid confusing it with the platform Thread ID.
Active Turn Execution IDthreads.active_turn_execution_id (API field activeTurnExecutionId), thread events WS /api/v1/threads/eventsRunning agent process in the daemonIdentifies the individual execution currently running for the thread and is used for stopping and liveness checks. Execution events are written back as thread messages, and the frontend refetches through thread events. It is cleared when execution completes or errors. It is not the resume id.
Thread ChatAileron has no separate concept with this name; a thread directly holds agent, model, status, and messagesthreadChatTerragon can have multiple chats or agent attempts under a platform thread. Aileron currently stores runtime state directly on the thread.
Agent / Agentic Toolagentic_tool: claude, codex, opencodeagent: claudeCode, codex, opencode, gemini, ampThe agent provider or tool executing the task.
Modelthreads.model, capabilities modeluser message model / threadChat model selectionThe model passed to the agent CLI.
System Initthread_messages.type = system_initDB message type: "meta", subtype: "system-init"Agent runtime startup event. Claude provides session, tools, and MCP metadata; Codex only provides the runtime continuation id.
Tool Callthread_messages.type = tool_callDB message type: "tool-call"A tool call emitted by the agent.
Tool Resultthread_messages.type = tool_resultDB message type: "tool-result"A tool execution result.
Agent Textthread_messages.type = agent_textDB message type: "agent" with text partText produced by the agent.
Thinkingthread_messages.type = thinkingDB message type: "agent" with thinking partAgent thinking / reasoning display data.
User Messagethread_messages.type = userDB message type: "user"User input.
Resumeagent_resume_id mapped at the adapter boundary to Claude --resume, Codex resume, or the OpenCode session protocolthreadChat.sessionId passed to Claude / Codex / OpenCode resume or session flagContinue an agent runtime conversation.
Platform Runtimeworkspace-runtimedaemon / sandbox runtimeThe execution layer that starts agents, receives events, normalizes events, and persists messages.

Normalization Rules​

Claude Code​

Claude Code emits session_id in the raw init event:

{
"type": "system",
"subtype": "init",
"session_id": "claude-session-id"
}

Aileron normalizes it to (content always carries five fields):

{
"type": "system_init",
"content": {
"agentResumeId": "claude-session-id",
"model": "claude-model-id",
"cwd": "/workspace",
"tools": ["Bash", "Read"],
"mcpServers": []
}
}

Codex​

Codex emits thread_id in the raw init event:

{
"type": "thread.started",
"thread_id": "codex-runtime-thread-id"
}

Aileron normalizes it to (fields Codex does not provide stay empty; no metadata is invented):

{
"type": "system_init",
"content": {
"agentResumeId": "codex-runtime-thread-id",
"model": null,
"cwd": null,
"tools": [],
"mcpServers": []
}
}

Here, agentResumeId is a provider conversation resume handle, not Aileron's platform threads.id.

Usage Guidelines​

  • Use threadId when operating on an Aileron platform thread.
  • Use agentResumeId or backend agent_resume_id when resuming an agent runtime conversation.
  • Use the Active Turn Execution ID (threads.active_turn_execution_id / activeTurnExecutionId) for stopping and liveness checks. It is distinct from the resume id and belongs to the thread rather than to an individual execution.
  • Do not expose Codex's raw thread_id as the platform threadId.
  • Do not invent metadata that the agent raw event did not provide; only normalize fields.
  • Documentation and UI copy use Agent Resume ID for continuation handles instead of the generic Session term.