Skip to content
Konstera
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", …).

FieldTypeRequiredDescription
mirrorJobIdstringyes
format: uuid

Response

Returned by ctx.capability.call("thread_mirror.status", …).

FieldTypeRequiredDescription
lagMsintegernoMilliseconds since last successful sync; the inbox UI surfaces this as a last-synced badge
statestringyes
enum: ["active","paused","error","unregistered"]
lastErrorstringno
lastSyncAtstringno
format: date-time
nextSyncAtstringno
format: date-time
cadenceTierstringno
mirrorJobIdstringyes

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.