Skip to content
Konstera
Capability catalogue
thread_mirrorinternal

thread_mirror.register

Register a thread mirror sync job

Register a sync job so the platform's ThreadMirrorService (ADR-024) mirrors an external threaded conversation into the reviewer inbox. Called by agents at install time (or dynamically — e.g. CS agent registers one per ticket started). Returns a mirrorJobId for subsequent management calls.

Effect
internal
Fanout
no
Cache TTL
none
Traits
none

Request arguments

Passed as the args parameter to ctx.capability.call("thread_mirror.register", …).

FieldTypeRequiredDescription
cadenceTierstringno
default: "active" · enum: ["active","recent","stale","dormant"]
externalRefstringyesThe external resource id (ticket id, PR number, channel id, …) used in the fetch capability's arg template
connectionIdstringyes
format: uuid
dedupFieldPathstringyesJSONPath to the per-message dedup id in the fetch capability's response
webhookEnabledbooleanno
default: false
fetchCapabilitystringyesKey of a capability tagged mirror_source

Response

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

FieldTypeRequiredDescription
webhookUrlstringnoGenerated webhook URL for this job — operator copy-pastes into the external vendor's admin console if webhookEnabled is true
mirrorJobIdstringyes
format: uuid

Example call

From inside your agent's handle(). The kernel resolves thread_mirror.register to the tenant's connector binding at invocation time.

response = await ctx.capability.call(
    "thread_mirror.register",
    args={
        "cadenceTier": "active",
        "externalRef": "...",
        "connectionId": "...",
        "dedupFieldPath": "...",
        "webhookEnabled": false,
        "fetchCapability": "...",
    },
)

See SDK quickstart for the full agent handler template; code examples covers invocation patterns including fanout and error handling.