Capability catalogue
thread_mirrorinternal
thread_mirror.status
Get sync lag and state for a mirror job
Query the current state of a sync job. Used by the portal to render "last synced 23s ago" indicators and by agents to decide whether a draft is based on fresh enough state.
Effect
internal Fanout
no
Cache TTL
none
Traits
none
Request arguments
Passed as the args parameter to ctx.capability.call("thread_mirror.status", …).
| Field | Type | Required | Description |
|---|---|---|---|
| mirrorJobId | string | yes | format: uuid |
Response
Returned by ctx.capability.call("thread_mirror.status", …).
| Field | Type | Required | Description |
|---|---|---|---|
| lagMs | integer | no | Milliseconds since last successful sync; the inbox UI surfaces this as a last-synced badge |
| state | string | yes | enum: ["active","paused","error","unregistered"] |
| lastError | string | no | |
| lastSyncAt | string | no | format: date-time |
| nextSyncAt | string | no | format: date-time |
| cadenceTier | string | no | |
| mirrorJobId | string | yes |
Example call
From inside your agent's handle(). The kernel resolves thread_mirror.status to the tenant's connector binding at invocation time.
response = await ctx.capability.call(
"thread_mirror.status",
args={
"mirrorJobId": "...",
},
)See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.