Run
@forge/monorepo / backend/src / Run
Type Alias: Run
Run =
object
Defined in: backend/src/runtime/index.ts:110
Properties
agentId
readonlyagentId:AgentId
Defined in: backend/src/runtime/index.ts:115
agentVersion
readonlyagentVersion:number
Defined in: backend/src/runtime/index.ts:116
cancelRequestedAt?
readonlyoptionalcancelRequestedAt?:string
Defined in: backend/src/runtime/index.ts:137
Set when a cancel was requested; the owning worker observes it and stops. Durable so a cancel issued to one process is honored by whichever worker holds the run.
claimedBy?
readonlyoptionalclaimedBy?:string
Defined in: backend/src/runtime/index.ts:131
Identifies the worker holding the claim; used to reap stale streams.
conversationId?
readonlyoptionalconversationId?:ConversationId
Defined in: backend/src/runtime/index.ts:114
Absent for a run that belongs to no conversation — see NewRun.conversationId (#198).
createdAt
readonlycreatedAt:string
Defined in: backend/src/runtime/index.ts:126
error?
readonlyoptionalerror?:PlatformError
Defined in: backend/src/runtime/index.ts:129
finishedAt?
readonlyoptionalfinishedAt?:string
Defined in: backend/src/runtime/index.ts:128
id
readonlyid:RunId
Defined in: backend/src/runtime/index.ts:111
input?
readonlyoptionalinput?:unknown
Defined in: backend/src/runtime/index.ts:118
What this run was asked to do, for a run with no conversation to read — see NewRun.input (#202).
keepaliveAt?
readonlyoptionalkeepaliveAt?:string
Defined in: backend/src/runtime/index.ts:132
leaseExpiresAt?
readonlyoptionalleaseExpiresAt?:string
Defined in: backend/src/runtime/index.ts:134
When the current claim's lease expires. A past value marks the run reclaimable.
limits?
readonlyoptionallimits?:object
Defined in: backend/src/runtime/index.ts:120
Per-run ceilings from admission, overriding the manifest's — see NewRun.limits (#202).
costCeilingMinorUnits?
readonlyoptionalcostCeilingMinorUnits?:number
maxSteps?
readonlyoptionalmaxSteps?:number
wallClockTimeoutMs?
readonlyoptionalwallClockTimeoutMs?:number
principalId?
readonlyoptionalprincipalId?:PrincipalId
Defined in: backend/src/runtime/index.ts:145
The caller this run was admitted for — #164.
Absent for runs created before this was recorded, and for a caller that did not supply it. That absence is
deliberately visible rather than defaulted: buildContext substituting an identity is the bug this exists
to end, and a default here would move the substitution one layer down where it is harder to see.
roleIds?
readonlyoptionalroleIds?: readonlystring[]
Defined in: backend/src/runtime/index.ts:146
startedAt?
readonlyoptionalstartedAt?:string
Defined in: backend/src/runtime/index.ts:127
status
readonlystatus:RunStatus
Defined in: backend/src/runtime/index.ts:125
tenantId
readonlytenantId:TenantId
Defined in: backend/src/runtime/index.ts:112