Skip to content

Work integrations

A Work Integration normalizes native events, materializes explicitly requested context, and delivers a finite set of granted operations.

interface WorkIntegration {
manifest: IntegrationManifest;
ingest(input: unknown): Effect<readonly WorkEvent[], IntegrationError>;
deliver(effect: WorkEffect): Effect<ProviderDeliveryResult, IntegrationError>;
}

A real Integration commonly adds typed Context readers beside this core contract. Reads are explicit and bounded; receiving an event never grants permission to crawl an entire workspace.

  • Verify transport authenticity beside provider decoding.
  • Preserve stable provider identity and idempotency keys.
  • Emit semantic events where semantics are known and generic observations otherwise.
  • Keep resourceId and its optional human resourceKey about the same subject; represent known containment with explicit parentResource* fields.
  • Redact bearer capabilities before native payloads enter WorkEvent or Context.

The Integration exposes explicit operations such as message.reply or issue.comment.create. Each WorkEffect is created from an authorized ContextProjection and committed before delivery. MCP may be the agent-facing tool surface; WorkIntegration remains the audited work-side binding.

Authority identifies the configured provider installation or security boundary. Resource recognition and credential selection both depend on it, but credentials never enter profiles, events, Agent input, or receipts.